add f payment

This commit is contained in:
2024-09-30 08:22:34 +05:00
parent c3b3691ca5
commit e8515d95c9
10 changed files with 212 additions and 4 deletions

View File

@@ -168,4 +168,12 @@ class VisaMasterPaymentOrder extends Model implements HasMedia
static::creating(LoanOrderRepo::creating());
}
/**
* Price for order
*/
public function priceAmount(): float
{
return 250;
}
}

View File

@@ -61,6 +61,9 @@ class VisaMasterPaymentOrderFieldsForDetail
Text::make(__('Note'), 'notes')
->fullWidth()
->canSeeWhen('systemUser', $resource),
]),
new Panel(__('Payment'), [
]),
new Panel(__('Application type'), [
Select::make(__('Application type'), 'type')

View File

@@ -6,6 +6,7 @@ use App\Models\Branch\Branch;
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 @@ class NovaVisaMasterPaymentOrder extends Resource
]),
];
}
/**
* Actions
*/
public function actions(NovaRequest $request): array
{
return [
MakePaymentNovaVisaMaster::make()
->icon('credit-card')
->sole(),
];
}
}