/** * Display ledger of individual client * Created by smartrahat Date: 08.12.2015 Time: 09:36PM * @param Request $request * @return \Illuminate\View\View */ public function ledger(Request $request) { $title = 'Ledger'; $ledgers = Ledger::all()->where('client', $request['client']); return view('cashIn.ledger', compact('title', 'ledgers')); }