Add loan card
This commit is contained in:
@@ -254,7 +254,7 @@ class LoanOrderMobile extends Resource
|
||||
->canSeeWhen('systemUser', $this),
|
||||
]),
|
||||
|
||||
new Panel(__('Card'), [
|
||||
new Panel(sprintf('%s (%s)', __('Card'), __('Salary')), [
|
||||
Number::make(__('Card number'), 'card_number')
|
||||
->size('w-1/4')
|
||||
->rules('required', 'digits:16'),
|
||||
@@ -278,6 +278,30 @@ class LoanOrderMobile extends Resource
|
||||
->rules('required'),
|
||||
]),
|
||||
|
||||
new Panel(sprintf('%s (%s)', __('Loan Card'), __('Eger bar bolsa')), [
|
||||
Number::make(__('Card number'), 'loan_card_number')
|
||||
->size('w-1/4')
|
||||
->rules('nullable', 'digits:16'),
|
||||
|
||||
Text::make(__('Name on card'), 'loan_card_name')
|
||||
->size('w-1/4')
|
||||
->rules('nullable'),
|
||||
|
||||
Select::make(__('Card').' '.__('Expiration month'), 'loan_card_month')
|
||||
->displayUsingLabels()
|
||||
->searchable()
|
||||
->options(DateHelperRepository::monthsAsNumber())
|
||||
->size('w-1/4')
|
||||
->rules('nullable'),
|
||||
|
||||
Select::make(__('Card').' '.__('Expiration year'), 'loan_card_year')
|
||||
->displayUsingLabels()
|
||||
->searchable()
|
||||
->options(DateHelperRepository::yearsUntil())
|
||||
->size('w-1/4')
|
||||
->rules('nullable'),
|
||||
]),
|
||||
|
||||
new Panel(__('Passport'), [
|
||||
Select::make(__('Passport serie'), 'passport_serie')
|
||||
->displayUsingLabels()
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
|
||||
namespace App\Nova\Resources\Order\Loan;
|
||||
|
||||
use App\Modules\DateHelper\Repositories\DateHelperRepository;
|
||||
use App\Nova\Forms\NovaForm;
|
||||
use App\Nova\Resources\Branch\Branch;
|
||||
use App\Nova\Resources\System\Location\Province;
|
||||
|
||||
Reference in New Issue
Block a user