label(__('Card transactions')) ->icon('heroicon-o-arrows-right-left') ->requiresConfirmation() ->modalIcon('heroicon-m-arrows-right-left') ->schema([ DatePicker::make('start_date') ->label(__('Start date')) ->native(false) ->required() ->beforeOrEqual('today'), DatePicker::make('end_date') ->label(__('End date')) ->native(false) ->required() ->beforeOrEqual('today'), ]) ->action( fn (array $data, Card $record, Component $livewire) => CardTransactionRepository::make()->downloadCardTransaction($data, $record, $livewire) ); } }