This commit is contained in:
2025-11-03 11:54:07 +05:00
parent 870aba0bcf
commit 38b9908e1e
21 changed files with 150 additions and 75 deletions

View File

@@ -3,7 +3,6 @@
namespace App\Filament\Clusters\Loans\Resources\LoanOrderMobiles\Schemas;
use App\Modules\AppHelpers\Repositories\DateHelper;
use App\Modules\LoanOrder\Models\LoanOrder;
use App\Modules\LoanOrder\Models\LoanOrderRequiredDocs;
use App\Modules\LoanOrder\Repositories\LoanOrderRepository;
use App\Modules\OrderStatus\Repositories\OrderStatusRepository;
@@ -380,23 +379,23 @@ class LoanOrderMobileForm
->required()
->columnSpan(1),
]),
Tab::make(__('Guarantor'). ' 1')
Tab::make(__('Guarantor').' 1')
->columns(6)
->schema([
TextInput::make('guarantor_name')
->label(__('Guarantor').' '. __('Name'))
->label(__('Guarantor').' '.__('Name'))
->columnSpan(2)
->required()
->maxLength(255),
TextInput::make('guarantor_surname')
->label(__('Guarantor').' '. __('Surname'))
->label(__('Guarantor').' '.__('Surname'))
->columnSpan(2)
->required()
->maxLength(255),
TextInput::make('guarantor_patronic_name')
->label(__('Guarantor').' '. __('Patronic name'))
->label(__('Guarantor').' '.__('Patronic name'))
->columnSpan(2)
->maxLength(255),
@@ -419,7 +418,7 @@ class LoanOrderMobileForm
->columns(2),
TextInput::make('guarantor_note')
->label(__('Guarantor').' '. __('Salary'))
->label(__('Guarantor').' '.__('Salary'))
->columnSpan(3)
->required()
->maxLength(255),
@@ -451,7 +450,7 @@ class LoanOrderMobileForm
->columnSpan(1)
->required(),
]),
Tab::make(__('Guarantor'). ' 2')
Tab::make(__('Guarantor').' 2')
->columns(6)
->hidden(function (Get $get): bool {
$loan_amount = $get('loan_amount');
@@ -460,19 +459,19 @@ class LoanOrderMobileForm
})
->schema([
TextInput::make('guarantor_2_name')
->label(__('Guarantor').' '. __('Name'))
->label(__('Guarantor').' '.__('Name'))
->columnSpan(2)
->required()
->maxLength(255),
TextInput::make('guarantor_2_surname')
->label(__('Guarantor').' '. __('Surname'))
->label(__('Guarantor').' '.__('Surname'))
->columnSpan(2)
->required()
->maxLength(255),
TextInput::make('guarantor_2_patronic_name')
->label(__('Guarantor').' '. __('Patronic name'))
->label(__('Guarantor').' '.__('Patronic name'))
->columnSpan(2)
->maxLength(255),
@@ -495,7 +494,7 @@ class LoanOrderMobileForm
->columns(2),
TextInput::make('guarantor_2_note')
->label(__('Guarantor').' '. __('Salary'))
->label(__('Guarantor').' '.__('Salary'))
->columnSpan(3)
->required()
->maxLength(255),