Bill of Material

({{ $invoice->product_category }})
Penawaran
Product Name : {{ $invoice->product_name }}
Product Type : {{ $invoice->product_type }}
Product code : {{ $invoice->product_code }}
Size : {{ $invoice->size }}
Date : {{ \Carbon\Carbon::parse($invoice->invoice_date)->format('d F Y') }}
Order : {{ $invoice->order_qty }} Pcs
@if($invoice->image_path) Product Image @else
No Image
@endif
@php $calculationData = json_decode($invoice->calculation_data, true); $rowNumber = 1; @endphp @if($calculationData) @foreach($calculationData as $key => $component) @if(isset($component['componentTotal']) && $component['componentTotal'] > 0) @php $componentName = $component['componentName'] ?? strtoupper(str_replace('-', ' ', $key)); $details = $component['details'] ?? []; $subComponents = $component['subComponents'] ?? []; $componentTotal = $component['componentTotal']; @endphp @foreach($subComponents as $subKey => $subComp) @endforeach @endif @endforeach @else @endif
Inc/
Number
Part Name FINISH SIZE QTY
ITEM
M2 Material Note Harga Total
T W L
{{ $rowNumber++ }} {{ $componentName }} @if(isset($details['thicknessTotal'])) {{ $details['thicknessTotal'] }} @elseif(isset($details['solidThickness'])) {{ $details['solidThickness'] }} @else - @endif {{ $details['width'] ?? '-' }} {{ $details['length'] ?? '-' }} {{ $details['qty'] ?? 1 }} @if(isset($details['m2'])) {{ number_format($details['m2'], 4) }} @else - @endif @if(strpos($key, 'panel') !== false) {{ $invoice->panel_type }} @elseif(strpos($key, 'frame') !== false) SL.{{ $invoice->solid_type }} @elseif(strpos($key, 'drawer') !== false && !in_array($key, ['support-drawer-13', 'cleat-drawer-14'])) {{ $invoice->box_drawer_type }} @else Mix @endif @if(strpos($key, 'panel') !== false && strpos($key, 'back') === false) TV=F,V.{{ $invoice->veneer_face_type }} + B,V.{{ $invoice->veneer_back_type }} @elseif(strpos($key, 'back-panel') !== false) TV=F/B,V.{{ $invoice->veneer_face_type }} @elseif(strpos($key, 'facedrawer') !== false) TV=F,V.{{ $invoice->veneer_face_type }} + B,V.{{ $invoice->veneer_back_type }} @else - @endif - Rp {{ number_format($componentTotal, 0, ',', '.') }}
{{ $subComp['name'] ?? $subKey }} @if(isset($subComp['thickness'])) {{ $subComp['thickness'] }} @else - @endif @if(isset($subComp['width'])) {{ $subComp['width'] }} @else - @endif @if(isset($subComp['length'])) {{ $subComp['length'] }} @else - @endif @if(isset($subComp['qty'])) {{ $subComp['qty'] }} @else - @endif @if(isset($subComp['m2'])) {{ number_format($subComp['m2'], 4) }} @else - @endif @if(isset($subComp['material'])) {{ $subComp['material'] }} @else - @endif @if(isset($subComp['pattern'])) {{ $subComp['pattern'] }} @elseif(isset($subComp['note'])) {{ $subComp['note'] }} @else - @endif @if(isset($subComp['price'])) Rp {{ number_format($subComp['price'], 0, ',', '.') }} @elseif(isset($subComp['pricePerUnit'])) Rp {{ number_format($subComp['pricePerUnit'], 0, ',', '.') }} @else - @endif @if(isset($subComp['total'])) Rp {{ number_format($subComp['total'], 0, ',', '.') }} @else - @endif
GRAND TOTAL (Material Components) Rp {{ number_format($invoice->grand_total, 0, ',', '.') }}
Total M³ {{ number_format($invoice->total_m3 ?? 0, 6) }} m³
Harga per M³ Rp {{ number_format($invoice->harga_per_m3 ?? 6000000, 0, ',', '.') }}
Biaya Produksi (M³) Rp {{ number_format($invoice->biaya_produksi ?? 0, 0, ',', '.') }}
FINAL GRAND TOTAL (Components + Biaya Produksi) Rp {{ number_format($invoice->final_grand_total ?? $invoice->grand_total, 0, ',', '.') }}
No calculation data available