From 4c5320435ea50a510aaa18ef78b831abd6872fff Mon Sep 17 00:00:00 2001 From: Al Mooradi Dev Date: Fri, 14 Jul 2023 10:28:37 +0300 Subject: [PATCH] [Order] Allow admin to view order details (frontend) --- src/Filament/Resources/Order/OrderResource.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Filament/Resources/Order/OrderResource.php b/src/Filament/Resources/Order/OrderResource.php index 4bc8d7f..c311e70 100644 --- a/src/Filament/Resources/Order/OrderResource.php +++ b/src/Filament/Resources/Order/OrderResource.php @@ -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(), ])