@extends('layout.app') @section('title', 'Bill Details') @section('page-title', 'Bill #' . $bill->bill_number) @section('content')
{{ $bill->Shopkeeper->name ?? 'N/A' }}
{{ $bill->shop_name_snapshot ?? 'N/A' }}
Total Items: {{ $bill->BillItems->count() }}
Total Amount: Rs. {{ number_format($bill->total_amount, 2) }}
| Sr# | Item Code | Item Name | Description | Location | Unit | Per Carton | Qty Pieces | Qty Cartons | Total Qty | Price/Unit | Total Price |
|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $loop->iteration }} | {{ $item->Item->item_code ?? 'N/A' }} | {{ $item->Item->name ?? 'N/A' }} | {{ $item->Item->description ?? 'N/A' }} | {{ $item->Item->location ?? 'N/A' }} | {{ $item->Item->unit->name ?? 'N/A' }} | {{ $item->pieces_per_carton ?? 0 }} | {{ $item->quantity_pieces ?? 0 }} | {{ $item->quantity_cartons ?? 0 }} | {{ number_format($item->quantity_total, 2) }} | Rs. {{ number_format($item->price_at_sale, 2) }} | Rs. {{ number_format($item->price_total, 2) }} |
| No items found in this bill | |||||||||||