Action modal is not showing
I have the following code in my table:
Action::make('review')
->label('Review')
->modalContent(function (Company $company) {
return view(
'filament.resources.company-resource.pages.review-company',
compact('company')
);
})
In the blade I have the following:
<x-filament-panels::page>
<h2 class="text-xl font-bold">Review Company</h2>
<div>
<h3 class="font-bold">Company Information</h3>
<p>Name: {{ $company->name }}</p>
</div>
</x-filament-panels::page>
This will not open the modal, only when I write code that gives an error in the blade, it shows the error in the modal when I click review.
It gives the following error in the console with the code above:
Uncaught (in promise) Snapshot missing on Livewire component with id: XXXXXXXXXXX
1 Reply
Oh, found it. Looks like I wasn't supposed to use x-filament-panels::page