Files
kulakpos_web/Modules/Business/resources/views/dues/excel-csv.blade.php

43 lines
1.3 KiB
PHP
Raw Normal View History

2026-05-14 11:55:22 +07:00
<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>