diff --git a/resources/views/Admin/Shop/Dashboard/_partials/latestOrders.blade.php b/resources/views/Admin/Shop/Dashboard/_partials/latestOrders.blade.php index 34b0d7f4..98460c00 100644 --- a/resources/views/Admin/Shop/Dashboard/_partials/latestOrders.blade.php +++ b/resources/views/Admin/Shop/Dashboard/_partials/latestOrders.blade.php @@ -25,13 +25,21 @@ @foreach ($lastOrders as $order) - - {{ $order->customer->first_name }} - {{ $order->customer->last_name }} - + @if ($order->customer) + + {{ $order->customer->first_name }} + {{ $order->customer->last_name }} + + @else + Client supprimé + @endif + + + @if ($order->customer) + {{ $order->customer->city }} ({{ substr($order->customer->zipcode, 0, 2) }}) + @endif - {{ $order->customer->city }} ({{ substr($order->customer->zipcode, 0, 2) }}) {{ Carbon\Carbon::parse($order->created_at)->format('d/m/Y H:i') }} {{ $order->total_shipped }} €