Mike.
Mike.
FFilament
Created by Mike. on 3/12/2025 in #❓┊help
Hide Create an action in the form of a filament
no,this is assessor on the model,and this is for sum all total_days if user_id same
30 replies
FFilament
Created by Mike. on 3/12/2025 in #❓┊help
Hide Create an action in the form of a filament
I have succeeded, currently I am using code like this ->hidden(fn ($livewire) => (SheetLeave::where('user_id', $livewire->data['user_id'])->first()?->available_leaves ?? 0) === 0) but will this cause any problems
30 replies
FFilament
Created by Mike. on 3/12/2025 in #❓┊help
Hide Create an action in the form of a filament
sorry, I'm just learning to use filament,I don't understand what you mean, i do debug like this ->hidden(fn ($livewire) => dd($livewire->data)) and the resulting data is appropriate but the action request not show when the data is not '0'
30 replies
FFilament
Created by Mike. on 3/12/2025 in #❓┊help
Hide Create an action in the form of a filament
I know what you mean like this right ->hidden(fn ($livewire) => HasAvailableLeaves::hideIfNoAvailableLeaves($livewire->data)) I've tried it before but the result is the same, the button disappears in all conditions and when debugged the result doesn't change
30 replies
FFilament
Created by Mike. on 3/12/2025 in #❓┊help
Hide Create an action in the form of a filament
in trait still this public static function hideIfNoAvailableLeaves(): Closure { return function ($get) { $userId = $get('user_id'); if (!$userId) { return false; } $availableLeaves = SheetLeave::where('user_id', $userId)->first()?->available_leaves ?? 0; return $availableLeaves === 0; }; }
30 replies
FFilament
Created by Mike. on 3/12/2025 in #❓┊help
Hide Create an action in the form of a filament
i was implements in action protected function getFormActions(): array { return [ Action::make('create') ->label(__('Request')) ->submit('create') ->hidden(fn ($livewire) => HasAvailableLeaves::hideIfNoAvailableLeaves($livewire)) ]; } but the condition not depends on trait
30 replies
FFilament
Created by Mike. on 3/12/2025 in #❓┊help
Hide Create an action in the form of a filament
if in trait i use $get and in action i use $livewire can be conflict? because when i debug,data was correctly but the action button not work
30 replies
FFilament
Created by Mike. on 3/12/2025 in #❓┊help
Hide Create an action in the form of a filament
No description
30 replies
FFilament
Created by Mike. on 3/12/2025 in #❓┊help
Hide Create an action in the form of a filament
No description
30 replies
FFilament
Created by Mike. on 3/12/2025 in #❓┊help
Hide Create an action in the form of a filament
No description
30 replies
FFilament
Created by Mike. on 11/7/2024 in #❓┊help
make all images clickable and display in full
alright,thx bro
8 replies
FFilament
Created by Mike. on 11/7/2024 in #❓┊help
make all images clickable and display in full
yes,but i use infolist
8 replies
FFilament
Created by Mike. on 11/7/2024 in #❓┊help
make all images clickable and display in full
No description
8 replies
FFilament
Created by Mike. on 7/16/2024 in #❓┊help
Send Email
No description
10 replies
FFilament
Created by Mike. on 7/16/2024 in #❓┊help
Send Email
I don't use queue and even though I use queue I have done a sync so the queue will run automatically
10 replies
FFilament
Created by Mike. on 7/16/2024 in #❓┊help
Send Email
then what's next?
10 replies
FFilament
Created by Mike. on 7/16/2024 in #❓┊help
Send Email
Not yet
10 replies