wip
This commit is contained in:
1 parent
2a1dcdf85f
commit
bde23bec5b
3 files changed
+149
-2
No files matched your search
@@ -5,6 +5,7 @@
|
||||
use App\Models\Branch\Branch;
|
||||
use App\Models\Order\Loan\LoanOrder as LoanOrderModel;
|
||||
use App\Models\System\Location\Province;
|
||||
use App\Modules\DateHelper\Repositories\DateHelperRepository;
|
||||
use App\Nova\Filters\RegionFilter;
|
||||
use App\Nova\Filters\StatusFilter;
|
||||
use App\Nova\Resource;
|
||||
@@ -176,6 +177,38 @@ public function fields(NovaRequest $request): array
|
||||
->options(LoanTypeRepo::values())
|
||||
->rules('required')
|
||||
->sortable(),
|
||||
|
||||
Number::make(__('Amount of loan'), 'loan_amount')
|
||||
->fullWidth()
|
||||
->rules('required', 'integer', 'max:40000'),
|
||||
]),
|
||||
|
||||
new Panel(__('Card'), [
|
||||
NovaInputmask::make(__('Card number'), 'card_number')
|
||||
->mask('9999 9999 9999 9999')
|
||||
->storeRawValue()
|
||||
->size('w-1/2')
|
||||
->rules('required', 'integer'),
|
||||
|
||||
Text::make(__('Card name'), 'card_name')
|
||||
->size('w-1/2')
|
||||
->rules('required', 'string', 'max:255'),
|
||||
|
||||
Select::make(__('Expiration Month'), 'card_month')
|
||||
->displayUsingLabels()
|
||||
->searchable()
|
||||
->options(DateHelperRepository::monthsAsNumber())
|
||||
->size('w-1/2')
|
||||
->rules('required')
|
||||
->sortable(),
|
||||
|
||||
Select::make(__('Expiration year'), 'card_month')
|
||||
->displayUsingLabels()
|
||||
->searchable()
|
||||
->options(DateHelperRepository::yearsUntil())
|
||||
->size('w-1/2')
|
||||
->rules('required')
|
||||
->sortable(),
|
||||
]),
|
||||
|
||||
new Panel(__('Location'), [
|
||||
@@ -359,6 +392,86 @@ public function fields(NovaRequest $request): array
|
||||
->creationRules('required')
|
||||
->updateRules('nullable'),
|
||||
]),
|
||||
|
||||
new Panel(__('1. Guarantor'), [
|
||||
Text::make(__('Guarantor name'), 'guarantor_name')
|
||||
->fullWidth()
|
||||
->size('w-1/3'),
|
||||
|
||||
Text::make(__('Guarantor Surname'), 'guarantor_surname')
|
||||
->fullWidth()
|
||||
->size('w-1/3'),
|
||||
|
||||
Text::make(__('Guarantor Patronic name'), 'guarantor_patronic_name')
|
||||
->fullWidth()
|
||||
->size('w-1/3'),
|
||||
|
||||
NovaInputmask::make(__('Card number'), 'card_number')
|
||||
->mask('9999 9999 9999 9999')
|
||||
->storeRawValue()
|
||||
->size('w-1/2')
|
||||
->rules('required', 'integer'),
|
||||
|
||||
Text::make(__('Card name'), 'card_name')
|
||||
->size('w-1/2')
|
||||
->rules('required', 'string', 'max:255'),
|
||||
|
||||
Select::make(__('Expiration Month'), 'card_month')
|
||||
->displayUsingLabels()
|
||||
->searchable()
|
||||
->options(DateHelperRepository::monthsAsNumber())
|
||||
->size('w-1/2')
|
||||
->rules('required')
|
||||
->sortable(),
|
||||
|
||||
Select::make(__('Expiration year'), 'card_month')
|
||||
->displayUsingLabels()
|
||||
->searchable()
|
||||
->options(DateHelperRepository::yearsUntil())
|
||||
->size('w-1/2')
|
||||
->rules('required')
|
||||
->sortable(),
|
||||
]),
|
||||
|
||||
new Panel(__('2. Guarantor'), [
|
||||
Text::make(__('Guarantor name'), 'guarantor_name')
|
||||
->fullWidth()
|
||||
->size('w-1/3'),
|
||||
|
||||
Text::make(__('Guarantor Surname'), 'guarantor_surname')
|
||||
->fullWidth()
|
||||
->size('w-1/3'),
|
||||
|
||||
Text::make(__('Guarantor Patronic name'), 'guarantor_patronic_name')
|
||||
->fullWidth()
|
||||
->size('w-1/3'),
|
||||
|
||||
NovaInputmask::make(__('Card number'), 'card_number')
|
||||
->mask('9999 9999 9999 9999')
|
||||
->storeRawValue()
|
||||
->size('w-1/2')
|
||||
->rules('required', 'integer'),
|
||||
|
||||
Text::make(__('Card name'), 'card_name')
|
||||
->size('w-1/2')
|
||||
->rules('required', 'string', 'max:255'),
|
||||
|
||||
Select::make(__('Expiration Month'), 'card_month')
|
||||
->displayUsingLabels()
|
||||
->searchable()
|
||||
->options(DateHelperRepository::monthsAsNumber())
|
||||
->size('w-1/2')
|
||||
->rules('required')
|
||||
->sortable(),
|
||||
|
||||
Select::make(__('Expiration year'), 'card_month')
|
||||
->displayUsingLabels()
|
||||
->searchable()
|
||||
->options(DateHelperRepository::yearsUntil())
|
||||
->size('w-1/2')
|
||||
->rules('required')
|
||||
->sortable(),
|
||||
]),
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user