| Invoice | Date | Time | User | Staff | Member | Item Code | Item Barcode | Item Name | Qty | Price | Disc | Subtotal | Grand Total | |||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $invoice->no }} | {{ $invoice->created_at->format('d/m/y') }} | {{ $invoice->created_at->format('H:i') }} | {{ $invoice->kasir->username }} | {{ $invoice->sales->name }} | @if($invoice->member_code){{ $invoice->member->name }} | @else- | @endif{{ $invoice->item->code }} | {{ $invoice->item->barcode }} | {{ $invoice->item->name }} | {{ $invoice->qty }} | {{ $invoice->nprice }} | {{ $discount }} | {{ $subtotal }} | {{ $invoice->total_price }} | ||
| Grand Total | @php $totalQty = $invoicesdetail->filter(function ($detail) { return $detail->qty > 0; })->sum('qty'); @endphp{{ $totalQty }} | {{ $totalDiscount }} | {{ $totalSumsubtotal }} | {{ $invoicesdetail->sum('total_price') }} | ||||||||||||