->actions([
Tables\Actions\EditAction::make(),
Tables\Actions\ViewAction::make(),
Tables\Actions\DeleteAction::make(),
// Custom Action for the Payment Modal
Action::make('openPaymentModal')
->label('Make Payment')
->icon('heroicon-o-banknotes')
->modalHeading('Make Payment')
->modalWidth('lg')
->modalContent(fn (Order $record) => view('livewire.table-order-component', ['record' => $record]))
->action(fn (Order $record) => null),
])
->actions([
Tables\Actions\EditAction::make(),
Tables\Actions\ViewAction::make(),
Tables\Actions\DeleteAction::make(),
// Custom Action for the Payment Modal
Action::make('openPaymentModal')
->label('Make Payment')
->icon('heroicon-o-banknotes')
->modalHeading('Make Payment')
->modalWidth('lg')
->modalContent(fn (Order $record) => view('livewire.table-order-component', ['record' => $record]))
->action(fn (Order $record) => null),
])