app/Http/Controllers/AdminController.php
/**
     * Show the application dashboard.
     *
     * @return \Illuminate\Contracts\Support\Renderable
     */
Show the application dashboard.
@return \Illuminate\Contracts\Support\Renderable
Show the application dashboard . @return \ Illuminate \ Contracts \ Support \ Renderable
public function index()
    {
        $user = DB::table('users')->get();
        $total_income = DB::table('accodes')->sum('prices');
        return view('admin.index');
    }
public function index ( ) { $ user = DB :: table ( 'users' ) -> get ( ) ; $ total_income = DB :: table ( 'accodes' ) -> sum ( 'prices' ) ; return view ( 'admin.index' ) ; }
Show the application dashboard.
Show the application dashboard .
// $user_id = auth()->user()->id; // $user = User::find($user_id); // return view('admin.index')->with('Admin', $Admin->Admin);