loadTopUpUsage(); // Load topUpUsage initially } public function loadTopUpUsage() { // $this->topUpUsage = collect(json_decode(file_get_contents(storage_path('app/topup-usage-report.json')), true)); } public function render() { return view('livewire.report.top-up-usage-report', [ 'topUpUsage' => $this->topUpUsage, ]); } }