ActionGroup::make([
Action::make('payment_history')
->action(fn (Payment $record) => $record->advance())
->modalContent(fn (Payment $record): View => view(
'livewire.payments.modals.history',
['payment' => $record],
))
])
ActionGroup::make([
Action::make('payment_history')
->action(fn (Payment $record) => $record->advance())
->modalContent(fn (Payment $record): View => view(
'livewire.payments.modals.history',
['payment' => $record],
))
])