WIP on card fields for detail
This commit is contained in:
1 parent
20dd3a4e57
commit
7015610620
2 files changed
+12
-3
No files matched your search
@@ -11,6 +11,7 @@
|
||||
use Laravel\Nova\Fields\Badge;
|
||||
use Laravel\Nova\Fields\BelongsTo;
|
||||
use Laravel\Nova\Fields\Date;
|
||||
use Laravel\Nova\Fields\File;
|
||||
use Laravel\Nova\Fields\ID;
|
||||
use Laravel\Nova\Fields\Image;
|
||||
use Laravel\Nova\Fields\Number;
|
||||
@@ -21,8 +22,11 @@
|
||||
|
||||
class CardRequisiteFieldsForDetail
|
||||
{
|
||||
|
||||
public static function make(): array
|
||||
/**
|
||||
* Fields for index
|
||||
* @param $resource
|
||||
*/
|
||||
public static function make($resource): array
|
||||
{
|
||||
return [
|
||||
ID::make()->hide(),
|
||||
@@ -88,6 +92,11 @@ public static function make(): array
|
||||
Image::make(__('Passport (page 8-9)'), 'passport_three'),
|
||||
Image::make(__('Passport (page 32)'), 'passport_four'),
|
||||
]),
|
||||
|
||||
new Panel(__('Ready files'), [
|
||||
File::make(__('Card requisite'), 'ready_files')
|
||||
->canSeeWhen('systemUser', $resource),
|
||||
])
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user