add other changes
This commit is contained in:
@@ -6,6 +6,7 @@ use App\Modules\DateHelper\Repositories\DateHelperRepository;
|
||||
use App\Nova\Resources\Branch\Branch;
|
||||
use App\Nova\Resources\System\Location\Province;
|
||||
use App\Nova\User;
|
||||
use App\Repos\Order\Loan\LoanOrderRepo;
|
||||
use App\Repos\Order\OrderRepo;
|
||||
use App\Repos\System\Settings\Legal\EducationRepo;
|
||||
use App\Repos\System\Settings\Legal\MarriageRepo;
|
||||
@@ -25,7 +26,7 @@ use Nurmuhammet\NovaInputmask\NovaInputmask;
|
||||
|
||||
class LoanOrderMobileFieldsForDetail
|
||||
{
|
||||
public static function make(): array
|
||||
public static function make($resource): array
|
||||
{
|
||||
return [
|
||||
ID::make()->hide(),
|
||||
@@ -69,23 +70,22 @@ class LoanOrderMobileFieldsForDetail
|
||||
|
||||
Select::make(__('Education'), 'education')
|
||||
->displayUsingLabels()
|
||||
->options(EducationRepo::values())
|
||||
->size('w-1/3'),
|
||||
->options(EducationRepo::values()),
|
||||
|
||||
Select::make(__('Marriage status'), 'marriage_status')
|
||||
->displayUsingLabels()
|
||||
->options(MarriageRepo::values())
|
||||
->size('w-1/3'),
|
||||
->options(MarriageRepo::values()),
|
||||
|
||||
Date::make(__('Date of birth'), 'born_at')
|
||||
->size('w-1/3')
|
||||
->toTurkmenFormat(),
|
||||
|
||||
Text::make(__('Residence (passport)'), 'passport_address')
|
||||
->size('w-1/2'),
|
||||
Text::make(__('Residence (passport)'), 'passport_address'),
|
||||
|
||||
Text::make(__('Current Residence'), 'real_address')
|
||||
->size('w-1/2'),
|
||||
Text::make(__('Current Residence'), 'real_address'),
|
||||
|
||||
Select::make(__('Karz taryhy'), 'satisfiable')
|
||||
->displayUsingLabels()
|
||||
->options(LoanOrderRepo::satisfiableValues()),
|
||||
]),
|
||||
|
||||
new Panel(__('Card'), [
|
||||
@@ -197,6 +197,9 @@ class LoanOrderMobileFieldsForDetail
|
||||
->displayUsingLabels()
|
||||
->searchable()
|
||||
->options(DateHelperRepository::yearsUntil()),
|
||||
|
||||
Text::make(__('Ortaça zähmen haky'), 'guarantor_note')
|
||||
->canSeeWhen('systemUser', $resource),
|
||||
]),
|
||||
|
||||
new Panel('2. '.__('Guarantor'), [
|
||||
@@ -216,6 +219,9 @@ class LoanOrderMobileFieldsForDetail
|
||||
->displayUsingLabels()
|
||||
->searchable()
|
||||
->options(DateHelperRepository::yearsUntil()),
|
||||
|
||||
Text::make(__('Ortaça zähmen haky'), 'guarantor_2_note')
|
||||
->canSeeWhen('systemUser', $resource),
|
||||
]),
|
||||
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user