@extends('layouts.app') @section('content')

🔨 Produksi - Kanban Board

Drag & drop untuk update status (coming soon)

@php $labels = \App\Models\ProductionOrder::getAllStatusLabels(); $columnConfigs = [ 'pending' => ['title' => '⏳ ' . $labels['pending'], 'bg' => 'bg-gray-100', 'border' => 'border-gray-300'], 'queued' => ['title' => '📋 ' . $labels['queued'], 'bg' => 'bg-yellow-100', 'border' => 'border-yellow-300'], 'in_progress' => ['title' => '🔧 ' . $labels['in_progress'], 'bg' => 'bg-orange-100', 'border' => 'border-orange-300'], 'completed' => ['title' => '✅ ' . $labels['completed'], 'bg' => 'bg-green-100', 'border' => 'border-green-300'], 'ready_for_pickup' => ['title' => '📦 ' . $labels['ready_for_pickup'], 'bg' => 'bg-blue-100', 'border' => 'border-blue-300'], ]; @endphp @foreach($columnConfigs as $status => $config)

{{ $config['title'] }}

{{ $columns[$status]->count() }}
@forelse($columns[$status] as $production)
{{ $production->order_code }} @if($production->priority > 5) 🔥 Urgent @endif

{{ $production->product_name }}

@if($production->transaction && $production->transaction->customer_name)

{{ $production->transaction->customer_name }}

@endif @if($production->formatted_size)

{{ $production->formatted_size }}

@endif @php $quickNote = trim((string) ($production->customer_notes ?? $production->notes ?? ($production->transaction->note ?? ''))); @endphp @if($quickNote !== '')

Catatan Order

{{ \Illuminate\Support\Str::limit($quickNote, 70) }}

@endif
@if($production->assignedUser)
{{ substr($production->assignedUser->name, 0, 1) }}
{{ Str::limit($production->assignedUser->name, 10) }}
@else Belum ditugaskan @endif @if($production->estimated_completion) {{ $production->estimated_completion->format('d/m') }} @endif
@if($status !== 'ready_for_pickup') @php $nextStatuses = [ 'pending' => 'queued', 'queued' => 'in_progress', 'in_progress' => 'completed', 'completed' => 'ready_for_pickup', ]; $nextStatus = $nextStatuses[$status] ?? null; @endphp @if($nextStatus) @endif @else @endif Detail
@empty

Kosong

@endforelse
@endforeach
@push('scripts') @endpush @endsection