app/Http/Controllers/DashboardController.php
/**
     * Show the application dashboard.
     *
     * @return \Illuminate\Http\Response
     */
Show the application dashboard.
@return \Illuminate\Http\Response
Show the application dashboard . @return \ Illuminate \ Http \ Response
public function index()
    {
        $stats = [
            'employee' => Employee::count(),
            'department' => Department::count(),
            'division' => Division::count(),
            'country' => Country::count(),
            'state' => State::count(),
            'city' => City::count(),
        ];
        return view('dashboard', $stats);
    }
public function index ( ) { $ stats = [ 'employee' => Employee :: count ( ) , 'department' => Department :: count ( ) , 'division' => Division :: count ( ) , 'country' => Country :: count ( ) , 'state' => State :: count ( ) , 'city' => City :: count ( ) , ] ; return view ( 'dashboard' , $ stats ) ; }
Show the application dashboard.
Show the application dashboard .