Refactor navigation icon declarations in various resources for consistency; enhance Group model with new relationships and fillable properties; update Hotel and Pilgrim models with fillable attributes; improve table configurations across resources.

This commit is contained in:
2025-09-03 19:10:21 +05:00
parent f9f4c476ce
commit e2b47eb73f
39 changed files with 634 additions and 53 deletions

View File

@@ -0,0 +1,51 @@
<?php
namespace App\Filament\Resources\Programs\Schemas;
use Filament\Forms\Components\Repeater;
use Filament\Forms\Components\Select;
use Filament\Forms\Components\Textarea;
use Filament\Forms\Components\TextInput;
use Filament\Forms\Components\TimePicker;
use Filament\Schemas\Schema;
class ProgramForm
{
public static function configure(Schema $schema): Schema
{
return $schema
->components([
Select::make('group_id')
->relationship('group', 'name')
->label('Topar')
->required(),
Repeater::make('days')
->label('Günler')
->itemLabel(fn (array $state): ?string => ($state['day_number'] ?? '').'-nji gün')
->schema([
TextInput::make('day_number')
->numeric()
->required()
->label('Günüň belgisi'),
Repeater::make('actions')
->label('Actionlar')
->schema([
TextInput::make('title')
->label('Ady')
->required()
->maxLength(255),
Textarea::make('description')
->label('Düşündirişi')
->columnSpanFull(),
TimePicker::make('time')
->label('Wagty'),
TextInput::make('icon')
->label('Ikony')
->required()
->maxLength(255),
])
->columns(2),
])->columnSpanFull(),
]);
}
}