pechtelt
pechtelt
FFilament
Created by pechtelt on 1/10/2024 in #❓┊help
Is it possible to add paramaters to an import action?
No description
2 replies
FFilament
Created by pechtelt on 10/14/2023 in #❓┊help
Sortable issue
No description
2 replies
FFilament
Created by pechtelt on 9/5/2023 in #❓┊help
Best practices data dashboard?
I want to create an dashboard were i can display different data for example amount of orders with an from, until date and some default filters like this week, last week. Anyone some tips for start building this? Using a custom view or just do it with Filament standards? Thanks in advance!
3 replies
FFilament
Created by pechtelt on 8/17/2023 in #❓┊help
Multiple Filament forms submit at once Livewire
I'm building an booking systeem and using Filament Form in Livewire, for example someone has 3 bookings he needs to register some data to each booking. So i have created an addParticipant Livewire Component and call that in participants.blade.php
<div class="grid gap-4">
@foreach($bookings as $booking)
@livewire('add-participant', ['booking' => $booking])
@endforeach
</div>
<div class="grid gap-4">
@foreach($bookings as $booking)
@livewire('add-participant', ['booking' => $booking])
@endforeach
</div>
Right now it will show three diffrent form, thats good but when i click next page i want that from te form input there will be created 3 participants and attached to the booking but right now i need to save every form individually. AddParticipant.php form()
public function form(Form $form): Form
{
return $form
->schema([
Fieldset::make('')
->schema([
Placeholder::make('participant')
->label('Deelnemer #'),
Placeholder::make('Course name')
->label($this->booking->course->name),
Placeholder::make('date')
->label('van x tot y'),
TextInput::make('firstname'),
TextInput::make('lastname'),
Select::make('gender'),
DatePicker::make('birthdate'),
Select::make('language'),
TextInput::make('phone'),
TextInput::make('email'),
])
])
->statePath('data')
->model(Student::class);
}
public function form(Form $form): Form
{
return $form
->schema([
Fieldset::make('')
->schema([
Placeholder::make('participant')
->label('Deelnemer #'),
Placeholder::make('Course name')
->label($this->booking->course->name),
Placeholder::make('date')
->label('van x tot y'),
TextInput::make('firstname'),
TextInput::make('lastname'),
Select::make('gender'),
DatePicker::make('birthdate'),
Select::make('language'),
TextInput::make('phone'),
TextInput::make('email'),
])
])
->statePath('data')
->model(Student::class);
}
Right now i can click the save button on every form and it will work but that is not what i want, because the user has to press 3 times save and that is a bit to much clicking! 🙂
6 replies
FFilament
Created by pechtelt on 8/2/2023 in #❓┊help
Class "Filament\PanelProvider" not found
I have set my: "minimum-stability": "dev", and ran this composer require filament/upgrade:"^3.0-stable" -W --dev vendor/bin/filament-v3 and when i will do composer update i get the error Class "Filament\PanelProvider" not found How can i fix this?
54 replies
FFilament
Created by pechtelt on 5/26/2023 in #❓┊help
Filters in Popover and AboveContent
Is it possible to add filter to the popover and to above content? I saw you can set getTableFiltersLayout() on the list page, or add in the Resource page layout: on filters but is it possible to have some filters Above the contect and some filters in the Popover?
3 replies