H.Bilbao
Widget chart between table filter date
How could I modify the start and end of the Trend of a Widget that is within a page, using the date filter selected in the table?
Right now I have like this. But I need it to be from the date selected in the filter.
4 replies
Accessing page table data in the widget
I have a page with implements HasTable and I need the widget to be related to the table data.
I have tried this option in the Panel Builder, but it doesn't work for me:
https://filamentphp.com/docs/3.x/panels/resources/widgets#accessing-page-table-data-in-the-widget
It gives me this error:
Property [$activeTab] not found on component: [app.filament.pages.report]
In the view I only have this
5 replies
FilterDatepicker with extraInputAttributes defaulta value
Hello, I have the following filter but it does not load any default values.
`php
Forms\Components\DatePicker::make('backup_month')
->extraInputAttributes(['type' => 'month'])
->afterStateUpdated(function ($livewire, string $state) {
$this->filter = Carbon::parse($state);
return $livewire->dispatch('refresh');
})
->default(now())
->live(onBlur: true)
2 replies
Best practice to know if I'm in the resource or in the relationI have a form inside a resour manager
I have a form inside a resource that I use inside a relationship manager. I need to modify unique rule with modifyRuleUsing and for that I need to use the livewire component in the relation manager to get the resource ID and a select value in the resource. How do you know if I'm inside the resource or inside the relationship manager?
Now I'm doing like this:
2 replies
Fill select and select a value with afterStateUpdated
I have tried this, but with a select it does not work correctly:
https://filamentphp.com/docs/3.x/forms/advanced#generating-a-slug-from-a-title
I attach code:
4 replies
Resource repeater save record field inside relation manager
Hello, I have a resource with a repeater. Inside the repeater I have a field that I save using mutate:
Now I want to use the resource within a relationship manager, but I don't know how to pass the ticket_id, currently it gives an error that it cannot be null.
2 replies
Secure resource custom page
How can I secure a custom page within a resource for users who do not have a specific permission? I have hidden the action button with this, but if I type the URL of the custom page enters without problems:
https://filamentphp.com/docs/3.x/actions/trigger-button#authorization
5 replies
Show only table options in the filter
I have a table where I have modified the getEloquentQuery and in the active filters I want to show only the options that I show in the table.
Example, in the customers table I can have options that I am not showing in the order resource, how can I only show the options displayed in the table?
6 replies
Create action when viewing resource record
Would it be possible to activate CreateAction in a Relation Manager when viewing a resource record?
It is activated when editing the resource, but I am interested in view form, because not all users have the option to edit the resource but they have the option to create records in the relationship manager.
4 replies