add slug column, fix bugs

This commit is contained in:
F4ilji
2025-04-07 14:10:59 +05:00
parent b1d3921ffd
commit f0c526da92
8 changed files with 70 additions and 72 deletions
+1 -2
View File
@@ -124,8 +124,7 @@ class ScheduleResource extends Resource
->trueIcon('heroicon-o-academic-cap')
->falseIcon('heroicon-o-building-office')
->trueColor('success')
->falseColor('primary')
->formatStateUsing(fn ($state) => $state ? 'Заочная' : 'Очная'),
->falseColor('primary'),
TextColumn::make('updated_at')
->label('Обновлено')
@@ -39,12 +39,12 @@ class PagesRelationManager extends RelationManager
Tables\Actions\Action::make('associate')
->label('Прикрепить страницу')
->color('success')
->searchable()
->preload()
->button()
->form([
Forms\Components\Select::make('recordId')
->label('Страница')
->searchable()
->preload()
->options(Page::whereNull('sub_section_id')->whereNotNull('title')->pluck('title', 'id'))
->required(),
])