This commit is contained in:
2025-11-16 16:40:06 +05:00
parent 1d67616cdb
commit 2bb9ec2ae2
2 changed files with 1 additions and 2 deletions

View File

@@ -66,7 +66,6 @@ class VisaMasterPaymentOrderResource extends Resource
return [ return [
'index' => ListVisaMasterPaymentOrders::route('/'), 'index' => ListVisaMasterPaymentOrders::route('/'),
'create' => CreateVisaMasterPaymentOrder::route('/create'), 'create' => CreateVisaMasterPaymentOrder::route('/create'),
'view' => ViewVisaMasterPaymentOrder::route('/{record}'),
'edit' => EditVisaMasterPaymentOrder::route('/{record}/edit'), 'edit' => EditVisaMasterPaymentOrder::route('/{record}/edit'),
]; ];
} }

View File

@@ -100,7 +100,7 @@ class PayVisaMasterPaymentAction
]; ];
}) })
->action(function (array $data, VisaMasterPaymentOrder $record, Component $livewire): void { ->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() Notification::make()
->title(__('Payment error').'!') ->title(__('Payment error').'!')
->body(__('Payment amount, USD rate, and total amount are required. Please try again.')) ->body(__('Payment amount, USD rate, and total amount are required. Please try again.'))