where('business_id', auth()->user()->business_id) ->whereIn('type', ['debit', 'credit']) ->latest() ->get(); $opening_balance = 0; return view('business::cash-flow.excel-csv', compact('cash_flows', 'opening_balance')); } }