From c212812b23c95d6817ad9241cf745d1ee9a6cde8 Mon Sep 17 00:00:00 2001 From: raccoon254 Date: Sat, 15 Jun 2024 18:33:45 +0300 Subject: [PATCH] Redirect to coming soon referrals --- resources/views/dashboard.blade.php | 1 + routes/web.php | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/resources/views/dashboard.blade.php b/resources/views/dashboard.blade.php index 58cd0de..56b11dc 100644 --- a/resources/views/dashboard.blade.php +++ b/resources/views/dashboard.blade.php @@ -69,6 +69,7 @@ class="text-white border border-white p-2 px-4 rounded-lg hover:text-white">View
+ @php $groupedOrders = $orders->groupBy(function($order) { return $order->created_at->format('dS M, Y'); diff --git a/routes/web.php b/routes/web.php index 9e0ac5b..3dbfa3f 100644 --- a/routes/web.php +++ b/routes/web.php @@ -29,7 +29,11 @@ Route::get('/dashboard', Dashboard::class)->name('dashboard'); Route::get('/messages', Messages::class)->name('messages'); Route::get('/orders', OrderShow::class)->name('orders.index'); - Route::get('/referrals', Referrals::class)->name('referrals'); + // TODO: Fix the referral function system + //Route::get('/referrals', Referrals::class)->name('referrals'); + + //Redirect referrals to coming soon page + Route::view('/referrals', 'static.coming-soon')->name('referrals'); Route::get('/orders/create', OrderCreate::class)->name('orders.create'); Route::get('/orders/pay/{orderId}', OrderPayment::class)->name('orders.pay');