app/Http/Controllers/ReportController.php
/**
     * Show the form for creating a new resource.
     *
     * @return \Illuminate\Http\Response
     */
Show the form for creating a new resource.
@return \Illuminate\Http\Response
Show the form for creating a new resource . @return \ Illuminate \ Http \ Response
public function create()
    {
        $user = \Auth::user();
        $users = User::where('role_id', 4)->get();
        $usersArray = array();
        $usersArray[''] = '';
        foreach ($users as $a_user) {
            $usersArray[$a_user->id] = $a_user->first_name." ".$a_user->last_name;
        }
        return view('reports.create', ['clients' => $usersArray]);
    }
public function create ( ) { $ user = \ Auth :: user ( ) ; $ users = User :: where ( 'role_id' , 4 ) -> get ( ) ; $ usersArray = array ( ) ; $ usersArray [ '' ] = '' ; foreach ( $ users as $ a_user ) { $ usersArray [ $ a_user -> id ] = $ a_user -> first_name . " " . $ a_user -> last_name ; } return view ( 'reports.create' , [ 'clients' => $ usersArray ] ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .