Arghyaashu
Close action modal with event
I have a table action which open a livewire component, I that livewire there is one more table action which open a modal(blade file)
I want to close the livewire component when blade modal is open or close both blade modal and livewire component when blade modal is close
I tried giving id to livewire modal and dispatch close-modal event from second table action but it didn't worked
16 replies
Modal on action
Action::make('refund')
->label(' Refund')
->requiresConfirmation()
->action(function ($record) {
if ($paymentGateway == 'Payment Terminals') {
$response = json_decode(ValorVirtualTerminal::issueRefundAPI($record->id),true);
// dd($response);
Notification::make()
->title('Refunded Successfully.')
->body($response['msg'])
->persistent()
->send();
}
I want to open a modal and show the response in the modal not in notification, I have no clue how to do this can someone help.
6 replies