75 lines
5.0 KiB
PHP
75 lines
5.0 KiB
PHP
<div class="responsive-table table-container m-0 ">
|
|
<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>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach ($walk_in_customers as $walk_in_customer)
|
|
<tr>
|
|
<td class="table-single-content">
|
|
{{ ($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">
|
|
{{ currency_format($walk_in_customer->dueAmount, currency: business_currency()) }}</td>
|
|
<td class="print-d-none table-single-content">
|
|
<div class="dropdown table-action">
|
|
<button type="button" data-bs-toggle="dropdown">
|
|
<i class="far fa-ellipsis-v"></i>
|
|
</button>
|
|
<ul class="dropdown-menu">
|
|
<li>
|
|
<a
|
|
href="{{ route('business.collect.walk.dues', ['id' => $walk_in_customer->id]) }}">
|
|
<i class="fal fa-edit"></i>
|
|
{{ __('Collect Due') }}
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a href="#"
|
|
data-url="{{ route('business.dues.view-payment', ['id' => $walk_in_customer->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 ($walk_in_customer->dueCollect)
|
|
<li>
|
|
<a href="{{ route('business.collect.walk-dues.invoice', $walk_in_customer->id) }}"
|
|
target="_blank">
|
|
<img src="{{ asset('assets/images/icons/Invoic.svg') }}" alt="">
|
|
{{ __('Invoice') }}
|
|
</a>
|
|
</li>
|
|
@endif
|
|
</ul>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div class="mt-3">
|
|
{{ $walk_in_customers->links('vendor.pagination.bootstrap-5') }}
|
|
</div>
|