From 4574f2b54e8b1a218849effdf71f63709148b66f Mon Sep 17 00:00:00 2001 From: raccoon254 Date: Sun, 16 Jun 2024 14:25:44 +0300 Subject: [PATCH] Dashboard no order page condition add --- resources/views/dashboard.blade.php | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/resources/views/dashboard.blade.php b/resources/views/dashboard.blade.php index 56b11dc..d1e2122 100644 --- a/resources/views/dashboard.blade.php +++ b/resources/views/dashboard.blade.php @@ -61,7 +61,25 @@ class="text-white border border-white p-2 px-4 rounded-lg hover:text-white">View
-
+
+ + @if($orders->isEmpty()) +
+
+ Orders will appear here + +
+
+ + You haven't placed any orders yet. + + + Place an order + +
+
+ @else
Previous Orders @@ -103,6 +121,8 @@ class="w-1 h-10 rounded-lg {{ $order->getStatusClass() }} mx-2 ">
@endforeach
+ + @endif