wip
This commit is contained in:
@@ -6,12 +6,9 @@ use App\Filament\Clusters\Loans\LoansCluster;
|
||||
use App\Filament\Clusters\Loans\Resources\LoanOrderMobiles\Pages\CreateLoanOrderMobile;
|
||||
use App\Filament\Clusters\Loans\Resources\LoanOrderMobiles\Pages\EditLoanOrderMobile;
|
||||
use App\Filament\Clusters\Loans\Resources\LoanOrderMobiles\Pages\ListLoanOrderMobiles;
|
||||
use App\Filament\Clusters\Loans\Resources\LoanOrderMobiles\Pages\ViewLoanOrderMobile;
|
||||
use App\Filament\Clusters\Loans\Resources\LoanOrderMobiles\Schemas\LoanOrderMobileForm;
|
||||
use App\Filament\Clusters\Loans\Resources\LoanOrderMobiles\Schemas\LoanOrderMobileInfolist;
|
||||
use App\Filament\Clusters\Loans\Resources\LoanOrderMobiles\Tables\LoanOrderMobilesTable;
|
||||
use App\Modules\LoanOrder\Models\LoanOrder;
|
||||
use App\Modules\LoanOrder\Models\LoanOrderMobile;
|
||||
use BackedEnum;
|
||||
use Filament\Resources\Resource;
|
||||
use Filament\Schemas\Schema;
|
||||
@@ -41,7 +38,7 @@ class LoanOrderMobileResource extends Resource
|
||||
|
||||
public static function getModelLabel(): string
|
||||
{
|
||||
return __('module.loan-order::loan-order.loan_order'). ' (mobile app)';
|
||||
return __('module.loan-order::loan-order.loan_order').' (mobile app)';
|
||||
}
|
||||
|
||||
public static function getPluralModelLabel(): string
|
||||
|
||||
@@ -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),
|
||||
|
||||
@@ -161,7 +161,7 @@ class LoanPaidOffLetterForm
|
||||
->required()
|
||||
->maxLength(255)
|
||||
->columnSpan(6),
|
||||
|
||||
|
||||
FileUpload::make('loan_file')
|
||||
->label(__('Loan paid off letter file'))
|
||||
->columnSpan(2)
|
||||
|
||||
Reference in New Issue
Block a user