| {{ $loop->iteration }} |
{{ $detail->sub_category_title }} |
@if ($detail->category_id == 25)
الماس
@else
{{ $detail->category_id }}
@endif
|
{{ number_format($detail->weight, 2, '.', ',') }} |
{{ $detail->count_pieces }} |
{{ number_format($detail->caliberd_weight, 2, '.', ',') }} |
{{ number_format($detail->price / $detail->weight, 2, '.', ',') }}
|
{{ number_format($detail->price, 2, '.', ',') }} |
{{ number_format($detail->vat_per, 2, '.', ',') }} |
{{ number_format($detail->total_vat, 2, '.', ',') }} |
{{ number_format($detail->grand_total, 2, '.', ',') }} |
@endforeach
@php
$totalPcs = collect($data['details'])->sum('count_pieces');
$totalWeight = collect($data['details'])->sum('weight');
$totalCaliberdWeight = collect($data['details'])->sum('caliberd_weight');
$totalAmount = collect($data['details'])->sum('grand_total');
$totalVat = collect($data['details'])->sum('total_vat');
$netAmount = $totalAmount - $totalVat;
@endphp
| الاجمالي / Total |
{{ number_format($data['master']->total_weight, 2, '.', ',') }} |
$totalPcs |
{{ number_format($totalCaliberdWeight, 2, '.', ',') }} |
|
$netAmount |
{{ $data['details'][0]->vat_per }} |
$totalVat |
$totalAmount |