0, 'show_aging_table' => 0, ]; public function mount(): void { $this->options['start_date'] = now()->startOfYear()->format('Y-m-d'); $this->options['end_date'] = now()->format('Y-m-d'); } protected function getCurrentUrl(): string { return route('client.statement.raw', $this->options); } public function download() { return redirect()->route('client.statement.raw', \array_merge($this->options, ['download' => 1])); } public function render(): View { $this->url = route('client.statement.raw', $this->options); return render('components.statement'); } }