Skip to content

Commit

Permalink
[Order] Allow admin to view order details (frontend)
Browse files Browse the repository at this point in the history
  • Loading branch information
almooradi-dev committed Jul 14, 2023
1 parent b2b05ad commit 4c53204
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Filament/Resources/Order/OrderResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,11 @@ public static function table(Table $table): Table
//
])
->actions([
Tables\Actions\Action::make('show')
->url(fn (Order $record): string => route('orders.show', $record)) // TODO: Change the way admin view the order's products and add permissions
->icon('heroicon-o-eye')
->color('success')
->openUrlInNewTab(),
Tables\Actions\EditAction::make(),
Tables\Actions\DeleteAction::make(),
])
Expand Down

0 comments on commit 4c53204

Please sign in to comment.