<?php

namespace App\Filament\Resources\PhotoboothSettings;

use App\Filament\Clusters\RareAdmin\RareAdminCluster;
use App\Filament\Resources\PhotoboothSettings\Pages\EditPhotoboothSetting;
use App\Filament\Resources\PhotoboothSettings\Pages\ListPhotoboothSettings;
use App\Filament\Resources\PhotoboothSettings\Schemas\PhotoboothSettingForm;
use App\Filament\Resources\PhotoboothSettings\Schemas\PhotoboothSettingInfolist;
use App\Filament\Resources\PhotoboothSettings\Tables\PhotoboothSettingsTable;
use App\Models\PhotoboothSetting;
use BackedEnum;
use Filament\Resources\Resource;
use Filament\Schemas\Schema;
use Filament\Support\Icons\Heroicon;
use Filament\Tables\Table;
use Illuminate\Database\Eloquent\Model;
use UnitEnum;

class PhotoboothSettingResource extends Resource
{
    protected static ?string $model = PhotoboothSetting::class;

    protected static ?string $cluster = RareAdminCluster::class;

    protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedRectangleStack;

    protected static UnitEnum|string|null $navigationGroup = null;

    protected static ?int $navigationSort = 95;

    public static function getNavigationGroup(): UnitEnum|string|null
    {
        return __('admin.nav.storage');
    }

    public static function form(Schema $schema): Schema
    {
        return PhotoboothSettingForm::configure($schema);
    }

    public static function infolist(Schema $schema): Schema
    {
        return PhotoboothSettingInfolist::configure($schema);
    }

    public static function table(Table $table): Table
    {
        return PhotoboothSettingsTable::configure($table);
    }

    public static function getRelations(): array
    {
        return [
            //
        ];
    }

    public static function getPages(): array
    {
        return [
            'index' => ListPhotoboothSettings::route('/'),
            'edit' => EditPhotoboothSetting::route('/{record}/edit'),
        ];
    }

    public static function canCreate(?Model $record = null): bool
    {
        return false;
    }

    public static function canDelete(?Model $record = null): bool
    {
        return false;
    }

    public static function canDeleteAny(): bool
    {
        return false;
    }
}
