تاریخ: {{ $b_cheque->date->format('d/m/Y') }}
محترمی جناب: {{ $b_cheque->supplier->supplier_name_urdu }}
{{-- {{ $b_cheque->supplier->supplier_name_urdu }}
--}}
{{-- {{ $b_cheque->goodReceiptTruck->truck_no }} --}}
حوالہ نمبر: {{ $b_cheque->bilty_no }}
گاڑی نمبر:
{{ $b_cheque->goodReceiptTruck->truck_no }}
{{--
--}}
@php
$details = $b_cheque->details;
$rows = collect([
(object) ['item' => 'کرایہ محصول', 'value' => number_format($details->rent_recieve_amount, 0) ?? '-'],
(object) ['item' => 'مزوری', 'value' => number_format($details->labour_amount, 0) ?? '-'],
(object) ['item' => 'مارکیٹ فیس', 'value' => number_format($details->market_fees_amount, 0) ?? '-'],
(object) ['item' => 'ڈاک خرج', 'value' => number_format($details->post_expense_amount, 0) ?? '-'],
(object) [
'item' => 'خرجہ متفرقات',
'value' => number_format($details->miscellaneous_expense_amount, 0) ?? '-',
],
(object) ['item' => 'نقد', 'value' => number_format($details->cash_amount, 0) ?? '-'],
(object) ['item' => 'کمیشن', 'value' => number_format($details->commission_amount, 0) ?? '-'],
]);
$maal = $b_cheque->items;
@endphp
| تفصیل خرج |
رقم |
مال |
بورے |
وزن |
بهاؤدر |
قیمت |
@php
$bori = 0;
$weight = 0;
$total_amount = 0;
@endphp
@foreach ($maal as $index => $m)
@php
$bori += $m->bori;
$weight += $m->weight;
$total_amount += $m->amount;
@endphp
| {{ $rows[$index]->item ?? '' }} |
{{ $rows[$index]->value ?? '' }} |
{{ $m->productChildCate->name_urdu }} |
{{ $m->bori }} |
{{ $m->weight }} |
{{ number_format($m->rate, 0) }} |
{{ number_format($m->amount, 0) }} |
@endforeach
@foreach ($rows->skip($maal->count()) as $item)
| {{ $item->item }} |
{{ $item->value }} |
|
|
|
|
|
@endforeach
| کل خرجہ |
{{ number_format($details->total_expanse_amount, 0) }} |
|
|
|
|
|
|
|
|
{{ $bori }} |
{{ $weight }} |
|
|
| خام بکری |
{{ number_format($total_amount, 0) }} |
| کل خرجہ |
{{ number_format($details->total_expanse_amount, 0) }} |
| پختہ بکری |
{{ number_format($total_amount - $details->total_expanse_amount, 0) }} |