PhyrePanel-mirror/web/app/Filament/Resources/BackupResource.php
2024-04-22 14:14:05 +03:00

65 lines
1.5 KiB
PHP

<?php
namespace App\Filament\Resources;
use App\Filament\Resources\BackupResource\Pages;
use App\Models\Backup;
use Filament\Forms\Form;
use Filament\Resources\Resource;
use Filament\Tables;
use Filament\Tables\Table;
class BackupResource extends Resource
{
protected static ?string $model = Backup::class;
protected static ?string $navigationIcon = 'heroicon-o-inbox-stack';
protected static ?string $navigationGroup = 'Server Management';
protected static ?int $navigationSort = 97;
public static function form(Form $form): Form
{
return $form
->schema([
//
]);
}
public static function table(Table $table): Table
{
return $table
->columns([
//
])
->filters([
//
])
->actions([
Tables\Actions\EditAction::make(),
])
->defaultSort('id', 'desc')
->bulkActions([
Tables\Actions\BulkActionGroup::make([
Tables\Actions\DeleteBulkAction::make(),
]),
]);
}
public static function getRelations(): array
{
return [
//
];
}
public static function getPages(): array
{
return [
'index' => Pages\ListBackups::route('/'),
'create' => Pages\CreateBackup::route('/create'),
'edit' => Pages\EditBackup::route('/{record}/edit'),
];
}
}