@extends('layouts.app') @section('title', 'Detail Invoice BOM - Cost Furniture') @section('page-title', 'Detail Invoice BOM') @section('content')
Kembali
@if(!$invoice->is_fixed) Edit Invoice
@csrf
@else
@csrf
@endif Print Invoice Print HPP
@csrf @method('DELETE')

{{ $invoice->product_type }}

Invoice Code: {{ $invoice->product_code }}

@if($invoice->is_fixed) FIXED @else DRAFT @endif
Product Name (Buyer) : {{ $invoice->product_name }}
Product Category : {{ $invoice->product_category }}
Product Type : {{ $invoice->product_type }}
Product Code : {{ $invoice->product_code }}
Size : {{ $invoice->size }}
Date : {{ $invoice->invoice_date->format('d F Y') }}
Order : {{ $invoice->order_qty }} Pcs
@if($invoice->image_path)
Product Image
@else

No Image

@endif

Material Locking
Panel
{{ $invoice->panel_type ?? '-' }}
Solid
{{ $invoice->solid_type ?? '-' }}
Veneer Face
{{ $invoice->veneer_face_type ?? '-' }}
Veneer Back
{{ $invoice->veneer_back_type ?? '-' }}
Box Drawer
{{ $invoice->box_drawer_type ?? '-' }}

Biaya Produksi (M³)
Total M³
{{ number_format($invoice->total_m3 ?? 0, 6) }} m³
Harga per M³
{{ \App\Helpers\CasegoodHelper::formatRupiah($invoice->harga_per_m3 ?? 6000000) }}
Biaya Produksi
{{ \App\Helpers\CasegoodHelper::formatRupiah($invoice->biaya_produksi ?? 0) }}
Final Grand Total
{{ \App\Helpers\CasegoodHelper::formatRupiah($invoice->final_grand_total ?? $invoice->grand_total) }}
Formula: Total M³ × Harga per M³ = Biaya Produksi

Painting Cost Calculator
Total Material Painting
Rp 0
Total Biaya Produksi Painting
Rp 0

Calculation Details
@php $calculationData = json_decode($invoice->calculation_data, true); $no = 1; @endphp @if($calculationData) @foreach($calculationData as $key => $data) @endforeach @else @endif
No Component Name Details Total
{{ $no++ }} {{ ucwords(str_replace('-', ' ', $key)) }} @if(isset($data['details'])) @if(isset($data['details']['width'])) Width: {{ $data['details']['width'] }}mm, @endif @if(isset($data['details']['length'])) Length: {{ $data['details']['length'] }}mm, @endif @if(isset($data['details']['qty'])) Qty: {{ $data['details']['qty'] }} @endif @if(isset($data['details']['m2'])) | M²: {{ number_format($data['details']['m2'], 6) }} @endif @if(isset($data['m3'])) | M³: {{ number_format($data['m3'], 6) }} @endif @else - @endif {{ \App\Helpers\CasegoodHelper::formatRupiah($data['componentTotal'] ?? 0) }}
No calculation data available
TOTAL COMPONENTS:
{{ \App\Helpers\CasegoodHelper::formatRupiah($invoice->grand_total) }}
BIAYA PRODUKSI (M³):
{{ \App\Helpers\CasegoodHelper::formatRupiah($invoice->biaya_produksi ?? 0) }}
FINAL GRAND TOTAL:

{{ \App\Helpers\CasegoodHelper::formatRupiah($invoice->final_grand_total ?? $invoice->grand_total) }}

@endsection