diff --git a/app/Filament/Clusters/VisaMasterPayments/Resources/VisaMasterPaymentOrders/VisaMasterPaymentOrderResource.php b/app/Filament/Clusters/VisaMasterPayments/Resources/VisaMasterPaymentOrders/VisaMasterPaymentOrderResource.php index 97e29b0..02d72d8 100644 --- a/app/Filament/Clusters/VisaMasterPayments/Resources/VisaMasterPaymentOrders/VisaMasterPaymentOrderResource.php +++ b/app/Filament/Clusters/VisaMasterPayments/Resources/VisaMasterPaymentOrders/VisaMasterPaymentOrderResource.php @@ -66,7 +66,6 @@ class VisaMasterPaymentOrderResource extends Resource return [ 'index' => ListVisaMasterPaymentOrders::route('/'), 'create' => CreateVisaMasterPaymentOrder::route('/create'), - 'view' => ViewVisaMasterPaymentOrder::route('/{record}'), 'edit' => EditVisaMasterPaymentOrder::route('/{record}/edit'), ]; } diff --git a/app/Modules/VisaMasterPaymentOrder/Filament/Actions/PayVisaMasterPaymentAction.php b/app/Modules/VisaMasterPaymentOrder/Filament/Actions/PayVisaMasterPaymentAction.php index 7d39284..a412933 100644 --- a/app/Modules/VisaMasterPaymentOrder/Filament/Actions/PayVisaMasterPaymentAction.php +++ b/app/Modules/VisaMasterPaymentOrder/Filament/Actions/PayVisaMasterPaymentAction.php @@ -100,7 +100,7 @@ class PayVisaMasterPaymentAction ]; }) ->action(function (array $data, VisaMasterPaymentOrder $record, Component $livewire): void { - if (! isset($data['payment_amount']) ||!isset($data['usd_rate']) || !isset($data['total_amount'])) { + if (! isset($data['payment_amount']) || empty($data['payment_amount'])) { Notification::make() ->title(__('Payment error').'!') ->body(__('Payment amount, USD rate, and total amount are required. Please try again.'))