AmauryCid
AmauryCid
FFilament
Created by AmauryCid on 5/29/2024 in #❓┊help
Livewire Component Not Working
🙂
6 replies
FFilament
Created by AmauryCid on 5/29/2024 in #❓┊help
Livewire Component Not Working
That did it! Thank you Leandro!
6 replies
FFilament
Created by AmauryCid on 5/29/2024 in #❓┊help
Livewire Component Not Working
What I'm trying to do here is a global filter on the top navbar. I'm trying to achieve that after a selection, a session variable is setted and trigger a filament component refresh (resource, page). models already have a scope that checks this session variable to query the results.
6 replies
FFilament
Created by AmauryCid on 5/29/2024 in #❓┊help
Livewire Component Not Working
This is the blade code:
<div>
<div
class="fi-input-wrp flex rounded-lg shadow-sm ring-1 transition duration-75 bg-white dark:bg-white/5 [&amp;:not(:has(.fi-ac-action:focus))]:focus-within:ring-2 ring-gray-950/10 dark:ring-white/20 [&amp;:not(:has(.fi-ac-action:focus))]:focus-within:ring-primary-600 dark:[&amp;:not(:has(.fi-ac-action:focus))]:focus-within:ring-primary-500 fi-fo-select">
<select wire:model="selectedOption"
class="fi-select-input block w-full border-none bg-transparent py-1.5 pe-8 text-base text-gray-950 transition duration-75 focus:ring-0 disabled:text-gray-500 disabled:[-webkit-text-fill-color:theme(colors.gray.500)] dark:text-white dark:disabled:text-gray-400 dark:disabled:[-webkit-text-fill-color:theme(colors.gray.400)] sm:text-sm sm:leading-6 [&amp;_optgroup]:bg-white [&amp;_optgroup]:dark:bg-gray-900 [&amp;_option]:bg-white [&amp;_option]:dark:bg-gray-900 ps-3">
<option value="">Select Agency...</option>
@foreach ($options as $value => $label)
<option value="{{ $value }}">{{ $label }}</option>
@endforeach
</select>
</div>
</div>
<div>
<div
class="fi-input-wrp flex rounded-lg shadow-sm ring-1 transition duration-75 bg-white dark:bg-white/5 [&amp;:not(:has(.fi-ac-action:focus))]:focus-within:ring-2 ring-gray-950/10 dark:ring-white/20 [&amp;:not(:has(.fi-ac-action:focus))]:focus-within:ring-primary-600 dark:[&amp;:not(:has(.fi-ac-action:focus))]:focus-within:ring-primary-500 fi-fo-select">
<select wire:model="selectedOption"
class="fi-select-input block w-full border-none bg-transparent py-1.5 pe-8 text-base text-gray-950 transition duration-75 focus:ring-0 disabled:text-gray-500 disabled:[-webkit-text-fill-color:theme(colors.gray.500)] dark:text-white dark:disabled:text-gray-400 dark:disabled:[-webkit-text-fill-color:theme(colors.gray.400)] sm:text-sm sm:leading-6 [&amp;_optgroup]:bg-white [&amp;_optgroup]:dark:bg-gray-900 [&amp;_option]:bg-white [&amp;_option]:dark:bg-gray-900 ps-3">
<option value="">Select Agency...</option>
@foreach ($options as $value => $label)
<option value="{{ $value }}">{{ $label }}</option>
@endforeach
</select>
</div>
</div>
And this is how I included:
FilamentView::registerRenderHook(
PanelsRenderHook::USER_MENU_BEFORE,
fn (): string => Blade::render('@livewire(\'select-agency\')'),
);
FilamentView::registerRenderHook(
PanelsRenderHook::USER_MENU_BEFORE,
fn (): string => Blade::render('@livewire(\'select-agency\')'),
);
6 replies
FFilament
Created by AmauryCid on 3/8/2024 in #❓┊help
Filter Table by Querystring
Thank you for your help!
8 replies
FFilament
Created by AmauryCid on 3/8/2024 in #❓┊help
Filter Table by Querystring
To be more precise, I intent to redirect to a resource with data in the querystring to filter a table on that resource. Sorry for not being specific before.
8 replies
FFilament
Created by AmauryCid on 2/27/2024 in #❓┊help
Database Notification Data
Thank you for your help!
4 replies
FFilament
Created by Dave Mack on 2/3/2024 in #❓┊help
Exports - but without column selection options
Have you found a solution yet?
3 replies
FFilament
Created by AmauryCid on 12/7/2023 in #❓┊help
Sort RepeatableEntry
Thank you so much for your help!
4 replies
FFilament
Created by Soundmit on 11/24/2023 in #❓┊help
Combining 2 fields in one table's column
Another way:
Tables\Columns\TextColumn::make('consumers.name')
->state(function (Consumer $record): string {
return $record->first_name . ' ' . $record->last_name;
})
Tables\Columns\TextColumn::make('consumers.name')
->state(function (Consumer $record): string {
return $record->first_name . ' ' . $record->last_name;
})
29 replies
FFilament
Created by AmauryCid on 9/29/2023 in #❓┊help
Summarize Relationship aggregate
I need the sum method, you could see what I’m trying to do in my example code above.
5 replies
FFilament
Created by AmauryCid on 9/29/2023 in #❓┊help
Summarize Relationship aggregate
Sure! But I guess Query\Builder doesn't work as Eloquent\Builder, so it can access Eloquent methods
5 replies
FFilament
Created by AmauryCid on 8/29/2023 in #❓┊help
SelectFilter on NavBar
Thank you Patrick!!
4 replies
FFilament
Created by AmauryCid on 8/19/2023 in #❓┊help
EloquentQuery Type Hinting
I did the steps on the stack overflow article, but for my implementation, it didn't work
6 replies
FFilament
Created by AmauryCid on 8/19/2023 in #❓┊help
EloquentQuery Type Hinting
Thank you Povilas! The way I resolved this was calling the scope on the model's booted method. 😀
6 replies
FFilament
Created by Matthew on 5/19/2023 in #❓┊help
Dropdown access depending on role
Hello, how to disable a field in a form while another field is empty/null?
59 replies