migrate to gtea from bistbucket
This commit is contained in:
427
Modules/Business/resources/views/dues/pdf.blade.php
Normal file
427
Modules/Business/resources/views/dues/pdf.blade.php
Normal file
@@ -0,0 +1,427 @@
|
||||
@extends('layouts.business.pdf.pdf_layout')
|
||||
|
||||
@section('pdf_title')
|
||||
<style>
|
||||
body {
|
||||
font-family: sans-serif;
|
||||
font-size: 12px;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.invoice-container {
|
||||
width: 100%;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.border-none{
|
||||
border: 1px solid transparent
|
||||
}
|
||||
|
||||
.top-table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
.logo-cell img {
|
||||
height: 45px;
|
||||
}
|
||||
.logo-cell{
|
||||
height: 45px !important;
|
||||
width: 45px !important;
|
||||
}
|
||||
|
||||
.company-name {
|
||||
font-size: 20px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.right-info {
|
||||
text-align: right;
|
||||
font-size: 12px;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.invoice-badge {
|
||||
margin: 10px auto 15px auto;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.invoice-badge span {
|
||||
display: inline-block;
|
||||
padding: 6px 25px;
|
||||
background: #c5161d;
|
||||
color: #fff;
|
||||
border-radius: 20px;
|
||||
font-weight: bold;
|
||||
letter-spacing: 1px;
|
||||
}
|
||||
|
||||
.info-table {
|
||||
width: 100%;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.info-table td {
|
||||
vertical-align: top;
|
||||
padding: 2px 4px;
|
||||
}
|
||||
|
||||
.item-table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.item-table th,
|
||||
.item-table td {
|
||||
border: 1px solid #000;
|
||||
padding: 6px;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.item-table th {
|
||||
background: #f5f5f5;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.text-right { text-align: right; }
|
||||
.text-center { text-align: center; }
|
||||
|
||||
.summary-table {
|
||||
width: 100%;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.summary-table td {
|
||||
padding: 4px;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.summary-right {
|
||||
width: 40%;
|
||||
float: right;
|
||||
}
|
||||
|
||||
.return-title {
|
||||
margin-top: 15px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.footer-table {
|
||||
width: 100%;
|
||||
margin-top: 25px;
|
||||
}
|
||||
|
||||
.signature {
|
||||
width: 40%;
|
||||
text-align: end;
|
||||
}
|
||||
.signature-2{
|
||||
text-align: right
|
||||
}
|
||||
|
||||
.signature hr {
|
||||
margin-bottom: 3px;
|
||||
}
|
||||
|
||||
.warranty-box {
|
||||
border: 1px solid #000;
|
||||
padding: 6px;
|
||||
margin-top: 15px;
|
||||
font-size: 11px;
|
||||
}
|
||||
.in-title{
|
||||
margin-top: 30px !important;
|
||||
}
|
||||
</style>
|
||||
@endsection
|
||||
|
||||
@section('pdf_title')
|
||||
<div class="table-header justify-content-center border-0 d-none d-block d-print-block text-center">
|
||||
@include('business::print.header')
|
||||
<h4 class="mt-2" style="text-align:center;">{{ __('Due Pdf') }}</h4>
|
||||
</div>
|
||||
|
||||
@push('css')
|
||||
@include('business::pdf.fonts-css')
|
||||
@endpush
|
||||
|
||||
@endsection
|
||||
|
||||
@php
|
||||
$logo = get_business_option('business-settings')['a4_invoice_logo'] ?? null;
|
||||
$logoFile = public_path($logo ?? 'assets/images/default.svg');
|
||||
$logoData = base64_encode(file_get_contents($logoFile));
|
||||
$logoMime = mime_content_type($logoFile);
|
||||
@endphp
|
||||
|
||||
@section('pdf_content')
|
||||
<div class="in-container">
|
||||
<div class="in-content">
|
||||
{{-- <table width="100%" class="invoice-top-header">
|
||||
<tr>
|
||||
<td width="60%" valign="top">
|
||||
<table>
|
||||
<tr>
|
||||
<td valign="top">
|
||||
@if ((get_business_option('business-settings')['show_a4_invoice_logo'] ?? 0) == 1 )
|
||||
<img class="logo-cell"
|
||||
src="data:{{ $logoMime }};base64,{{ $logoData }}"
|
||||
style="max-width:60px;">
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
|
||||
<td width="40%" valign="top" align="right">
|
||||
@if (($due_collect->business->meta['show_address'] ?? 0) == 1)
|
||||
<p>{{ __('Address') }} : </p>
|
||||
@endif
|
||||
@if (($due_collect->business->meta['show_phone_number'] ?? 0) == 1)
|
||||
<p>{{ __('Mobile') }} : </p>
|
||||
@endif
|
||||
@if (($due_collect->business->meta['show_email'] ?? 0) == 1)
|
||||
<p>{{ __('Email') }} : </p>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
</table> --}}
|
||||
|
||||
<table class="top-table">
|
||||
<tr>
|
||||
<td>
|
||||
<table>
|
||||
<tr>
|
||||
@if ((get_business_option('business-settings')['show_a4_invoice_logo'] ?? 0) == 1 )
|
||||
<td>
|
||||
<img
|
||||
src="data:{{ $logoMime }};base64,{{ $logoData }}"
|
||||
style="
|
||||
width: auto;
|
||||
height: 54px;
|
||||
display: block;
|
||||
"
|
||||
>
|
||||
</td>
|
||||
|
||||
|
||||
@endif
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="right-info">
|
||||
{{ __('Address') }} : {{ $due_collect->branch?->address ?? $due_collect->business?->address ?? '' }}<br>
|
||||
{{ __('Mobile') }} : {{ $due_collect->branch?->phone ?? $due_collect->business?->phoneNumber ?? '' }}<br>
|
||||
{{ __('Email') }} : {{ $due_collect->branch?->email ?? $due_collect->business?->email ?? '' }}<br>
|
||||
@if (($due_collect->business->meta['show_vat'] ?? 0) == 1)
|
||||
{{ $due_collect->business->vat_name }}
|
||||
@endif
|
||||
{{ (($due_collect->business->meta['show_vat'] ?? 0) == 1 && ($due_collect->business->meta['show_vat'] ?? 0) == 1) ? ':' : '' }}
|
||||
@if (($due_collect->business->meta['show_vat'] ?? 0) == 1)
|
||||
{{ $due_collect->business->vat_no ?? '' }}
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
<h3 style="
|
||||
font-size: 20px;
|
||||
font-weight: 600;
|
||||
color: white;
|
||||
background-color: #c52127;
|
||||
padding: 5px 12px;
|
||||
border-radius: 30px;
|
||||
margin-top: 12px !important;
|
||||
width: 170px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin: auto;
|
||||
border: 1px solid black;
|
||||
text-align: center;" class="in-title">
|
||||
{{ __('MONEY RECEIPT') }}
|
||||
</h3>
|
||||
|
||||
<table width="100%" style="margin-bottom:10px;">
|
||||
<tr>
|
||||
<td width="50%" valign="top"
|
||||
style="text-align:{{ app()->getLocale() == 'ar' ? 'left' : 'left' }};">
|
||||
<table>
|
||||
<tr>
|
||||
<td>{{ __('Invoice') }}</td>
|
||||
<td>: {{ $due_collect->invoiceNumber ?? '' }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ __('Bill To') }}</td>
|
||||
<td>: {{ $party->name ?? 'Guest' }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ __('Mobile') }}</td>
|
||||
<td>: {{ $party->phone ?? '' }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
|
||||
<td width="50%" valign="top"
|
||||
style="text-align:{{ app()->getLocale() == 'ar' ? 'right' : 'right' }};">
|
||||
<table>
|
||||
<tr>
|
||||
<td>{{ __('Date') }}</td>
|
||||
<td>: {{ formatted_date($party->dueCollect->paymentDate ?? '') }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ __('Time') }}</td>
|
||||
<td>: {{ formatted_time($party->dueCollect->paymentDate ?? '') }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ __('Collected By') }}</td>
|
||||
<td>: {{ $party->dueCollect->business->companyName ?? '' }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div>
|
||||
<table width="100%" border="1" cellspacing="0" cellpadding="6">
|
||||
<thead>
|
||||
<tr>
|
||||
<th align="center">{{ __('SL') }}</th>
|
||||
<th align="center">{{ __('Total Due') }}</th>
|
||||
<th align="center">{{ __('Payment Amount') }}</th>
|
||||
<th align="right">{{ __('Remaining Due') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td align="center">1</td>
|
||||
<td align="center">{{ currency_format($due_collect->totalDue ?? 0, currency: business_currency()) }}</td>
|
||||
<td align="center">{{ currency_format($due_collect->payDueAmount ?? 0, currency: business_currency()) }}</td>
|
||||
<td align="right" style="text-align: end">{{ currency_format($due_collect->dueAmountAfterPay ?? 0, currency: business_currency()) }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<table width="100%" style="margin-top:15px;">
|
||||
<tr>
|
||||
{{-- LEFT SIDE --}}
|
||||
<td width="60%" valign="top">
|
||||
<table width="100%">
|
||||
<tbody>
|
||||
@if ((get_business_option('business-settings')['show_note'] ?? 0) == 1)
|
||||
<tr>
|
||||
<td style="padding-bottom:8px;">
|
||||
{{ get_business_option('business-settings')['note'] ?? '' }}
|
||||
</td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
<tr>
|
||||
<td style="padding-top:5px; font-weight:bold;">
|
||||
{{ __('Paid by') }} :
|
||||
{{ $transactionTypes
|
||||
?? ($due_collect->payment_type_id
|
||||
? ($due_collect->payment_type->name ?? '')
|
||||
: ($due_collect->paymentType ?? '')
|
||||
)
|
||||
}}
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
{{-- BANK DETAILS --}}
|
||||
@if (($bank_detail->show_in_invoice ?? 0) == 1)
|
||||
<table width="" style="margin-top:10px; border:1px solid #ccc;" cellspacing="0" cellpadding="5">
|
||||
<tr>
|
||||
<td colspan="2" style="font-weight:bold; background:#f5f5f5;">
|
||||
{{ __('Bank Details') }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="40%">{{ __('Name') }}</td>
|
||||
<td width="60%">: {{ $bank_detail->name }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ __('Account No') }}</td>
|
||||
<td>: {{ $bank_detail->meta['account_number'] ?? '' }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ __('UPI ID') }}</td>
|
||||
<td>: {{ $bank_detail->meta['upi_id'] ?? '' }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ __('Holder’s Name') }}</td>
|
||||
<td>: {{ $bank_detail->meta['account_holder'] ?? '' }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
@endif
|
||||
</td>
|
||||
|
||||
{{-- RIGHT SIDE --}}
|
||||
<td width="40%" valign="top" align="right">
|
||||
<table width="100%">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td align="right">{{ __('Payable Amount') }}</td>
|
||||
<td align="right">:</td>
|
||||
<td align="right">
|
||||
{{ currency_format($due_collect->totalDue ?? 0, currency: business_currency()) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right">
|
||||
{{ $party->type === 'Supplier' ? __('Paid Amount') : __('Received Amount') }}
|
||||
</td>
|
||||
<td align="right">:</td>
|
||||
<td align="right">
|
||||
{{ currency_format($due_collect->payDueAmount ?? 0, currency: business_currency()) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right">{{ __('Due Amount') }}</td>
|
||||
<td align="right">:</td>
|
||||
<td align="right">
|
||||
{{ currency_format($due_collect->dueAmountAfterPay ?? 0, currency: business_currency()) }}
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table width="100%" style="margin-top:60px;">
|
||||
<tr>
|
||||
<!-- Customer Signature (Left) -->
|
||||
<td align="left">
|
||||
<div style="border-top: 1px solid black">
|
||||
{{ __('Customer Signature') }}
|
||||
</div>
|
||||
</td>
|
||||
|
||||
<!-- Authorized Signature (Right) -->
|
||||
<td align="right">
|
||||
<div style="border-top: 1px solid black;">
|
||||
<div style="padding: 8px !important;">
|
||||
{{ __('Authorized Signature') }}
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
@if ((get_business_option('business-settings')['show_warranty'] ?? 0) == 1)
|
||||
@if ((get_business_option('business-settings')['show_warranty'] ?? 0) == 1)
|
||||
<div class="warranty-box">
|
||||
<strong>{{ __('Warranty Void') }}</strong> -
|
||||
{{ get_business_option('business-settings')['warranty_void'] ?? '' }}
|
||||
</div>
|
||||
@endif
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
Reference in New Issue
Block a user