@extends('layouts.supervisor') @section('title', 'Laporan Produksi - Supervisor') @section('content')

Laporan Produksi

Monitoring dan analisis data produksi @if(request('start_date') || request('end_date')) | Periode: {{ request('start_date') ? \Carbon\Carbon::parse(request('start_date'))->format('d M Y') : 'Awal' }} - {{ request('end_date') ? \Carbon\Carbon::parse(request('end_date'))->format('d M Y') : 'Akhir' }} @endif

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 ?? ($totalMaterialCost + $totalSparepartCost + $totalLaborCost), 0, ',', '.') }}

@if (request('search')) @endif
@if (request()->hasAny(['start_date', 'end_date', 'status', 'product_id'])) @endif
@if (request()->hasAny(['start_date', 'end_date', 'status', 'product_id', 'search']))
Filter Aktif: @if (request('search')) Pencarian: "{{ request('search') }}" @endif @if (request('start_date') || request('end_date')) Periode: {{ request('start_date') ? date('d M Y', strtotime(request('start_date'))) : 'Awal' }} - {{ request('end_date') ? date('d M Y', strtotime(request('end_date'))) : 'Akhir' }} @endif @if (request('status')) Status: {{ ucfirst(str_replace('_', ' ', request('status'))) }} @endif @if (request('product_id')) Produk: {{ $productList->find(request('product_id'))->product_title ?? '-' }} @endif
@endif

Data Produksi

@forelse($productions as $prd) @empty @endforelse
ID Order Produk Teknisi Status Tanggal Mulai Durasi Total Biaya
#{{ $prd->id }} #{{ $prd->order->id ?? '-' }}
{{ $prd->order->customer_name ?? '-' }}
{{ $prd->product->product_title ?? '-' }}
Qty: {{ $prd->quantity ?? 1 }}
{{ $prd->teknisi->name ?? '-' }} {{ ucfirst(str_replace('_', ' ', $prd->status)) }} {{ $prd->actual_start_date ? $prd->actual_start_date->format('d/m/Y') : ($prd->start_date ? $prd->start_date->format('d/m/Y') : ($prd->created_at ? $prd->created_at->format('d/m/Y') : '-')) }} @if($prd->start_date && $prd->end_date) {{ $prd->start_date->diffInDays($prd->end_date) }} hari @elseif($prd->estimated_duration_days) Estimasi: {{ $prd->estimated_duration_days }} hari @else - @endif @php $total = ($prd->total_production_cost ?? 0) + ($prd->labor_cost ?? 0); @endphp Rp {{ number_format($total, 0, ',', '.') }}

Tidak ada data produksi

Belum ada data produksi yang ditemukan.

@if ($productions->hasPages())
{{ $productions->onEachSide(1)->links() }}
@endif
@endsection