Files
minicrm/app/Filament/Resources/FeedbackChannels/FeedbackChannelResource.php
phuongtc 8c6b71cb8a
Some checks failed
Tests / PHP 8.3 (push) Has been cancelled
Tests / PHP 8.4 (push) Has been cancelled
Tests / PHP 8.5 (push) Has been cancelled
feat: add i18n support for Vietnamese and English
2026-05-04 10:40:39 +00:00

63 lines
1.7 KiB
PHP

<?php
namespace App\Filament\Resources\FeedbackChannels;
use App\Filament\Resources\FeedbackChannels\Pages\CreateFeedbackChannel;
use App\Filament\Resources\FeedbackChannels\Pages\EditFeedbackChannel;
use App\Filament\Resources\FeedbackChannels\Pages\ListFeedbackChannels;
use App\Filament\Resources\FeedbackChannels\Schemas\FeedbackChannelForm;
use App\Filament\Resources\FeedbackChannels\Tables\FeedbackChannelsTable;
use App\Models\FeedbackChannel;
use BackedEnum;
use Filament\Resources\Resource;
use Filament\Schemas\Schema;
use Filament\Support\Icons\Heroicon;
use Filament\Tables\Table;
class FeedbackChannelResource extends Resource
{
protected static ?string $model = FeedbackChannel::class;
protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedInboxStack;
protected static ?string $pluralLabel = 'app.resource_channels';
protected static ?int $navigationSort = 3;
public static function getPluralLabel(): ?string
{
return __('app.resource_channels');
}
public static function getNavigationGroup(): ?string
{
return __('app.nav_management');
}
public static function form(Schema $schema): Schema
{
return FeedbackChannelForm::configure($schema);
}
public static function table(Table $table): Table
{
return FeedbackChannelsTable::configure($table);
}
public static function getRelations(): array
{
return [
//
];
}
public static function getPages(): array
{
return [
'index' => ListFeedbackChannels::route('/'),
'create' => CreateFeedbackChannel::route('/create'),
'edit' => EditFeedbackChannel::route('/{record}/edit'),
];
}
}