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