simedkom/app/Filament/Resources/Monitoring/ContentRecaps/Pages/EditContentRecap.php
Yoga Pangestu f9f1e60b2e feat(content recap): implement crud
- create model and migration
- relation to classification
- create resource
- create enum for support option
2025-12-09 15:36:50 +07:00

29 lines
786 B
PHP

<?php
namespace App\Filament\Resources\Monitoring\ContentRecaps\Pages;
use App\Filament\Resources\Monitoring\ContentRecaps\ContentRecapResource;
use Filament\Actions\Action;
use Filament\Resources\Pages\EditRecord;
class EditContentRecap extends EditRecord
{
protected static string $resource = ContentRecapResource::class;
protected function getHeaderActions(): array
{
return [
Action::make('back')
->label('Kembali')
->url(fn (): string => route('filament.dashboard.resources.monitoring.media-monitorings.index'))
->outlined()
->color('secondary'),
];
}
protected function getRedirectUrl(): string
{
return $this->getResource()::getUrl('index');
}
}