56 lines
1.7 KiB
PHP
56 lines
1.7 KiB
PHP
<?php
|
|
|
|
namespace App\Filament\Admin\Resources\CareerApplications;
|
|
|
|
use App\Filament\Admin\Resources\CareerApplications\Pages\CreateCareerApplication;
|
|
use App\Filament\Admin\Resources\CareerApplications\Pages\EditCareerApplication;
|
|
use App\Filament\Admin\Resources\CareerApplications\Pages\ListCareerApplications;
|
|
use App\Filament\Admin\Resources\CareerApplications\Schemas\CareerApplicationForm;
|
|
use App\Filament\Admin\Resources\CareerApplications\Tables\CareerApplicationsTable;
|
|
use App\Models\CareerApplication;
|
|
use BackedEnum;
|
|
use Filament\Resources\Resource;
|
|
use Filament\Schemas\Schema;
|
|
use Filament\Tables\Table;
|
|
|
|
class CareerApplicationResource extends Resource
|
|
{
|
|
protected static ?string $model = CareerApplication::class;
|
|
|
|
protected static BackedEnum|string|null $navigationIcon = 'heroicon-o-user-group';
|
|
|
|
public static function getNavigationLabel(): string
|
|
{
|
|
return __('career.navigation_label');
|
|
}
|
|
|
|
public static function getModelLabel(): string
|
|
{
|
|
return __('career.model_label');
|
|
}
|
|
|
|
public static function getPluralModelLabel(): string
|
|
{
|
|
return __('career.plural_model_label');
|
|
}
|
|
|
|
public static function form(Schema $schema): Schema
|
|
{
|
|
return CareerApplicationForm::configure($schema);
|
|
}
|
|
|
|
public static function table(Table $table): Table
|
|
{
|
|
return CareerApplicationsTable::configure($table);
|
|
}
|
|
|
|
public static function getPages(): array
|
|
{
|
|
return [
|
|
'index' => ListCareerApplications::route('/'),
|
|
'create' => CreateCareerApplication::route('/create'),
|
|
'edit' => EditCareerApplication::route('/{record}/edit'),
|
|
];
|
|
}
|
|
}
|