laravel11-filament-worksite

Laravel 11 and Filament example: project to manage worksite, houses, and selling

Stars
0
Committers
2

protected static ?string $model = Channel::class; protected static ?string $navigationGroup = 'Marketing'; protected static ?string $navigationIcon = 'heroicon-o-globe-alt'; protected static ?string $navigationLabel = 'Canali'; protected static ?int $navigationSort = 5;

Forms\Components\Select::make('worksite_id') ->label('Cantiere') ->relationship('worksite', 'name') ->required(),

Forms\Components\TextInput::make('code') ->label('Codice') ->required() ->maxLength(15),

Forms\Components\Select::make('type') ->label('Tipologia') ->options([ 'appartamento' => 'Appartamento', 'villa' => 'Villa', ]),

Forms\Components\FileUpload::make('attachment') ->image() ->preserveFilenames() ->imageResizeMode('cover') ->imageCropAspectRatio('16:9') ->imageResizeTargetWidth('300') ->imageResizeTargetHeight('150') ->imagePreviewHeight('250') ->loadingIndicatorPosition('left') ->panelAspectRatio('2:1') ->panelLayout('integrated') ->removeUploadedFileButtonPosition('right') ->uploadButtonPosition('left') ->uploadProgressIndicatorPosition('left'),

Forms\Components\RichEditor::make('followup') ->label('Follow Up') ->maxLength(255),

Tables\Columns\ImageColumn::make('attachment') ->label('Foto'),

Tables\Columns\TextColumn::make('price') ->label('Prezzo') ->searchable() ->sortable(),