update marketing
All checks were successful
All checks were successful
This commit is contained in:
@@ -2,22 +2,22 @@
|
||||
<table class="table" id="datatable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="table-header-content">{{ __('SL') }}.</th>
|
||||
<th class="table-header-content">{{ __('Invoice Number') }}</th>
|
||||
<th class="table-header-content">{{ __('Due Amount') }}</th>
|
||||
<th class="table-header-content">{{ __('Action') }}</th>
|
||||
<th>{{ __('SL') }}.</th>
|
||||
<th>{{ __('Invoice Number') }}</th>
|
||||
<th>{{ __('Due Amount') }}</th>
|
||||
<th class="d-print-none">{{ __('Action') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($walk_in_customers as $walk_in_customer)
|
||||
<tr>
|
||||
<td class="table-single-content">
|
||||
<td>
|
||||
{{ ($walk_in_customers->currentPage() - 1) * $walk_in_customers->perPage() + $loop->iteration }}
|
||||
</td>
|
||||
<td class="table-single-content">{{ $walk_in_customer->invoiceNumber }}</td>
|
||||
<td class="text-danger table-single-content">
|
||||
<td>{{ $walk_in_customer->invoiceNumber }}</td>
|
||||
<td>
|
||||
{{ currency_format($walk_in_customer->dueAmount, currency: business_currency()) }}</td>
|
||||
<td class="print-d-none table-single-content">
|
||||
<td class="d-print-none">
|
||||
<div class="dropdown table-action">
|
||||
<button type="button" data-bs-toggle="dropdown">
|
||||
<i class="far fa-ellipsis-v"></i>
|
||||
@@ -51,9 +51,14 @@ class="view-due-payment-btn" data-bs-toggle="modal"
|
||||
{{ __('View Payment') }}
|
||||
</a>
|
||||
</li>
|
||||
@if ($walk_in_customer->dueCollect)
|
||||
|
||||
@php
|
||||
$due = $walk_in_customer->dueCollect()->latest()->first();
|
||||
@endphp
|
||||
|
||||
@if ($due)
|
||||
<li>
|
||||
<a href="{{ route('business.collect.walk-dues.invoice', $walk_in_customer->id) }}"
|
||||
<a href="{{ route('business.collect.walk-dues.invoice', $due->id) }}"
|
||||
target="_blank">
|
||||
<img src="{{ asset('assets/images/icons/Invoic.svg') }}" alt="">
|
||||
{{ __('Invoice') }}
|
||||
@@ -65,10 +70,19 @@ class="view-due-payment-btn" data-bs-toggle="modal"
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
</tbody>
|
||||
@if ($walk_in_customers->count() > 0)
|
||||
<tr class="table-footer">
|
||||
<td class="text-start">{{ __('Total') }}</td>
|
||||
<td></td>
|
||||
<td>
|
||||
{{ currency_format($walk_in_customers->sum('dueAmount'), currency: business_currency()) }}
|
||||
</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
@endif
|
||||
</table>
|
||||
</div>
|
||||
<div class="mt-3">
|
||||
<div class="mt-3 d-print-none">
|
||||
{{ $walk_in_customers->links('vendor.pagination.bootstrap-5') }}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user