@extends('layouts.app') @section('title', 'Purchase Report') @section('breadcrumb') @include('components.breadcrumb', ['items' => ['Reports' => null, 'Purchase Report' => null]]) @endsection @section('content')
Filter and analyze purchase data
| Date | Voucher | Supplier | Items | Qty | Amount |
|---|---|---|---|---|---|
| {{ $p->purchase_date->format('M d, Y') }} | {{ $p->voucher_no }} | {{ $p->party->name ?? '—' }} | @foreach($p->items as $item) {{ $item->yarn->name ?? '—' }}{{ !$loop->last ? ', ' : '' }} @endforeach | {{ number_format($p->items->sum('quantity')) }} | ৳{{ number_format($p->grand_total) }} |
| No records found. | |||||
| Total | {{ number_format($purchases->sum(fn ($p) => $p->items->sum('quantity'))) }} | ৳{{ number_format($totals['grand_total']) }} | |||