added missing translations
This commit is contained in:
65
app/Filament/Resources/TenantFeedbackResource.php
Normal file
65
app/Filament/Resources/TenantFeedbackResource.php
Normal file
@@ -0,0 +1,65 @@
|
||||
<?php
|
||||
|
||||
namespace App\Filament\Resources;
|
||||
|
||||
use App\Filament\Resources\TenantFeedbackResource\Pages\ListTenantFeedback;
|
||||
use App\Filament\Resources\TenantFeedbackResource\Pages\ViewTenantFeedback;
|
||||
use App\Filament\Resources\TenantFeedbackResource\Schemas\TenantFeedbackForm;
|
||||
use App\Filament\Resources\TenantFeedbackResource\Schemas\TenantFeedbackInfolist;
|
||||
use App\Filament\Resources\TenantFeedbackResource\Tables\TenantFeedbackTable;
|
||||
use App\Models\TenantFeedback;
|
||||
use BackedEnum;
|
||||
use Filament\Resources\Resource;
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
use Filament\Tables\Table;
|
||||
use UnitEnum;
|
||||
|
||||
class TenantFeedbackResource extends Resource
|
||||
{
|
||||
protected static ?string $model = TenantFeedback::class;
|
||||
|
||||
protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedChatBubbleBottomCenterText;
|
||||
|
||||
protected static UnitEnum|string|null $navigationGroup = null;
|
||||
|
||||
protected static ?int $navigationSort = 120;
|
||||
|
||||
public static function canCreate(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public static function form(Schema $schema): Schema
|
||||
{
|
||||
return TenantFeedbackForm::configure($schema);
|
||||
}
|
||||
|
||||
public static function infolist(Schema $schema): Schema
|
||||
{
|
||||
return TenantFeedbackInfolist::configure($schema);
|
||||
}
|
||||
|
||||
public static function table(Table $table): Table
|
||||
{
|
||||
return TenantFeedbackTable::configure($table);
|
||||
}
|
||||
|
||||
public static function getNavigationGroup(): UnitEnum|string|null
|
||||
{
|
||||
return __('Feedback & Support');
|
||||
}
|
||||
|
||||
public static function getRelations(): array
|
||||
{
|
||||
return [];
|
||||
}
|
||||
|
||||
public static function getPages(): array
|
||||
{
|
||||
return [
|
||||
'index' => ListTenantFeedback::route('/'),
|
||||
'view' => ViewTenantFeedback::route('/{record}'),
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user