@extends('admin.master') @section('content') @php $badge = fn ($status) => match($status) { 'pending' => 'bg-warning text-dark', 'confirmed' => 'bg-info text-dark', 'production' => 'bg-primary', 'completed' => 'bg-success', 'dispatch' => 'bg-secondary', 'delivered' => 'bg-dark', default => 'bg-secondary', }; @endphp

Factory Order {{ $order->number() }}

@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif
{{ $order->number() }} {{ $order->statusLabel() }}
Back to list
@include('partials.factory-order-status-tab', [ 'order' => $order, 'badge' => $badge, 'factoryOnly' => true, 'showActions' => true, 'showTimeline' => false, ]) @include('partials.factory-order-build-info', [ 'order' => $order, 'files' => $files ?? [], 'fileRoute' => 'admin.factory.orders.file', 'showFiles' => false, ]) @include('partials.quote-schedule-dates-form', ['enquiry' => $order->enquiry]) @include('partials.factory-order-status-tab', [ 'order' => $order, 'badge' => $badge, 'factoryOnly' => true, 'showActions' => false, 'showTimeline' => true, ])
Files
@include('partials.factory-order-files', [ 'order' => $order, 'files' => $files ?? [], 'fileRoute' => 'admin.factory.orders.file', ])
@include('partials.factory-order-queries', [ 'order' => $order, 'queryViewer' => 'factory', 'queryStoreUrl' => route('admin.factory.orders.messages.store', $order->id), 'queryElementId' => null, ])
@endsection @push('scripts') @include('partials.factory-order-tabs-script', [ 'tabHashes' => ['order-details', 'files', 'factory-order-queries'], ]) @endpush