wip
This commit is contained in:
@@ -8,6 +8,9 @@ use App\Nova\Filters\RegionFilter;
|
|||||||
use App\Nova\Filters\StatusFilter;
|
use App\Nova\Filters\StatusFilter;
|
||||||
use App\Nova\Nova;
|
use App\Nova\Nova;
|
||||||
use App\Nova\Resource;
|
use App\Nova\Resource;
|
||||||
|
use App\Nova\Resources\Order\Card\Requisite\Concerns\CardRequisiteFieldsForDetail;
|
||||||
|
use App\Nova\Resources\Order\Card\Requisite\Concerns\CardRequisiteFieldsForIndex;
|
||||||
|
use App\Repos\Order\Card\CardOrderRepo;
|
||||||
use App\Repos\Order\Card\CardTypeRepo;
|
use App\Repos\Order\Card\CardTypeRepo;
|
||||||
use App\Repos\Order\OrderRepo;
|
use App\Repos\Order\OrderRepo;
|
||||||
use App\Repos\System\Nova\NovaRepo;
|
use App\Repos\System\Nova\NovaRepo;
|
||||||
@@ -144,24 +147,24 @@ class CardPin extends Resource
|
|||||||
*/
|
*/
|
||||||
public static function afterCreate(NovaRequest $request, Model $model): void
|
public static function afterCreate(NovaRequest $request, Model $model): void
|
||||||
{
|
{
|
||||||
// CardOrderRepo::created()($model);
|
$model->update(['unique_id' => CardOrderRepo::fillUniqueId($model)]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the fields for index.
|
* Get the fields for index.
|
||||||
*/
|
*/
|
||||||
// public function fieldsForIndex(NovaRequest $request): array
|
public function fieldsForIndex(NovaRequest $request): array
|
||||||
// {
|
{
|
||||||
// return CardOrderFieldsForIndex::make($this);
|
return CardRequisiteFieldsForIndex::make($this, $request);
|
||||||
// }
|
}
|
||||||
|
|
||||||
// /**
|
/**
|
||||||
// * Get the fields for detail
|
* Get the fields for detail
|
||||||
// */
|
*/
|
||||||
// public function fieldsForDetail(): array
|
public function fieldsForDetail(): array
|
||||||
// {
|
{
|
||||||
// return CardOrderFieldsForDetail::make($this);
|
return CardRequisiteFieldsForDetail::make($this);
|
||||||
// }
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the fields displayed by the resource.
|
* Get the fields displayed by the resource.
|
||||||
@@ -201,7 +204,7 @@ class CardPin extends Resource
|
|||||||
->mask('9999 9999 9999 9999')
|
->mask('9999 9999 9999 9999')
|
||||||
->storeRawValue()
|
->storeRawValue()
|
||||||
->size('w-1/2')
|
->size('w-1/2')
|
||||||
->rules('required'),
|
->rules('required', 'int', 'digits:16'),
|
||||||
]),
|
]),
|
||||||
|
|
||||||
new Panel(__('Location'), [
|
new Panel(__('Location'), [
|
||||||
|
|||||||
@@ -92,12 +92,6 @@ class CardRequisiteFieldsForDetail
|
|||||||
Image::make(__('Passport (page 8-9)'), 'passport_three'),
|
Image::make(__('Passport (page 8-9)'), 'passport_three'),
|
||||||
Image::make(__('Passport (page 32)'), 'passport_four'),
|
Image::make(__('Passport (page 32)'), 'passport_four'),
|
||||||
]),
|
]),
|
||||||
|
|
||||||
new Panel(__('Ready files'), [
|
|
||||||
File::make(__('Card requisite'), 'ready_files')
|
|
||||||
->disk('public')
|
|
||||||
->canSeeWhen('systemUser', $resource),
|
|
||||||
])
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -29,7 +29,7 @@
|
|||||||
"Connection Closed Without Response": "Jogapsyz birikme ýapyldy",
|
"Connection Closed Without Response": "Jogapsyz birikme ýapyldy",
|
||||||
"Connection Timed Out": "Baglanyşyk wagty gutardy",
|
"Connection Timed Out": "Baglanyşyk wagty gutardy",
|
||||||
"Contact data": "Habarlaşmak üçin maglumatlar",
|
"Contact data": "Habarlaşmak üçin maglumatlar",
|
||||||
"Continue": "Dowam et",
|
"Continue": "Dowam etmek",
|
||||||
"Created": "Döredildi",
|
"Created": "Döredildi",
|
||||||
"Current Residence": "Häzirki ýaşaýyş ýeri",
|
"Current Residence": "Häzirki ýaşaýyş ýeri",
|
||||||
"Dashboard": "Dolandyryş paneli",
|
"Dashboard": "Dolandyryş paneli",
|
||||||
@@ -261,6 +261,7 @@
|
|||||||
"Help": "Kömek",
|
"Help": "Kömek",
|
||||||
"Successfully logged in": "Üstünlik bilen girdiňiz",
|
"Successfully logged in": "Üstünlik bilen girdiňiz",
|
||||||
"Please wait while we redirect you to your personal account": "Şahsy hasabyňyza geçýänçä garaşyň",
|
"Please wait while we redirect you to your personal account": "Şahsy hasabyňyza geçýänçä garaşyň",
|
||||||
|
"Press continue": "Dowam etmek dümwme basyň",
|
||||||
"Order new card": "Täze kart açmak",
|
"Order new card": "Täze kart açmak",
|
||||||
"Card requisite": "Kart rekwizit",
|
"Card requisite": "Kart rekwizit",
|
||||||
"Card requisites": "Kart rekwizitler",
|
"Card requisites": "Kart rekwizitler",
|
||||||
|
|||||||
@@ -15,7 +15,8 @@ async function login(event) {
|
|||||||
|
|
||||||
await Swal.fire({
|
await Swal.fire({
|
||||||
title: '{{ __('Successfully logged in') }}',
|
title: '{{ __('Successfully logged in') }}',
|
||||||
text: '{{ __('Please wait while we redirect you to your personal account') }}',
|
text: '{{ __('Press continue') }}',
|
||||||
|
confirmButtonText: '{{ __('Continue') }}',
|
||||||
icon: 'success',
|
icon: 'success',
|
||||||
showDenyButton: false,
|
showDenyButton: false,
|
||||||
showCancelButton: false,
|
showCancelButton: false,
|
||||||
|
|||||||
Reference in New Issue
Block a user