| # | {{__('reports.table.supplier_name')}} | {{__('reports.table.items')}} | {{__('reports.table.total')}} | {{__('reports.table.paid')}} | {{__('reports.table.owed')}} | {{__('reports.table.date')}} |
|---|---|---|---|---|---|---|
| {{ $loop->iteration }} | {{ $supply->supplier->name}} | {!! implode(", ", array_map(function ($item) { return $item['item']['name'] . "({$item['quantity']})"; }, $supply->items->toArray())) !!} | {{ number_format($supply->total_cost) . ' XAF'}} | {{ number_format($supply->paid) . ' XAF'}} | {{ number_format($supply->owed) . ' XAF'}} | {{ Carbon\Carbon::parse($supply->created_at)->toFormattedDateString() }} |
| {{__('reports.table.total')}} | {{ number_format($total_cost) . ' XAF'}} | {{ number_format($total_paid) . ' XAF'}} | {{ number_format($total_owed) . ' XAF'}} | |||