add f payment

This commit is contained in:
nurmuhammet committed 2024-09-30 08:22:34 +05:00
1 parent c3b3691ca5
commit e8515d95c9
10 files changed
+212 -4

No files matched your search

@@ -168,4 +168,12 @@ protected static function boot(): void
static::creating(LoanOrderRepo::creating());
}
/**
* Price for order
*/
public function priceAmount(): float
{
return 250;
}
}
@@ -61,6 +61,9 @@ public static function make($resource): array
Text::make(__('Note'), 'notes')
->fullWidth()
->canSeeWhen('systemUser', $resource),
]),
new Panel(__('Payment'), [
]),
new Panel(__('Application type'), [
Select::make(__('Application type'), 'type')
@@ -6,6 +6,7 @@
use App\Modules\VisaMasterPaymentOrder\Models\VisaMasterPaymentOrder;
use App\Modules\VisaMasterPaymentOrder\Nova\Resources\Concerns\VisaMasterPaymentOrderFieldsForDetail;
use App\Modules\VisaMasterPaymentOrder\Nova\Resources\Concerns\VisaMasterPaymentOrderFieldsForIndex;
use App\Nova\Actions\MakePaymentNovaVisaMaster;
use App\Nova\Resource;
use App\Repos\Order\Card\CardOrderRepo;
use App\Repos\Order\OrderRepo;
@@ -333,4 +334,16 @@ public function fields(NovaRequest $request): array
]),
];
}
/**
* Actions
*/
public function actions(NovaRequest $request): array
{
return [
MakePaymentNovaVisaMaster::make()
->icon('credit-card')
->sole(),
];
}
}