@extends('layouts.app') @section('title', $roleDashboard['title']) @section('content')
Welcome back, {{ $user->name }} | {{ now()->format('l, F j, Y') }}
{{ $card['label'] }}
| Order | Customer | Status | Amount |
|---|---|---|---|
| #{{ $order->order_number }} | {{ $order->customer_name ?? 'N/A' }} | @php $statusColors = [ 'order_received' => 'badge-warning', 'confirmed_with_customer' => 'badge-info', 'prepared_in_warehouse' => 'badge-primary', 'approved_for_shipping' => 'badge-success', 'shipped' => 'badge-info', 'delivered' => 'badge-success', 'cancelled' => 'badge-danger', ]; @endphp {{ $order->order_status_label }} | {{ number_format($order->total_amount, 2) }} SAR |
| No recent orders | |||
{{ $order->customer_name }}
No orders pending confirmation
{{ $roleDashboard['recent_calls'] ?? 0 }}
Calls Made Today
{{ $roleDashboard['cards'][1]['value'] ?? 0 }}
Confirmations Today
{{ $order->customer_name }} - {{ $order->items->sum('quantity') }} items
No orders pending preparation
{{ $item->product->name_en ?? 'Unknown' }}
{{ $item->name_en }} - Size: {{ $item->size ?? 'N/A' }}
No low stock items
{{ $order->customer_name }} | Prepared by: {{ $order->preparedByUser->name ?? 'N/A' }}
{{ $order->items->sum('quantity') }} items | {{ number_format($order->total_amount, 2) }} SAR
No orders pending shipping approval