Changes
This commit is contained in:
@@ -28,6 +28,7 @@ use Filament\Forms\Components\Toggle;
|
||||
use Filament\Forms\Form;
|
||||
use Filament\Resources\Resource;
|
||||
use Filament\Tables;
|
||||
use Filament\Tables\Columns\TextColumn;
|
||||
use Filament\Tables\Table;
|
||||
use Illuminate\Database\Eloquent\SoftDeletingScope;
|
||||
use Illuminate\Support\Carbon;
|
||||
@@ -445,8 +446,11 @@ class FacultyResource extends Resource
|
||||
{
|
||||
return $table
|
||||
->columns([
|
||||
Tables\Columns\TextColumn::make('title')->label('Название')
|
||||
])
|
||||
TextColumn::make('id')->label('ID')->sortable(),
|
||||
TextColumn::make('title')->label('Название')->sortable()->searchable(),
|
||||
TextColumn::make('created_at')->label('Дата создания')->sortable(),
|
||||
Tables\Columns\ToggleColumn::make('is_active')->label('Активно')->sortable(),
|
||||
])
|
||||
->filters([
|
||||
//
|
||||
])
|
||||
@@ -463,7 +467,8 @@ class FacultyResource extends Resource
|
||||
public static function getRelations(): array
|
||||
{
|
||||
return [
|
||||
WorkersRelationManager::class
|
||||
WorkersRelationManager::class,
|
||||
DepartmentsRelationManager::class,
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user