Skip to content

Commit

Permalink
Order edit init
Browse files Browse the repository at this point in the history
  • Loading branch information
Raccoon254 committed Jun 18, 2024
1 parent 9300890 commit 3b7633a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 7 additions & 5 deletions resources/views/orders/view.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,13 @@ class="absolute top-0 btn btn-xs btn-circle btn-ghost bg-blue-500 right-0 mt-1 m
</div>

<div class="links mt-2 gap-4 flex items-center justify-end">
<a href="{{ route('orders.edit', $order) }}"
class="btn btn-md btn-ghost ring ring-gray-200 mt-6">
<i class="fas fa-edit"></i>
<span>Edit Order</span>
</a>
@can('manage')
<a href="{{ route('orders.edit', $order) }}"
class="btn btn-md btn-ghost ring ring-gray-200 mt-6">
<i class="fas fa-edit"></i>
<span>Edit Order</span>
</a>
@endcan
<a href="{{ route('orders.index') }}"
class="btn btn-md btn-ghost ring ring-blue-500 mt-6">
<i class="fas fa-arrow-left"></i>
Expand Down
2 changes: 0 additions & 2 deletions routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@
Route::get('/orders/{order}', [PagesController::class, 'show_order'])->name('orders.show');
Route::get('/orders/create/new', OrderCreate::class)->name('orders.create');
Route::get('/orders/pay/{orderId}', OrderPayment::class)->name('orders.pay');
// TODO: Fix the order edit function
//Route::get('/orders/{order}/edit', OrderEdit::class)->name('orders.edit');
Route::view('/orders/{order}/edit', 'static.coming-soon')->name('orders.edit');

// TODO: Fix the referral function system
Expand Down

0 comments on commit 3b7633a

Please sign in to comment.