Arghyaashu
How to trigger a click event on 'next' button click in Wizard Step form.
https://filamentphp.com/docs/3.x/forms/layout/wizard#customizing-the-wizard-action-objects
This may help
6 replies
Modal on action
can give an example
Action::make('refund')
->label(' Refund')
->requiresConfirmation()
->action(function ($record) {
if ($paymentGateway == 'Payment Terminals') {
$response = json_decode(ValorVirtualTerminal::issueRefundAPI($record->id), true);
Action::make('refund') ->label(' Refund') ->modalContent(fn ($record) => view('livewire.refund-response-modal', ['record' => $record])) ->requiresConfirmation(); Notification::make() ->title('Refunded Successfully.') ->body($response['msg']) ->persistent() ->send(); } }) ->icon('heroicon-o-arrow-uturn-left') ->disabled(fn ($record) => $record->status === 'refund' ? true : false) ->extraAttributes(fn () => ['class' => 'mfm-box-shadow p-2 refund-action']), It's not opening any modal and I don't know if I am doing any thing wrong
Action::make('refund') ->label(' Refund') ->modalContent(fn ($record) => view('livewire.refund-response-modal', ['record' => $record])) ->requiresConfirmation(); Notification::make() ->title('Refunded Successfully.') ->body($response['msg']) ->persistent() ->send(); } }) ->icon('heroicon-o-arrow-uturn-left') ->disabled(fn ($record) => $record->status === 'refund' ? true : false) ->extraAttributes(fn () => ['class' => 'mfm-box-shadow p-2 refund-action']), It's not opening any modal and I don't know if I am doing any thing wrong
6 replies
Multiple Joins and filter with QueryBuilder
I am doing it like this
QueryBuilder::make()
->constraints([
SelectConstraint::make('status')
->options([
'Registered' => 'Registered',
'Checked In' => 'Checked In',
'Buyer' => 'Buyer',
]),
])
which result in this error
SELECT
count(*) AS aggregate
FROM
"contacts"
LEFT JOIN "contact_event" ON "contacts"."mfm_contact_id" = "contact_event"."contact_id"
LEFT JOIN "events" ON "contact_event"."event_id" = "events"."mfm_event_id"
LEFT JOIN "coaching_contact" ON "contacts"."id" = "coaching_contact"."contact_id"
LEFT JOIN "coachings" ON "coaching_contact"."coaching_id" = "coachings"."id"
LEFT JOIN "invoices" ON "invoices"."contact_id" = "contacts"."mfm_contact_id"
LEFT JOIN "services" ON "invoices"."service_id" = "services"."id"
WHERE
("contacts"."status" = Buyer)
AND "contacts"."deleted_at" IS NULL
here it is searching for status in contacts but status is in contact_event how can I specify the table name
18 replies