app/Http/Controllers/JobManagerController.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()
    {
        $companies = Company::select(['id','name'])->where('status', config('global.statusActive'))->get();
        $jobType = JobType::where('status', config('global.statusActive'))->get();
        $countries = Country::orderBy('code','asc')->get();
        return view('layouts.admin.job_and_relate.job.create')
            ->with('companies', $companies)
            ->with('jobTypes', $jobType)
            ->with('countries', $countries);
    }
public function create ( ) { $ companies = Company :: select ( [ 'id' , 'name' ] ) -> where ( 'status' , config ( 'global.statusActive' ) ) -> get ( ) ; $ jobType = JobType :: where ( 'status' , config ( 'global.statusActive' ) ) -> get ( ) ; $ countries = Country :: orderBy ( 'code' , 'asc' ) -> get ( ) ; return view ( 'layouts.admin.job_and_relate.job.create' ) -> with ( 'companies' , $ companies ) -> with ( 'jobTypes' , $ jobType ) -> with ( 'countries' , $ countries ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .