2022-10-27 20:21:54 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Filament\Resources\Section\IconResource\Pages;
|
|
|
|
|
|
2022-11-14 19:02:42 +08:00
|
|
|
use App\Filament\RedirectIndexTrait;
|
2022-10-27 20:21:54 +08:00
|
|
|
use App\Filament\Resources\Section\IconResource;
|
|
|
|
|
use Filament\Pages\Actions;
|
|
|
|
|
use Filament\Resources\Pages\EditRecord;
|
|
|
|
|
|
|
|
|
|
class EditIcon extends EditRecord
|
|
|
|
|
{
|
2022-11-14 19:02:42 +08:00
|
|
|
use RedirectIndexTrait;
|
|
|
|
|
|
2022-10-27 20:21:54 +08:00
|
|
|
protected static string $resource = IconResource::class;
|
|
|
|
|
|
|
|
|
|
protected static string $view = 'filament.resources.system.category-icon-resource.pages.edit-record';
|
|
|
|
|
|
|
|
|
|
protected function getActions(): array
|
|
|
|
|
{
|
|
|
|
|
return [
|
|
|
|
|
Actions\DeleteAction::make(),
|
|
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected function getViewData(): array
|
|
|
|
|
{
|
|
|
|
|
return [
|
|
|
|
|
'desc' => nexus_trans('label.icon.desc')
|
|
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
}
|