{{ $variation['article_no'] ?? 'N/A' }} - {{ $variation['pname'] ?? 'N/A' }} (Size: {{ $variation['name'] ?? 'N/A' }})
{{-- Box Information --}}
@php
$boxInfo = $getMaterial->where('material_type_id', '61')->where('product_type_id', $variation['product_type_id'])->first();
@endphp
@if($boxInfo)
Box Information:
Box No: {{ $boxInfo->material_no }}
Box Name: {{ $boxInfo->name }}
Quantity in Box: {{ 1/$boxInfo->quantity }} {{ $product['hname'] }}
@endif
{{-- Material Costing Table --}}
| Sr. |
Material No |
Material Name |
Quantity |
Price |
Units |
@php
$mprice = 0;
$loopIndex = 1;
@endphp
@foreach($getMaterial as $item)
@if(($variation['product_type_id'] ?? null) === $item->product_type_id)
@unless($item->material_type_id == '61')
| {{ $loopIndex++ }} |
{{ $item->material_no }} |
{{ $item->name }} |
{{ $item->quantity }} |
{{ number_format($item->cprice * $item->quantity, 2) }} |
{{ $item->hname }} |
@php $mprice += $item->cprice * $item->quantity; @endphp
@endunless
@endif
@endforeach
| Total Material Cost: |
{{ number_format($mprice, 2) }} |
|