{{-- Quick Order Actions Dropdown --}} @php $statuses = [ 'pending' => ['label' => 'معلق', 'color' => 'bg-amber-500'], 'pending_payment' => ['label' => 'في انتظار الدفع', 'color' => 'bg-amber-600'], 'processing' => ['label' => 'قيد المعالجة (مدفوع)', 'color' => 'bg-blue-600'], 'completed' => ['label' => 'مكتمل', 'color' => 'bg-green-600'], 'canceled' => ['label' => 'ملغي', 'color' => 'bg-red-600'], ]; $currentStatus = $order->status; @endphp @foreach($statuses as $status => $info) @if($status !== $currentStatus)
@csrf
@else
{{ $info['label'] }} (الحالية)
@endif @endforeach @if($order->canInvoice())
@csrf
@endif @if($order->canShip())
@csrf
@endif {{-- Print Invoice --}} @if($order->invoices->count() > 0)
@foreach($order->invoices as $invoice) طباعة الفاتورة #{{ $invoice->id }} @endforeach
@endif