Skip to content

Commit

Permalink
Redirect to coming soon referrals
Browse files Browse the repository at this point in the history
  • Loading branch information
Raccoon254 committed Jun 15, 2024
1 parent 6ad89d0 commit c212812
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions resources/views/dashboard.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ class="text-white border border-white p-2 px-4 rounded-lg hover:text-white">View

<div class="orders">
<div class="item overflow-scroll mt-4">

@php
$groupedOrders = $orders->groupBy(function($order) {
return $order->created_at->format('dS M, Y');
Expand Down
6 changes: 5 additions & 1 deletion routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit c212812

Please sign in to comment.