public function index() { return view('play.index', ['data' => $this->repo->collection($this->workingAreaId)]); }
/** * Membuat record Lead baru. * * @return View */ public function create() { return view('lead.form', ['playList' => PlayRepository::collection($this->workingAreaId), 'lead' => new Lead(), 'gcf' => new Gcf(), 'url' => url('lead'), 'method' => 'post', 'submitButtonText' => 'Save new Lead']); }