@extends('layouts.app') @section('title', 'My Custom Orders') @section('styles') @endsection @section('content')
@if (session('success'))
{{ session('success') }}
@endif @if ($customOrders->isEmpty())
📋

No Custom Orders Yet

You haven't created any custom orders yet. Start by designing your unique print today!

Create Your First Order
@else
@foreach ($customOrders as $order)
Order #{{ $order->order_number }}
{{ $order->created_at->format('d M Y') }}
{{ str_replace('_', ' ', ucfirst($order->status)) }}
@php $statuses = ['submitted', 'approved', 'in_production', 'proof_ready', 'completed']; $currentIndex = array_search($order->status, $statuses); @endphp @foreach ($statuses as $index => $status)
@endforeach
Type
{{ ucfirst($order->type) }}
Status
{{ str_replace('_', ' ', ucfirst($order->status)) }}
@if ($order->specifications)
Quantity
{{ $order->specifications->quantity }}
Stock
{{ $order->specifications->printStock ? $order->specifications->printStock->name : 'N/A' }}
@endif
@if ($order->total_cost)
Total Cost
R{{ number_format($order->total_cost, 2) }}
@endif
{{ $order->deposit_status === 'paid' ? '✓' : '○' }} Deposit
→
{{ $order->status === 'approved' ? '✓' : '○' }} Approved
→
{{ in_array($order->status, ['in_production', 'proof_ready', 'completed']) ? '✓' : '○' }} Production
@endforeach
@endif
@endsection