app/Http/Controllers/Register/RegisterController.php
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
Display a listing of the resource.
@return \Illuminate\Http\Response
Display a listing of the resource . @return \ Illuminate \ Http \ Response
public function index()
    {
        $cashDrBalance = Cash::all()->sum('dr');
        $cashcrBalance = Cash::all()->sum('cr');
        $cashAtHand = $cashDrBalance - $cashcrBalance;
        return view('Register_page.register',compact('cashAtHand'));
    }
public function index ( ) { $ cashDrBalance = Cash :: all ( ) -> sum ( 'dr' ) ; $ cashcrBalance = Cash :: all ( ) -> sum ( 'cr' ) ; $ cashAtHand = $ cashDrBalance - $ cashcrBalance ; return view ( 'Register_page.register' , compact ( 'cashAtHand' ) ) ; }
Display a listing of the resource.
Display a listing of the resource .