Sander
Sander
FFilament
Created by Sander on 5/4/2023 in #❓┊help
Different resources on central/tenant domain using stancl/tenancy
Hello! I'm using stancl/tenancy with Filament admin and i'm trying to figure out how to have a different set of resources/pages/widgets for for the central domain and the tenant domains. Is it possible to have as structure like this: App/Filament/Central/(pages, resources, widgets) App/Filament/Tenant/(pages, resources, widgets) And load the correct path conditionally based on the current context? Any help would be much appreciated!
35 replies
FFilament
Created by Sander on 3/23/2023 in #❓┊help
Reusable schema
Hello guys! I have a lengthy builder schema that I need to use for several resources in the admin. Is there a way for me to create a reusable component that incorporates this schema, allowing me to use it multiple times?
7 replies
FFilament
Created by Sander on 3/21/2023 in #❓┊help
Ability to hide a repeater item
Hello! Is it possible to hide repeater items if a specific column is null?
TableRepeater::make('blockedDates')
->relationship()
->schema([
Forms\Components\DateTimePicker::make('start_date')
->label('van')
->disableLabel()
->default(now()->setTime(14, 0, 0))
->displayFormat('d-m-Y, H:i'),

Forms\Components\DateTimePicker::make('end_date')
->label('tot')
->disableLabel()
->default(now()->addDays(2)->setTime(11, 0, 0))
->displayFormat('d-m-Y, H:i'),
])
->label('Handmatig geblokkeerde data')
->createItemButtonLabel('Data toevoegen')
->collapsible()
->cloneable()
->minItems(0)
->columnSpan('full'),
TableRepeater::make('blockedDates')
->relationship()
->schema([
Forms\Components\DateTimePicker::make('start_date')
->label('van')
->disableLabel()
->default(now()->setTime(14, 0, 0))
->displayFormat('d-m-Y, H:i'),

Forms\Components\DateTimePicker::make('end_date')
->label('tot')
->disableLabel()
->default(now()->addDays(2)->setTime(11, 0, 0))
->displayFormat('d-m-Y, H:i'),
])
->label('Handmatig geblokkeerde data')
->createItemButtonLabel('Data toevoegen')
->collapsible()
->cloneable()
->minItems(0)
->columnSpan('full'),
i would like to hide the repeater row if
calendar_id === null
calendar_id === null
on blockedDates. Thanks in advance!
2 replies