{{ $companySettings['company_name'] ?? 'POLJAM TECH' }}
{{ $companySettings['company_address'] ?? 'Jl. Lingkar Barat II Lr. Veteran Rt. 04 Kel. Bagan Pete, Kec. Alam Barajo, Kota Jambi' }}
@if(isset($companySettings['company_phone']) && $companySettings['company_phone'])
Telp: {{ $companySettings['company_phone'] }} @if(isset($companySettings['company_email']) && $companySettings['company_email']) | Email: {{ $companySettings['company_email'] }} @endif
@endif
Laporan Produksi
Nomor: PROD-{{ str_pad($production->id, 6, '0', STR_PAD_LEFT) }} | Tanggal: {{ now()->format('d M Y') }}
@if($production->supervisor) @else @endif
Order ID : #{{ $production->order->id ?? 'N/A' }} Status : {{ ucfirst(str_replace('_', ' ', $production->status)) }}
Customer : {{ $production->order->customer_name ?? 'N/A' }} Quantity : {{ $production->quantity ?? 1 }} unit
Produk : {{ $production->product->product_title ?? 'N/A' }}
Teknisi : {{ $production->teknisi->name ?? 'N/A' }}Supervisor : {{ $production->supervisor->name ?? 'N/A' }}
Timeline Produksi
@if($production->actual_start_date) @endif @if($production->estimated_completion_date) @endif @if($production->completed_at) @endif @if($actualDurationFormatted) @endif @if($production->estimated_duration_days) @endif
Ditugaskan {{ $production->assigned_at ? $production->assigned_at->format('d M Y, H:i') : 'N/A' }}
Mulai Produksi {{ $production->actual_start_date->format('d M Y, H:i') }}
Estimasi Selesai {{ $production->estimated_completion_date->format('d M Y') }}
Selesai {{ $production->completed_at->format('d M Y, H:i') }}
Durasi Aktual {{ $actualDurationFormatted }}
Durasi Estimasi {{ $production->estimated_duration_days }} hari
Status Approval
@if($production->approved_at) @endif @if($production->completion_status) @endif @if($production->completion_approved_at) @endif
Planning Status {{ ucfirst(str_replace('_', ' ', $production->planning_status ?? 'planning')) }}
Tanggal Approval {{ $production->approved_at->format('d M Y, H:i') }}
Completion Status {{ ucfirst(str_replace('_', ' ', $production->completion_status)) }}
Tanggal Completion Approval {{ $production->completion_approved_at->format('d M Y, H:i') }}
Detail Biaya Bahan Baku
@if($production->productionMaterials->count() > 0) @foreach($production->productionMaterials as $index => $pm) @endforeach
No Nama Bahan Baku Quantity Unit Harga/Unit Total
{{ $index + 1 }} {{ $pm->material->name ?? 'N/A' }} {{ number_format($pm->quantity, 2, ',', '.') }} {{ $pm->unit }} Rp {{ number_format($pm->unit_cost, 0, ',', '.') }} Rp {{ number_format($pm->total_cost, 0, ',', '.') }}
Total Biaya Bahan Baku Rp {{ number_format($materialTotal, 0, ',', '.') }}
@else
Tidak ada bahan baku
@endif
Detail Biaya Sparepart
@if($production->productionSpareparts->count() > 0) @foreach($production->productionSpareparts as $index => $ps) @endforeach
No Nama Sparepart Quantity Unit Harga/Unit Total
{{ $index + 1 }} {{ $ps->sparepart->name ?? 'N/A' }} {{ number_format($ps->quantity, 2, ',', '.') }} {{ $ps->unit }} Rp {{ number_format($ps->unit_cost, 0, ',', '.') }} Rp {{ number_format($ps->total_cost, 0, ',', '.') }}
Total Biaya Sparepart Rp {{ number_format($sparepartTotal, 0, ',', '.') }}
@else
Tidak ada sparepart
@endif
Ringkasan Biaya Produksi
Biaya Bahan Baku
Rp {{ number_format($materialTotal, 0, ',', '.') }}
Biaya Sparepart
Rp {{ number_format($sparepartTotal, 0, ',', '.') }}
Upah Labor
Rp {{ number_format($laborTotal, 0, ',', '.') }}
Total Biaya Produksi
Rp {{ number_format($totalCost, 0, ',', '.') }}
@if($production->notes || $production->completion_notes || $production->supervisor_feedback)
Catatan
@if($production->notes)
Catatan:
{{ $production->notes }}
@endif @if($production->completion_notes)
Catatan Penyelesaian:
{{ $production->completion_notes }}
@endif @if($production->supervisor_feedback)
Feedback Supervisor:
{{ $production->supervisor_feedback }}
@endif
@endif
Teknisi yang Bertanggung Jawab
{{ $production->teknisi->name ?? 'N/A' }}
Mengetahui, Supervisor
@if($production->supervisor)
{{ $production->supervisor->name }}
@endif