This commit is contained in:
2025-11-03 10:44:43 +05:00
parent 6c38642af8
commit c147f47876

View File

@@ -418,6 +418,12 @@ class LoanOrderMobileForm
->label(__('Passport serie and number'))
->columns(2),
TextInput::make('guarantor_note')
->label(__('Guarantor').' '. __('Salary'))
->columnSpan(3)
->required()
->maxLength(255),
TextInput::make('guarantor_card_number')
->label(__('Card number'))
->mask('9999 9999 9999 9999')
@@ -444,22 +450,82 @@ class LoanOrderMobileForm
->native(false)
->columnSpan(1)
->required(),
TextInput::make('guarantor_note')
->label(__('Guarantor').' '. __('Salary'))
->columnSpan(2)
->required()
->maxLength(255),
]),
Tab::make(__('Guarantor'). ' 2')
->columns(4)
->columns(6)
->hidden(function (Get $get): bool {
$loan_amount = $get('loan_amount');
return ! ($loan_amount && intval($loan_amount) > 20000);
})
->schema([
TextInput::make('guarantor_2_name')
->label(__('Guarantor').' '. __('Name'))
->columnSpan(2)
->required()
->maxLength(255),
TextInput::make('guarantor_2_surname')
->label(__('Guarantor').' '. __('Surname'))
->columnSpan(2)
->required()
->maxLength(255),
TextInput::make('guarantor_2_patronic_name')
->label(__('Guarantor').' '. __('Patronic name'))
->columnSpan(2)
->maxLength(255),
FusedGroup::make([
Select::make('guarantor_2_passport_serie')
->label(__('Passport serie'))
->options(TurkmenPassportRepository::values())
->native(false)
->required()
->columnSpan(1),
TextInput::make('guarantor_2_passport_id')
->label(__('Passport number'))
->required()
->columnSpan(1)
->mask('999999'),
])
->columnSpan(3)
->label(__('Passport serie and number'))
->columns(2),
TextInput::make('guarantor_2_note')
->label(__('Guarantor').' '. __('Salary'))
->columnSpan(3)
->required()
->maxLength(255),
TextInput::make('guarantor_2_card_number')
->label(__('Card number'))
->mask('9999 9999 9999 9999')
->dehydrateStateUsing(fn ($state) => str_replace(' ', '', $state))
->columnSpan(2)
->required(),
TextInput::make('guarantor_2_card_name')
->label(__('Card name'))
->maxLength(255)
->columnSpan(2)
->required(),
Select::make('guarantor_2_card_month')
->label(__('Card month'))
->options(DateHelper::staticNumberMonths())
->native(false)
->columnSpan(1)
->required(),
Select::make('guarantor_2_card_year')
->label(__('Card year'))
->options(DateHelper::staticNumberYears())
->native(false)
->columnSpan(1)
->required(),
]),
])->columnSpan(4),
]);