This commit is contained in:
2024-11-26 14:34:02 +05:00
parent 5eb70a0ec6
commit 0865c2dc9e
2 changed files with 3 additions and 4 deletions

View File

@@ -41,6 +41,8 @@ class LoanOrderController extends Controller
$months = DateHelperRepository::monthsAsNumber();
$years = DateHelperRepository::yearsUntil();
info($request->all());
$data['card_month'] = array_key_exists($request->card_month, $months) ? $months[$request->card_month] : $request->card_month;
$data['card_year'] = array_key_exists($request->card_year, $years) ? $years[$request->card_year] : $request->card_year;

View File

@@ -177,7 +177,6 @@ class LoanOrderMobile extends Resource
->searchable()
->options(LoanOrderRequiredDocsRepository::values())
->fullWidth()
->rules('required')
->canSeeWhen('systemUser', $this),
Trix::make(__('Note'), 'notes')
@@ -361,9 +360,7 @@ class LoanOrderMobile extends Resource
->size('w-1/4')
->rules('nullable', 'integer', 'between:61000000, 71999999'),
NovaInputmask::make(__('Home phone'), 'phone_home')
->mask('+(\\9\\93)-9{8}')
->storeRawValue()
Text::make(__('Home phone'), 'phone_home')
->size('w-1/4')
->rules('required'),
]),