update marketing
All checks were successful
All checks were successful
This commit is contained in:
@@ -2,26 +2,27 @@
|
||||
<table class="table" id="datatable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('SL') }}.</th>
|
||||
<th class="d-print-none">{{ __('SL') }}.</th>
|
||||
<th>{{ __('Name') }}</th>
|
||||
<th>{{ __('Email') }}</th>
|
||||
<th>{{ __('Phone') }}</th>
|
||||
<th>{{ __('Type') }}</th>
|
||||
<th class="text-end">{{ __('Due Amount') }}</th>
|
||||
<th>{{ __('Action') }}</th>
|
||||
<th class="d-print-none">{{ __('Action') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($parties as $party)
|
||||
<tr>
|
||||
<td>{{ ($parties->currentPage() - 1) * $parties->perPage() + $loop->iteration }}</td>
|
||||
<td class="d-print-none">{{ ($parties->currentPage() - 1) * $parties->perPage() + $loop->iteration }}
|
||||
</td>
|
||||
<td>{{ $party->name }}</td>
|
||||
<td>{{ $party->email }}</td>
|
||||
<td>{{ $party->phone }}</td>
|
||||
@if ($party->type == 'Retailer')
|
||||
<td>{{ __('Customer') }}</td>
|
||||
@else
|
||||
<td>{{ $party->type }}</td>
|
||||
<td>{{ $party->type }}</td>
|
||||
@endif
|
||||
<td class="text-danger text-end">
|
||||
{{ currency_format($party->due, currency: business_currency()) }}
|
||||
@@ -39,32 +40,61 @@
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="#"
|
||||
data-url="{{ route('business.dues.view-payment', $party->id) }}"
|
||||
class="view-due-payment-btn" data-bs-toggle="modal"
|
||||
data-bs-target="#view-due-payment-modal">
|
||||
<svg width="18" height="18" viewBox="0 0 18 18" fill="none"
|
||||
xmlns="http://www.w3.org/2000/svg">
|
||||
<path
|
||||
d="M3 13.9844V6.0407C3 3.90019 3 2.82994 3.65901 2.16497C4.31802 1.5 5.37868 1.5 7.5 1.5H10.5C12.6213 1.5 13.6819 1.5 14.341 2.16497C15 2.82994 15 3.90019 15 6.0407V13.9844C15 15.1181 15 15.685 14.6535 15.9081C14.0873 16.2728 13.2121 15.5081 12.7718 15.2305C12.4081 15.0011 12.2263 14.8864 12.0244 14.8798C11.8063 14.8726 11.6212 14.9826 11.2282 15.2305L9.795 16.1343C9.40838 16.3781 9.2151 16.5 9 16.5C8.7849 16.5 8.59162 16.3781 8.205 16.1343L6.77185 15.2305C6.40811 15.0011 6.22624 14.8864 6.0244 14.8798C5.80629 14.8726 5.6212 14.9826 5.22815 15.2305C4.78796 15.5081 3.91265 16.2728 3.34646 15.9081C3 15.685 3 15.1181 3 13.9844Z"
|
||||
stroke="#4B5563" stroke-linecap="round" stroke-linejoin="round" />
|
||||
<path d="M12 4.5H6" stroke="#4B5563" stroke-linecap="round"
|
||||
stroke-linejoin="round" />
|
||||
<path d="M7.5 7.5H6" stroke="#4B5563" stroke-linecap="round"
|
||||
stroke-linejoin="round" />
|
||||
<path
|
||||
d="M10.875 7.40625C10.2537 7.40625 9.75 7.84695 9.75 8.39063C9.75 8.9343 10.2537 9.375 10.875 9.375C11.4963 9.375 12 9.8157 12 10.3594C12 10.9031 11.4963 11.3438 10.875 11.3438M10.875 7.40625C11.3648 7.40625 11.7815 7.68015 11.936 8.0625M10.875 7.40625V6.75M10.875 11.3438C10.3852 11.3438 9.96847 11.0699 9.81405 10.6875M10.875 11.3438V12"
|
||||
stroke="#4B5563" stroke-linecap="round" />
|
||||
</svg>
|
||||
{{ __('View Payment') }}
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@if ($party->dueCollect)
|
||||
@if ($party->type != 'Supplier')
|
||||
<li>
|
||||
<a href="{{ route('business.collect.dues.invoice', $party->id) }}"
|
||||
target="_blank">
|
||||
<a href="#" data-url="{{ route('business.dues.view-payment', $party->id) }}"
|
||||
class="view-due-payment-btn" data-bs-toggle="modal"
|
||||
data-bs-target="#view-due-payment-modal">
|
||||
<svg width="18" height="18" viewBox="0 0 18 18" fill="none"
|
||||
xmlns="http://www.w3.org/2000/svg">
|
||||
<path
|
||||
d="M3 13.9844V6.0407C3 3.90019 3 2.82994 3.65901 2.16497C4.31802 1.5 5.37868 1.5 7.5 1.5H10.5C12.6213 1.5 13.6819 1.5 14.341 2.16497C15 2.82994 15 3.90019 15 6.0407V13.9844C15 15.1181 15 15.685 14.6535 15.9081C14.0873 16.2728 13.2121 15.5081 12.7718 15.2305C12.4081 15.0011 12.2263 14.8864 12.0244 14.8798C11.8063 14.8726 11.6212 14.9826 11.2282 15.2305L9.795 16.1343C9.40838 16.3781 9.2151 16.5 9 16.5C8.7849 16.5 8.59162 16.3781 8.205 16.1343L6.77185 15.2305C6.40811 15.0011 6.22624 14.8864 6.0244 14.8798C5.80629 14.8726 5.6212 14.9826 5.22815 15.2305C4.78796 15.5081 3.91265 16.2728 3.34646 15.9081C3 15.685 3 15.1181 3 13.9844Z"
|
||||
stroke="#4B5563" stroke-linecap="round" stroke-linejoin="round" />
|
||||
<path d="M12 4.5H6" stroke="#4B5563" stroke-linecap="round"
|
||||
stroke-linejoin="round" />
|
||||
<path d="M7.5 7.5H6" stroke="#4B5563" stroke-linecap="round"
|
||||
stroke-linejoin="round" />
|
||||
<path
|
||||
d="M10.875 7.40625C10.2537 7.40625 9.75 7.84695 9.75 8.39063C9.75 8.9343 10.2537 9.375 10.875 9.375C11.4963 9.375 12 9.8157 12 10.3594C12 10.9031 11.4963 11.3438 10.875 11.3438M10.875 7.40625C11.3648 7.40625 11.7815 7.68015 11.936 8.0625M10.875 7.40625V6.75M10.875 11.3438C10.3852 11.3438 9.96847 11.0699 9.81405 10.6875M10.875 11.3438V12"
|
||||
stroke="#4B5563" stroke-linecap="round" />
|
||||
</svg>
|
||||
{{ __('View Payment') }}
|
||||
</a>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
@if (moduleCheck('MarketingAddon'))
|
||||
<li>
|
||||
<a href="{{ route('business.payment-reminder', $party->id) }}">
|
||||
<svg width="20" height="20" viewBox="0 0 20 20" fill="none"
|
||||
xmlns="http://www.w3.org/2000/svg">
|
||||
<g clip-path="url(#clip0_40008926_148433)">
|
||||
<path
|
||||
d="M18.3327 9.9974C18.3327 14.5997 14.6017 18.3307 9.99935 18.3307C5.39697 18.3307 1.66602 14.5997 1.66602 9.9974C1.66602 5.39502 5.39697 1.66406 9.99935 1.66406C14.6017 1.66406 18.3327 5.39502 18.3327 9.9974Z"
|
||||
stroke="#4B5563" stroke-width="1.5" />
|
||||
<path
|
||||
d="M12.2578 8.38067C12.1753 7.74512 11.4455 6.71827 10.1333 6.71824C8.60868 6.71822 7.96715 7.56263 7.83697 7.98484C7.63389 8.54958 7.6745 9.71067 9.4616 9.83725C11.6955 9.99558 12.5904 10.2593 12.4766 11.6264C12.3627 12.9935 11.1174 13.2889 10.1333 13.2572C9.14918 13.2256 7.53905 12.7735 7.47656 11.5575M9.97718 5.82812V6.72127M9.97718 13.249V14.1614"
|
||||
stroke="#4B5563" stroke-width="1.5" stroke-linecap="round" />
|
||||
</g>
|
||||
<defs>
|
||||
<clipPath id="clip0_40008926_148433">
|
||||
<rect width="20" height="20" fill="white" />
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
||||
|
||||
{{ __('Payment Reminder') }}
|
||||
</a>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
@php
|
||||
$due = $party->dueCollect()->latest()->first();
|
||||
@endphp
|
||||
|
||||
@if ($due)
|
||||
<li>
|
||||
<a href="{{ route('business.collect.dues.invoice', $due->id) }}" target="_blank">
|
||||
<img src="{{ asset('assets/images/icons/Invoic.svg') }}" alt="">
|
||||
{{ __('Invoice') }}
|
||||
</a>
|
||||
@@ -75,10 +105,22 @@ class="view-due-payment-btn" data-bs-toggle="modal"
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
</tbody>
|
||||
@if ($parties->count() > 0)
|
||||
<tr class="table-footer">
|
||||
<td class="text-start">{{ __('Total') }}</td>
|
||||
<td class="d-print-none"></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td class="text-end">
|
||||
{{ currency_format($parties->sum('due'), currency: business_currency()) }}
|
||||
</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
@endif
|
||||
</table>
|
||||
</div>
|
||||
<div class="mt-3">
|
||||
{{ $parties->links('vendor.pagination.bootstrap-5') }}
|
||||
</div>
|
||||
</div>
|
||||
42
Modules/Business/resources/views/dues/excel-csv.blade.php
Normal file
42
Modules/Business/resources/views/dues/excel-csv.blade.php
Normal file
@@ -0,0 +1,42 @@
|
||||
<table class="table" id="datatable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('SL') }}.</th>
|
||||
<th>{{ __('Name') }}</th>
|
||||
<th>{{ __('Email') }}</th>
|
||||
<th>{{ __('Phone') }}</th>
|
||||
<th>{{ __('Type') }}</th>
|
||||
<th>{{ __('Due Amount') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($parties as $party)
|
||||
<tr>
|
||||
<td>{{ $loop->iteration }}</td>
|
||||
<td>{{ $party->name }}</td>
|
||||
<td>{{ $party->email }}</td>
|
||||
<td>{{ $party->phone }}</td>
|
||||
@if ($party->type == 'Retailer')
|
||||
<td>{{ __('Customer') }}</td>
|
||||
@else
|
||||
<td>{{ $party->type }}</td>
|
||||
@endif
|
||||
<td class="text-danger text-end">
|
||||
{{ currency_format($party->due, currency: business_currency()) }}
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
@if ($parties->count() > 0)
|
||||
<tr class="table-footer">
|
||||
<td class="text-start">{{ __('Total') }}</td>
|
||||
<td class="d-print-none"></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td class="text-end">
|
||||
{{ currency_format($parties->sum('due'), currency: business_currency()) }}
|
||||
</td>
|
||||
</tr>
|
||||
@endif
|
||||
</table>
|
||||
@@ -12,23 +12,29 @@
|
||||
<div class="d-flex align-items-center justify-content-center gap-3">
|
||||
<div class="profit-card p-3 text-white">
|
||||
<p class="stat-title">{{ __('Supplier Due') }}</p>
|
||||
<p class="stat-value">{{ currency_format($total_supplier_due, currency: business_currency()) }}</p>
|
||||
<p class="stat-value" id="total_supplier_due">{{ currency_format($total_supplier_due, currency: business_currency()) }}</p>
|
||||
</div>
|
||||
|
||||
<div class="loss-card p-3 text-white">
|
||||
<p class="stat-title">{{ __('Customer Due') }}</p>
|
||||
<p class="stat-value">{{ currency_format($total_customer_due, currency: business_currency()) }}</p>
|
||||
<p class="stat-value" id="total_customer_due">{{ currency_format($total_customer_due, currency: business_currency()) }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card">
|
||||
<div class="card-bodys">
|
||||
<div class="table-header p-16">
|
||||
<div class="table-header p-16 d-print-none">
|
||||
<h4>{{ __('Due List') }}</h4>
|
||||
</div>
|
||||
<div class="table-top-form p-16">
|
||||
<form action="{{ route('business.dues.index') }}" method="GET" class="filter-form" table="#due-reports-data">
|
||||
|
||||
<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">{{ __('Due List') }}</h4>
|
||||
</div>
|
||||
|
||||
<div class="table-top-form p-16 d-print-none">
|
||||
<form action="{{ route('business.dues.index') }}" method="GET" class="report-filter-form" table="#due-reports-data">
|
||||
|
||||
<div class="table-top-left d-flex gap-3 ">
|
||||
<div class="gpt-up-down-arrow position-relative">
|
||||
@@ -61,6 +67,30 @@
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="table-top-btn-group d-print-none">
|
||||
<ul>
|
||||
<li>
|
||||
<a class="export-btn" class="export-btn" href="{{ route('business.dues.csv') }}">
|
||||
<img src="{{ asset('assets/images/logo/csv.svg') }}" alt="">
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="export-btn" class="export-btn" href="{{ route('business.dues.excel') }}">
|
||||
<img src="{{ asset('assets/images/logo/excel.svg') }}" alt="">
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="export-btn" class="export-btn" target="_blank" href="{{ route('business.dues.pdf') }}">
|
||||
<img src="{{ asset('assets/images/logo/pdf.svg') }}" alt="">
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a onclick="window.print()" class="print-window">
|
||||
<img src="{{ asset('assets/images/logo/printer.svg') }}" alt="">
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
@endsection
|
||||
|
||||
@section('main_content')
|
||||
@if (invoice_setting() == '3_inch_80mm' && moduleCheck('ThermalPrinterAddon'))
|
||||
@if (invoice_setting($party->business_id) == '3_inch_80mm' && moduleCheck('ThermalPrinterAddon'))
|
||||
@include('thermalprinteraddon::due-collects.3_inch_80mm')
|
||||
@else
|
||||
@include('business::dues.invoices.a4-size')
|
||||
|
||||
@@ -1,23 +1,37 @@
|
||||
@php
|
||||
$isBusinessRoute = request()->routeIs('business.dues.*');
|
||||
$business_id = $party->business_id;
|
||||
@endphp
|
||||
<div class="invoice-container">
|
||||
<div class="invoice-content p-4">
|
||||
{{-- Print Header --}}
|
||||
|
||||
<div class="row py-2 d-print-none d-flex align-items-start justify-content-between border-bottom print-container">
|
||||
<div
|
||||
class="row py-2 d-print-none d-flex align-items-start justify-content-between border-bottom print-container">
|
||||
|
||||
<div class="col-md-6 d-flex align-items-center p-2">
|
||||
<div class="col-md-4 d-flex align-items-center p-2">
|
||||
<span class="Money-Receipt white-text">{{ __('Money Receipt') }}</span>
|
||||
</div>
|
||||
<div class="col-md-6 d-flex justify-content-end align-items-end">
|
||||
<div class="d-flex gap-3">
|
||||
<div class="col-md-8 d-flex justify-content-start justify-content-md-end align-items-end">
|
||||
<div class="d-flex gap-3 flex-wrap">
|
||||
<a href="javascript:void(0)" class="pdf-btn print-btn share-btn" data-bs-toggle="modal" data-bs-target="#shareModalDues">
|
||||
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M7.8303 3.75H6.96224C4.50701 3.75 3.27939 3.75 2.51665 4.48223C1.75391 5.21447 1.75391 6.39298 1.75391 8.75V12.0833C1.75391 14.4403 1.75391 15.6188 2.51665 16.3511C3.27939 17.0833 4.50701 17.0833 6.96224 17.0833H10.4678C12.923 17.0833 14.1506 17.0833 14.9133 16.3511C15.4075 15.8767 15.5815 15.2149 15.6428 14.1667" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" />
|
||||
<path d="M13.4723 5.83073V3.20869C13.4723 3.04597 13.6097 2.91406 13.7792 2.91406C13.8605 2.91406 13.9386 2.9451 13.9962 3.00035L17.9396 6.7861C18.1362 6.97475 18.2465 7.23061 18.2465 7.4974C18.2465 7.76418 18.1362 8.02005 17.9396 8.20869L13.9962 11.9944C13.9386 12.0497 13.8605 12.0807 13.7792 12.0807C13.6097 12.0807 13.4723 11.9488 13.4723 11.7861V9.16406H10.9298C7.39583 9.16406 6.09375 12.0807 6.09375 12.0807V9.9974C6.09375 7.69621 8.03696 5.83073 10.434 5.83073H13.4723Z" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" />
|
||||
</svg>
|
||||
|
||||
{{__('Share')}}
|
||||
</a>
|
||||
|
||||
<form action="{{ route('business.collect.dues.mail', $party->id) }}" method="POST"
|
||||
class="ajaxform_instant_reload">
|
||||
@csrf
|
||||
<button type="submit" class="btn custom-print-btn"><img class="w-10 h-10" src="{{ asset('assets/img/email.svg') }}"><span class="pl-1">{{__('Email')}}</span>
|
||||
<button type="submit" class="btn custom-print-btn submit-btn"><img class="w-10 h-10"
|
||||
src="{{ asset('assets/img/email.svg') }}"><span class="pl-1">{{__('Email')}}</span>
|
||||
</button>
|
||||
</form>
|
||||
|
||||
<a target="blank" href="{{ route('business.collect.dues.pdf', ['due_id' => $party->id]) }}"
|
||||
<a target="_blank" href="{{ route('business.collect.dues.pdf', ['due_id' => $party->id]) }}"
|
||||
class="pdf-btn print-btn">
|
||||
<img class="w-10 h-10" src="{{ asset('assets/img/pdf.svg') }}">
|
||||
{{__('PDF')}}</a>
|
||||
@@ -31,18 +45,22 @@ class="pdf-btn print-btn">
|
||||
<div class="d-flex justify-content-between align-items-center gap-3 print-logo-container">
|
||||
<!-- Left Side: Logo and Content -->
|
||||
<div class="d-flex align-items-center gap-2 logo">
|
||||
@if ((get_business_option('business-settings')['show_a4_invoice_logo'] ?? 0) == 1 )
|
||||
<img class="invoice-logo" src="{{ asset(get_business_option('business-settings')['a4_invoice_logo'] ?? 'assets/images/default.svg') ?? '' }}" alt="">
|
||||
@if ((get_business_option('business-settings', $business_id)['show_a4_invoice_logo'] ?? 0) == 1)
|
||||
<img class="invoice-logo"
|
||||
src="{{ Storage::url(get_business_option('business-settings', $business_id)['a4_invoice_logo'] ?? 'assets/images/default.svg') ?? '' }}"
|
||||
alt="">
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<!-- Right Side: Invoice -->
|
||||
<div class="address-container">
|
||||
@if (($due_collect->business->meta['show_address'] ?? 0) == 1)
|
||||
<p> {{__('Address')}} : {{ $due_collect->branch?->address ?? $due_collect->business?->address ?? '' }}</p>
|
||||
<p> {{__('Address')}} : {{ $due_collect->branch?->address ?? $due_collect->business?->address ?? '' }}
|
||||
</p>
|
||||
@endif
|
||||
@if (($due_collect->business->meta['show_phone_number'] ?? 0) == 1)
|
||||
<p> {{__('Mobile')}} : {{ $due_collect->branch?->phone ?? $due_collect->business?->phoneNumber ?? '' }}</p>
|
||||
<p> {{__('Mobile')}} : {{ $due_collect->branch?->phone ?? $due_collect->business?->phoneNumber ?? '' }}
|
||||
</p>
|
||||
@endif
|
||||
@if (($due_collect->business->meta['show_email'] ?? 0) == 1)
|
||||
<p> {{__('Email')}} : {{ $due_collect->branch?->email ?? $due_collect->business?->email ?? '' }}</p>
|
||||
@@ -59,7 +77,8 @@ class="pdf-btn print-btn">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h3 class="right-invoice receipt-invoice-title mb-0 align-self-center white-text ">{{ __('MONEY RECEIPT') }}</h3>
|
||||
<h3 class="right-invoice receipt-invoice-title mb-0 align-self-center white-text ">{{ __('MONEY RECEIPT') }}
|
||||
</h3>
|
||||
<div class="d-flex align-items-start justify-content-between flex-wrap">
|
||||
<div>
|
||||
<table class="table">
|
||||
@@ -114,12 +133,13 @@ class="pdf-btn print-btn">
|
||||
<tr class="in-table-body">
|
||||
<td class="text-center">1</td>
|
||||
<td class="text-start">
|
||||
{{ currency_format($due_collect->totalDue ?? 0, currency: business_currency()) }}</td>
|
||||
<td class="text-end">
|
||||
{{ currency_format($due_collect->payDueAmount ?? 0, currency: business_currency()) }}
|
||||
{{ currency_format($due_collect->totalDue ?? 0, currency: business_currency($business_id)) }}
|
||||
</td>
|
||||
<td class="text-end">
|
||||
{{ currency_format($due_collect->dueAmountAfterPay ?? 0, currency: business_currency()) }}
|
||||
{{ currency_format($due_collect->payDueAmount ?? 0, currency: business_currency($business_id)) }}
|
||||
</td>
|
||||
<td class="text-end">
|
||||
{{ currency_format($due_collect->dueAmountAfterPay ?? 0, currency: business_currency($business_id)) }}
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@@ -132,54 +152,54 @@ class="pdf-btn print-btn">
|
||||
<tr class="in-table-row">
|
||||
<td class="text-start"></td>
|
||||
</tr>
|
||||
@if ((get_business_option('business-settings')['show_note'] ?? 0) == 1)
|
||||
@if ((get_business_option('business-settings', $business_id)['show_note'] ?? 0) == 1)
|
||||
<tr class="in-table-row">
|
||||
<td class="text-start pb-2 pt-3">
|
||||
{{ get_business_option('business-settings')['note'] ?? '' }}
|
||||
{{ get_business_option('business-settings', $business_id)['note'] ?? '' }}
|
||||
</td>
|
||||
</tr>
|
||||
@endif
|
||||
<tr class="in-table-row">
|
||||
<tr class="in-table-row">
|
||||
<td class="text-start paid-by">{{ __('Paid by') }} :
|
||||
{{ $transactionTypes ?? ($due_collect->payment_type_id ? ($due_collect->payment_type->name ?? '') : ($due_collect->paymentType ?? '')) }}
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@if ($bank_detail->show_in_invoice ?? 0 == 1)
|
||||
<div class="bank-details-container">
|
||||
<div class="bank-details-title">
|
||||
{{__('Bank Details')}}
|
||||
</div>
|
||||
<div class="back-details-content">
|
||||
<table class="table mb-2">
|
||||
<tbody>
|
||||
<tr class="in-table-row">
|
||||
<td class="text-start in-table-title">{{ __('Name') }}</td>
|
||||
<td class="clone-width">:</td>
|
||||
<td class="text-start">{{ $bank_detail->name }}</td>
|
||||
</tr>
|
||||
<tr class="in-table-row">
|
||||
<td class="text-start in-table-title">{{ __('Account No') }}</td>
|
||||
<td class="clone-width">:</td>
|
||||
<td class="text-start">{{ $bank_detail->meta['account_number'] ?? '' }}</td>
|
||||
</tr>
|
||||
|
||||
<tr class="in-table-row">
|
||||
<td class="text-start in-table-title">{{ __('UPI ID') }}</td>
|
||||
<td class="clone-width">:</td>
|
||||
<td class="text-start">{{ $bank_detail->meta['upi_id'] ?? '' }}</td>
|
||||
</tr>
|
||||
<tr class="in-table-row">
|
||||
<td class="text-start in-table-title">{{ __('Holder’s Nmae') }}</td>
|
||||
<td class="clone-width">:</td>
|
||||
<td class="text-start">{{ $bank_detail->meta['account_holder'] ?? '' }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
@if ($bank_detail->show_in_invoice ?? 0 == 1)
|
||||
<div class="bank-details-container">
|
||||
<div class="bank-details-title">
|
||||
{{__('Bank Details')}}
|
||||
</div>
|
||||
@endif
|
||||
<div class="back-details-content">
|
||||
<table class="table mb-2">
|
||||
<tbody>
|
||||
<tr class="in-table-row">
|
||||
<td class="text-start in-table-title">{{ __('Name') }}</td>
|
||||
<td class="clone-width">:</td>
|
||||
<td class="text-start">{{ $bank_detail->name }}</td>
|
||||
</tr>
|
||||
<tr class="in-table-row">
|
||||
<td class="text-start in-table-title">{{ __('Account No') }}</td>
|
||||
<td class="clone-width">:</td>
|
||||
<td class="text-start">{{ $bank_detail->meta['account_number'] ?? '' }}</td>
|
||||
</tr>
|
||||
|
||||
<tr class="in-table-row">
|
||||
<td class="text-start in-table-title">{{ __('UPI ID') }}</td>
|
||||
<td class="clone-width">:</td>
|
||||
<td class="text-start">{{ $bank_detail->meta['upi_id'] ?? '' }}</td>
|
||||
</tr>
|
||||
<tr class="in-table-row">
|
||||
<td class="text-start in-table-title">{{ __('Holder’s Nmae') }}</td>
|
||||
<td class="clone-width">:</td>
|
||||
<td class="text-start">{{ $bank_detail->meta['account_holder'] ?? '' }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
<div>
|
||||
<table class="table">
|
||||
@@ -188,15 +208,17 @@ class="pdf-btn print-btn">
|
||||
<td class="text-end">{{ __('Payable Amount') }}</td>
|
||||
<td class="text-end">:</td>
|
||||
<td class="text-end">
|
||||
{{ currency_format($due_collect->totalDue ?? 0, currency: business_currency()) }}
|
||||
{{ currency_format($due_collect->totalDue ?? 0, currency: business_currency($business_id)) }}
|
||||
</td>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="in-table-row-bottom">
|
||||
<td class="text-end">{{ $party->type === 'Supplier' ? __('Paid Amount') : __('Received Amount') }}</td>
|
||||
<td class="text-end">
|
||||
{{ $party->type === 'Supplier' ? __('Paid Amount') : __('Received Amount') }}
|
||||
</td>
|
||||
<td class="text-end">:</td>
|
||||
<td class="text-end">
|
||||
{{ currency_format($due_collect->payDueAmount ?? 0, currency: business_currency()) }}
|
||||
{{ currency_format($due_collect->payDueAmount ?? 0, currency: business_currency($business_id)) }}
|
||||
</td>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -204,7 +226,7 @@ class="pdf-btn print-btn">
|
||||
<td class="text-end">{{ __('Due Amount') }}</td>
|
||||
<td class="text-end">:</td>
|
||||
<td class="text-end">
|
||||
{{ currency_format($due_collect->dueAmountAfterPay ?? 0, currency: business_currency()) }}
|
||||
{{ currency_format($due_collect->dueAmountAfterPay ?? 0, currency: business_currency($business_id)) }}
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@@ -223,15 +245,28 @@ class="pdf-btn print-btn">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@if ((get_business_option('business-settings')['show_warranty'] ?? 0) == 1)
|
||||
@if ((get_business_option('business-settings', $business_id)['show_warranty'] ?? 0) == 1)
|
||||
<div class="warranty-container-2 mt-3">
|
||||
<p>
|
||||
@if ((get_business_option('business-settings')['show_warranty'] ?? 0) == 1)
|
||||
<span>{{ get_business_option('business-settings')['warranty_void_label'] ?? '' }} - </span>
|
||||
@if ((get_business_option('business-settings', $business_id)['show_warranty'] ?? 0) == 1)
|
||||
<span>{{ get_business_option('business-settings', $business_id)['warranty_void_label'] ?? '' }} -
|
||||
</span>
|
||||
@endif
|
||||
{{ get_business_option('business-settings')['warranty_void'] ?? '' }}
|
||||
{{ get_business_option('business-settings', $business_id)['warranty_void'] ?? '' }}
|
||||
</p>
|
||||
</div>
|
||||
@endif
|
||||
<h4 class="tax-powered pt-3 pb-0">{{ get_option('general')['admin_footer_text'] ?? '' }}:
|
||||
{{ get_option('general')['admin_footer_link_text'] ?? '' }}
|
||||
</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@php
|
||||
$shareUrl = $due_collect->unique_id ? route('due.invoice.unique', $due_collect->unique_id) : ($due_collect->party?->phone ? route('due.invoice', ['due_id' => $due_collect->id, 'phone' => $due_collect->party?->phone]) : '');
|
||||
$facebook = $shareUrl ? 'https://www.facebook.com/sharer/sharer.php?u=' . urlencode($shareUrl) : '';
|
||||
$twitter = $shareUrl ? 'https://twitter.com/intent/tweet?url=' . urlencode($shareUrl) : '';
|
||||
$whatsapp = $shareUrl ? 'https://wa.me/?text=' . urlencode($shareUrl) : '';
|
||||
@endphp
|
||||
|
||||
@include('business::component.share-modal', ['copy' => $shareUrl, 'facebook' => $facebook, 'twitter' => $twitter, 'whatsapp' => $whatsapp])
|
||||
@@ -2,19 +2,19 @@
|
||||
<table class="table" id="datatable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('SL') }}.</th>
|
||||
<th class="d-print-none">{{ __('SL') }}.</th>
|
||||
<th>{{ __('Name') }}</th>
|
||||
<th>{{ __('Email') }}</th>
|
||||
<th>{{ __('Phone') }}</th>
|
||||
<th>{{ __('Type') }}</th>
|
||||
<th class="text-end">{{ __('Due Amount') }}</th>
|
||||
<th>{{ __('Action') }}</th>
|
||||
<th class="d-print-none">{{ __('Action') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($parties as $party)
|
||||
<tr>
|
||||
<td>{{ ($parties->currentPage() - 1) * $parties->perPage() + $loop->iteration }}</td>
|
||||
<td class="d-print-none">{{ ($parties->currentPage() - 1) * $parties->perPage() + $loop->iteration }}</td>
|
||||
<td>{{ $party->name }}</td>
|
||||
<td>{{ $party->email }}</td>
|
||||
<td>{{ $party->phone }}</td>
|
||||
@@ -59,10 +59,14 @@ class="view-due-payment-btn" data-bs-toggle="modal"
|
||||
{{ __('View Payment') }}
|
||||
</a>
|
||||
</li>
|
||||
@if ($party->dueCollect)
|
||||
|
||||
@php
|
||||
$due = $party->dueCollect()->latest()->first();
|
||||
@endphp
|
||||
|
||||
@if ($due)
|
||||
<li>
|
||||
<a href="{{ route('business.collect.dues.invoice', $party->id) }}"
|
||||
target="_blank">
|
||||
<a href="{{ route('business.collect.dues.invoice', $due->id) }}" target="_blank">
|
||||
<img src="{{ asset('assets/images/icons/Invoic.svg') }}" alt="">
|
||||
{{ __('Invoice') }}
|
||||
</a>
|
||||
@@ -74,6 +78,20 @@ class="view-due-payment-btn" data-bs-toggle="modal"
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
@if ($parties->count() > 0)
|
||||
<tr class="table-footer">
|
||||
<td class="text-start">{{ __('Total') }}</td>
|
||||
<td class="d-print-none"></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td class="text-end">
|
||||
{{ currency_format($parties->sum('due'), currency: business_currency()) }}
|
||||
</td>
|
||||
<td class="text-end">
|
||||
</td>
|
||||
</tr>
|
||||
@endif
|
||||
</table>
|
||||
</div>
|
||||
<div class="mt-3">
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
@extends('layouts.business.master')
|
||||
|
||||
@section('title')
|
||||
{{ __('Due List') }}
|
||||
{{ __(':type Due List', ['type' => request('type') === 'Retailer' ? __('Customer') : __(request('type'))]) }}
|
||||
@endsection
|
||||
|
||||
@section('main_content')
|
||||
@@ -10,11 +10,17 @@
|
||||
|
||||
<div class="card">
|
||||
<div class="card-bodys">
|
||||
<div class="table-header p-16">
|
||||
<h4>{{ __('Due List') }}</h4>
|
||||
<div class="table-header p-16 d-print-none">
|
||||
<h4>{{ __(':type Due List', ['type' => request('type') === 'Retailer' ? __('Customer') : __(request('type'))]) }}</h4>
|
||||
</div>
|
||||
<div class="table-top-form p-16">
|
||||
<form action="{{ route('business.party.dues') }}" method="GET" class="filter-form" table="#party-reports-data">
|
||||
|
||||
<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">{{ __(':type Due List', ['type' => request('type') === 'Retailer' ? __('Customer') : __(request('type'))]) }}</h4>
|
||||
</div>
|
||||
|
||||
<div class="table-top-form p-16 d-print-none">
|
||||
<form action="{{ route('business.party.dues') }}" method="GET" class="report-filter-form" table="#party-reports-data">
|
||||
|
||||
@if(request('type'))
|
||||
<input type="hidden" name="type" value="{{ request('type') }}">
|
||||
@@ -41,6 +47,30 @@
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="table-top-btn-group d-print-none">
|
||||
<ul>
|
||||
<li>
|
||||
<a class="export-btn" href="{{ route('business.dues.csv') }}">
|
||||
<img src="{{ asset('assets/images/logo/csv.svg') }}" alt="">
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="export-btn" href="{{ route('business.dues.excel') }}">
|
||||
<img src="{{ asset('assets/images/logo/excel.svg') }}" alt="">
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="export-btn" target="_blank" href="{{ route('business.dues.pdf') }}">
|
||||
<img src="{{ asset('assets/images/logo/pdf.svg') }}" alt="">
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a onclick="window.print()" class="print-window">
|
||||
<img src="{{ asset('assets/images/logo/printer.svg') }}" alt="">
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
64
Modules/Business/resources/views/dues/pdf-export.blade.php
Normal file
64
Modules/Business/resources/views/dues/pdf-export.blade.php
Normal file
@@ -0,0 +1,64 @@
|
||||
@extends('layouts.business.pdf.pdf_layout')
|
||||
|
||||
@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 style="text-align: center; margin: 0; padding: 0; font-size: 16px;" class="">{{ __('Due List') }}</h4>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('pdf_content')
|
||||
<table width="100%" cellpadding="6" cellspacing="0"
|
||||
style="border-collapse: collapse; border: 1px solid gainsboro; font-size:12px;"
|
||||
id="datatable">
|
||||
<thead>
|
||||
<tr style="background-color: #C52127; color: white;">
|
||||
<th style="font-size:12px; border:1px solid gainsboro; color: white" class="text-start">{{ __('Name') }}</th>
|
||||
<th style="font-size:12px; border:1px solid gainsboro; color: white" class="text-start">{{ __('Email') }}</th>
|
||||
<th style="font-size:12px; border:1px solid gainsboro; color: white" class="text-start">{{ __('Phone') }}</th>
|
||||
<th style="font-size:12px; border:1px solid gainsboro; color: white" class="text-start">{{ __('Type') }}</th>
|
||||
<th style="font-size:12px; border:1px solid gainsboro; color: white" class="text-start">{{ __('Due Amount') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($parties as $party)
|
||||
<tr style="background-color: {{ $loop->even ? '#F5F5F5' : '#FFFFFF' }};">
|
||||
<td style="border:1px solid gainsboro; text-align:center;">
|
||||
{{ $party->name }}
|
||||
</td>
|
||||
<td style="border:1px solid gainsboro; text-align:center;">
|
||||
{{ $party->email }}
|
||||
</td>
|
||||
<td style="border:1px solid gainsboro; text-align:center;">
|
||||
{{ $party->phone }}
|
||||
</td>
|
||||
@if ($party->type == 'Retailer')
|
||||
<td style="border:1px solid gainsboro; text-align:center;">{{ __('Customer') }}</td>
|
||||
@else
|
||||
<td style="border:1px solid gainsboro; text-align:center;">
|
||||
{{ $party->type }}
|
||||
</td>
|
||||
@endif
|
||||
<td style="border:1px solid gainsboro; text-align:center;">
|
||||
{{ currency_format($party->due, currency: business_currency()) }}
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
@if ($parties->count() > 0)
|
||||
<tfoot>
|
||||
<tr style="background-color:#C52127; color:#FFFFFF; font-weight:bold;">
|
||||
<td style="border:1px solid gainsboro; text-align:center; color: white">
|
||||
{{ __('Total') }}
|
||||
</td>
|
||||
<td style="border:1px solid gainsboro; text-align:center;"></td>
|
||||
<td style="border:1px solid gainsboro; text-align:center;"></td>
|
||||
<td style="border:1px solid gainsboro; text-align:center;"></td>
|
||||
<td style="border:1px solid gainsboro; text-align:center; color: white; font-weight: 600;">
|
||||
{{ currency_format($parties->sum('due'), currency: business_currency()) }}
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
@endif
|
||||
</table>
|
||||
@endsection
|
||||
@@ -156,7 +156,7 @@
|
||||
@endphp
|
||||
|
||||
@section('pdf_content')
|
||||
<div class="in-container">
|
||||
<div class="in-container" dir="{{ app()->getLocale() == 'ar' ? 'rtl' : 'ltr' }}">
|
||||
<div class="in-content">
|
||||
{{-- <table width="100%" class="invoice-top-header">
|
||||
<tr>
|
||||
@@ -247,7 +247,7 @@
|
||||
<table width="100%" style="margin-bottom:10px;">
|
||||
<tr>
|
||||
<td width="50%" valign="top"
|
||||
style="text-align:{{ app()->getLocale() == 'ar' ? 'left' : 'left' }};">
|
||||
style="text-align:{{ app()->getLocale() == 'ar' ? 'right' : 'left' }};">
|
||||
<table>
|
||||
<tr>
|
||||
<td>{{ __('Invoice') }}</td>
|
||||
@@ -265,7 +265,7 @@
|
||||
</td>
|
||||
|
||||
<td width="50%" valign="top"
|
||||
style="text-align:{{ app()->getLocale() == 'ar' ? 'right' : 'right' }};">
|
||||
style="text-align:{{ app()->getLocale() == 'ar' ? 'left' : 'right' }};">
|
||||
<table>
|
||||
<tr>
|
||||
<td>{{ __('Date') }}</td>
|
||||
|
||||
Reference in New Issue
Block a user