add slug column, fix bugs
This commit is contained in:
@@ -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(),
|
||||
])
|
||||
|
||||
Reference in New Issue
Block a user