Inventory List (Accessories & Assets)
{{-- ✅ Filter Form --}}
{{-- ✅ Filter Form --}}
{{-- ✅ Responsive Table --}}
| Sl |
Bill No |
Date |
Outlet |
Group |
Sub Group |
Description |
Qty |
Rate |
Value |
Supplier |
Address |
Warranty |
Remarks |
@php
$total = 0;
$outletNames = $outlets->pluck('outlet_name', 'id');
$supplierNames = $supplier->pluck('supplier_name', 'id');
$group_typeNames = $group->pluck('group_name', 'id');
$sub_group_typeNames = $sub_group->pluck('sub_group_name', 'id');
@endphp
@forelse($assets as $key => $item)
| {{ $key + 1 }} |
{{ $item->billNo }} |
{{ $item->entryDate }} |
{{ $outletNames[$item->outlet] ?? '-' }} |
{{ $group_typeNames[$item->groupID] ?? '-' }}
|
{{ $sub_group_typeNames[$item->subGroupID] ?? '-' }} |
{{ $item->description }} |
{{ $item->quantity }} |
{{ $item->rate }} |
{{ $item->amount }} |
{{ $supplierNames[$item->supplier] ?? '-' }} |
{{ $item->address }} |
{{ $item->waranty }} |
{{ $item->remarks }} |
@php $total += $item->amount; @endphp
@empty
| No data found |
@endforelse
| Total |
{{ number_format($total, 2) }} |
@endsection