@extends('layouts.supervisor') @section('title', 'Persetujuan Penyelesaian - Supervisor') @section('content')

Persetujuan Penyelesaian

Review dan setujui penyelesaian produksi dari teknisi

Menunggu Persetujuan

{{ $pendingCompletion->count() }}

Total Produksi

{{ $pendingCompletion->count() }}

Status

Aktif

@if($pendingCompletion->count() > 0)

Menunggu Persetujuan Penyelesaian

{{ $pendingCompletion->count() }} item
@foreach($pendingCompletion as $production) @php $orderQty = $production->quantity ?? $production->order->quantity ?? 1; $materialTotal = $production->total_material_cost ?? 0; $sparepartTotal = $production->total_sparepart_cost ?? 0; $directTotal = $materialTotal + $sparepartTotal; $laborTotal = $production->labor_cost ?? 0; $actualTotal = $directTotal + $laborTotal; @endphp @endforeach
ID Produk Pesanan Teknisi Total Biaya Selesai Aksi
#{{ $production->id }}
{{ Str::limit($production->product->product_title ?? 'N/A', 35) }}
{{ $orderQty }} unit
#{{ $production->order->id ?? 'N/A' }}
{{ Str::limit($production->order->customer_name ?? 'N/A', 20) }}
{{ Str::limit($production->teknisi->name ?? 'N/A', 20) }}
Rp {{ number_format($actualTotal, 0, ',', '.') }}
@if($laborTotal > 0)
Upah: Rp {{ number_format($laborTotal, 0, ',', '.') }}
@endif
{{ $production->completed_at?->format('d M Y') ?? '-' }}
@if($production->completed_at)
{{ $production->completed_at->diffForHumans() }}
@endif
@else

Tidak Ada Penyelesaian Menunggu

Semua penyelesaian produksi sudah diproses

@endif
@endsection