From 2bb9ec2ae29d08658f0f6b327277b37d9b02f60b Mon Sep 17 00:00:00 2001 From: Nurmuhammet Allanov Date: Sun, 16 Nov 2025 16:40:06 +0500 Subject: [PATCH] wip --- .../VisaMasterPaymentOrders/VisaMasterPaymentOrderResource.php | 1 - .../Filament/Actions/PayVisaMasterPaymentAction.php | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) 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.'))