PT. POLJAM TECH
Jl. Lingkar Barat II Lr. Veteran Rt. 04 Kel. Bagan Pete, Kec. Alam Barajo, Kota Jambi
Laporan Produksi
Periode: {{ request('start_date') ? \Carbon\Carbon::parse(request('start_date'))->format('d M Y') : 'Semua' }} {{ request('end_date') ? ' - ' . \Carbon\Carbon::parse(request('end_date'))->format('d M Y') : '' }}
Tanggal Laporan:
{{ now()->format('d M Y H:i') }}
Status Filter:
{{ request('status') ? ucfirst(str_replace('_', ' ', request('status'))) : 'Semua Status' }}
Total Data:
{{ $productions->count() }} produksi
Ringkasan Produksi
Total Produksi
{{ number_format($totalProductions, 0, ',', '.') }}
Biaya Bahan
Rp {{ number_format($totalMaterialCost, 0, ',', '.') }}
Biaya Sparepart
Rp {{ number_format($totalSparepartCost, 0, ',', '.') }}
Labor Cost
Rp {{ number_format($totalLaborCost, 0, ',', '.') }}
Total Biaya
Rp {{ number_format($totalProductionCost, 0, ',', '.') }}
Detail Produksi
@if($productions->count() > 0) @foreach($productions as $index => $production) @endforeach
No ID Order Customer Produk Qty Teknisi Status Tgl Mulai Durasi Total Biaya
{{ $index + 1 }} #{{ $production->id }} #{{ $production->order->id ?? '-' }} {{ $production->order->customer_name ?? '-' }} {{ $production->product->product_title ?? '-' }} {{ $production->quantity }} {{ $production->teknisi->name ?? '-' }} {{ ucfirst(str_replace('_', ' ', $production->status)) }} {{ $production->actual_start_date ? $production->actual_start_date->format('d/m/Y') : ($production->start_date ? $production->start_date->format('d/m/Y') : '-') }} @if($production->start_date && $production->end_date) {{ $production->start_date->diffInDays($production->end_date) }} hari @elseif($production->estimated_duration_days) Est: {{ $production->estimated_duration_days }} hari @else - @endif Rp {{ number_format($production->total_actual_cost ?? 0, 0, ',', '.') }}
@else

Tidak ada data produksi untuk periode yang dipilih.

@endif
Mengetahui,
Manager Produksi
Jambi, {{ now()->format('d M Y') }}
Direktur