sandofgods
sandofgods
FFilament
Created by sandofgods on 3/13/2024 in #❓┊help
Export on widget table with filtering not working
Hello, According to this tuto https://filamentphp.com/docs/3.x/panels/dashboard#filtering-widget-data i have filter by dates and user. I try to use the ExportAction and i get this error : https://flareapp.io/share/95J6wnL5 I dont get what can i do to get this working, any help?
2 replies
FFilament
Created by sandofgods on 3/6/2024 in #❓┊help
larazeus popover pop under table header/footer
No description
3 replies
FFilament
Created by sandofgods on 3/5/2024 in #❓┊help
Widget Table BulkAction
I have a problem when i use a bulkaction on a WidgetAction, no matter what selected, everything get selected and updated, any idea what the solution?
BulkAction::make("mark_payed")
->translateLabel()
->icon("heroicon-c-check-circle")
->iconPosition(IconPosition::Before)
->iconSize(IconSize::Small)
->color("success")
->requiresConfirmation()
->modalHeading(__("mark as payed"))
->modalDescription(__("sure to mark payed?"))
->modalSubmitActionLabel(__("Yes, mark it payed"))
->action(function(Collection $records,array $data, HasTable $livewire){

$now = Carbon::now();
foreach ($records as $record){
$record->update([
'order_product_is_com_payed' => 1,
"order_product_date_com_payed" => $now
]);
$record->save();
$livewire->getTableRecords();
}
})
->deselectRecordsAfterCompletion(),
BulkAction::make("mark_payed")
->translateLabel()
->icon("heroicon-c-check-circle")
->iconPosition(IconPosition::Before)
->iconSize(IconSize::Small)
->color("success")
->requiresConfirmation()
->modalHeading(__("mark as payed"))
->modalDescription(__("sure to mark payed?"))
->modalSubmitActionLabel(__("Yes, mark it payed"))
->action(function(Collection $records,array $data, HasTable $livewire){

$now = Carbon::now();
foreach ($records as $record){
$record->update([
'order_product_is_com_payed' => 1,
"order_product_date_com_payed" => $now
]);
$record->save();
$livewire->getTableRecords();
}
})
->deselectRecordsAfterCompletion(),
12 replies
FFilament
Created by sandofgods on 3/5/2024 in #❓┊help
Group sum summarie with query scope, not working
No description
11 replies