migrate to gtea from bistbucket
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('SL') }}.</th>
|
||||
<th class="text-start">{{ __('Supplier Name') }}</th>
|
||||
<th class="text-start">{{ __('Phone') }}</th>
|
||||
<th class="text-start">{{ __('Type') }}</th>
|
||||
<th class="text-start">{{ __('Total Purchases') }}</th>
|
||||
<th class="text-start">{{ __('Amount') }}</th>
|
||||
<th class="text-start">{{ __('Paid') }}</th>
|
||||
<th class="text-start">{{ __('Total Purchase Due') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($suppliers as $supplier)
|
||||
<tr>
|
||||
<td>{{ $loop->iteration }}</td>
|
||||
<td class="text-start">{{ $supplier->name }}</td>
|
||||
<td class="text-start">{{ $supplier->phone }}</td>
|
||||
<td class="text-start">{{ $supplier->type }}</td>
|
||||
<td class="text-start">{{ $supplier->purchases?->count() }}</td>
|
||||
<td class="text-start">{{ currency_format($supplier->purchases?->sum('totalAmount'), currency: business_currency()) }}</td>
|
||||
<td class="text-start">{{ currency_format($supplier->purchases?->sum('paidAmount'), currency: business_currency()) }}</td>
|
||||
<td class="text-start">{{ currency_format($supplier->purchases?->sum('dueAmount'), currency: business_currency()) }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
@if ($suppliers->count() > 0)
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td class="text-start">{{__('Total')}}</td>
|
||||
<td class="text-start"></td>
|
||||
<td class="text-start"></td>
|
||||
<td class="text-start"></td>
|
||||
<td class="text-center">{{ $suppliers->sum(fn($supplier) => $supplier->purchases?->count() ) }}</td>
|
||||
<td class="text-start">{{ currency_format($totalAmount, currency: business_currency()) }}</td>
|
||||
<td class="text-start">{{ currency_format($totalPaid, currency: business_currency()) }}</td>
|
||||
<td class="text-start">{{ currency_format($totalDue, currency: business_currency()) }}</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
@endif
|
||||
</table>
|
||||
Reference in New Issue
Block a user