/** * Melihat satu record Lead. * * @param $id Lead ID * @return View */ public function show($id) { $lead = Lead::findOrFail($id); if (Gate::denies('access-lead', $lead)) { abort(404); } $gcf = Gcf::find($lead->gcf_id); $lead = Lead::addCustomFields($lead); return view('lead.form', ['playList' => PlayRepository::collection($this->workingAreaId), 'lead' => $lead, 'gcf' => $gcf, 'url' => null, 'method' => 'get']); }