migrate to gtea from bistbucket
This commit is contained in:
47
Modules/Business/resources/views/reports/due/datas.blade.php
Normal file
47
Modules/Business/resources/views/reports/due/datas.blade.php
Normal file
@@ -0,0 +1,47 @@
|
||||
<div class="responsive-table m-0">
|
||||
<table class="table" id="datatable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('SL') }}.</th>
|
||||
<th class="text-start">{{ __('Name') }}</th>
|
||||
<th class="text-start">{{ __('Phone') }}</th>
|
||||
<th class="text-start">{{ __('Type') }}</th>
|
||||
<th class="text-start">{{ __('Credit Limit') }}</th>
|
||||
<th class="text-end">{{ __('Due Amount') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($parties as $party)
|
||||
<tr>
|
||||
<td>{{ ($parties->currentPage() - 1) * $parties->perPage() + $loop->iteration }}</td>
|
||||
<td class="text-start">{{ $party->name }}</td>
|
||||
<td class="text-start">{{ $party->phone }}</td>
|
||||
@if ($party->type == 'Retailer')
|
||||
<td class="text-start">{{ __('Customer') }}</td>
|
||||
@else
|
||||
<td class="text-start">{{ $party->type }}</td>
|
||||
@endif
|
||||
<td class="text-start">{{ currency_format($party->credit_limit, currency: business_currency()) }}</td>
|
||||
<td class="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></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td class="text-start">{{ currency_format($parties->sum('credit_limit'), currency: business_currency()) }}</td>
|
||||
<td class="text-end">
|
||||
{{ currency_format($parties->sum('due'), currency: business_currency()) }}
|
||||
</td>
|
||||
</tr>
|
||||
@endif
|
||||
</table>
|
||||
</div>
|
||||
<div class="mt-3">
|
||||
{{ $parties->links('vendor.pagination.bootstrap-5') }}
|
||||
</div>
|
||||
Reference in New Issue
Block a user