ok
This commit is contained in:
@@ -158,7 +158,7 @@ class CardOrder extends Resource
|
||||
->rules('required')
|
||||
->canSeeWhen('systemUser', $this),
|
||||
|
||||
Text::make(__('Note'), 'status')
|
||||
Text::make(__('Note'), 'notes')
|
||||
->fullWidth()
|
||||
->canSeeWhen('systemUser', $this),
|
||||
|
||||
|
||||
@@ -48,15 +48,15 @@ class CardOrderFieldsForIndex
|
||||
|
||||
Text::make(__('Phone'), 'phone'),
|
||||
|
||||
Badge::make(__('Status'), 'status')
|
||||
->map(OrderRepo::statusClasses())
|
||||
->addTypes([
|
||||
'primary' => 'dark:bg-gray-900 bg-gray-600 text-white',
|
||||
])
|
||||
->labels(OrderRepo::statusValues())
|
||||
->withIcons()
|
||||
->icons(OrderRepo::statusIcons())
|
||||
->sortable(),
|
||||
// Badge::make(__('Status'), 'status')
|
||||
// ->map(OrderRepo::statusClasses())
|
||||
// ->addTypes([
|
||||
// 'primary' => 'dark:bg-gray-900 bg-gray-600 text-white',
|
||||
// ])
|
||||
// ->labels(OrderRepo::statusValues())
|
||||
// ->withIcons()
|
||||
// ->icons(OrderRepo::statusIcons())
|
||||
// ->sortable(),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Nova\Resources\System\Roles;
|
||||
|
||||
use App\Models\System\Roles\Permission as PermissionModel;
|
||||
use App\Nova\Resource;
|
||||
use Laravel\Nova\Fields\ID;
|
||||
use Laravel\Nova\Fields\Text;
|
||||
@@ -12,9 +13,9 @@ class Permission extends Resource
|
||||
/**
|
||||
* The model the resource corresponds to.
|
||||
*
|
||||
* @var class-string<\App\Models\System\Roles\Permission>
|
||||
* @var class-string<PermissionModel>
|
||||
*/
|
||||
public static $model = \App\Models\System\Roles\Permission::class;
|
||||
public static $model = PermissionModel::class;
|
||||
|
||||
/**
|
||||
* The single value that should be used to represent the resource when being displayed.
|
||||
@@ -32,6 +33,22 @@ class Permission extends Resource
|
||||
'id', 'name',
|
||||
];
|
||||
|
||||
/**
|
||||
* Get the displayable label of the resource.
|
||||
*/
|
||||
public static function label(): string
|
||||
{
|
||||
return __('Permissions');
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the displayable singular label of the resource.
|
||||
*/
|
||||
public static function singularLabel(): string
|
||||
{
|
||||
return __('Permission');
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the fields displayed by the resource.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user