/**
  * Show the form for creating a new resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function create()
 {
     $locations = App\Location::lists('name', 'id');
     $subcontractors = App\Subcontractor::lists('subcontractor_name', 'id');
     return view('assignments.create', compact('locations', 'locations', 'subcontractors', 'subcontractors'));
 }
 /**
  * Display the specified resource.
  *
  * @param  int $id
  * @return \Illuminate\Http\Response
  */
 public function show($id)
 {
     $subcontractor = App\Subcontractor::findOrFail($id);
     return view('subcontractors.show', compact('subcontractor'));
 }