Exemplo n.º 1
0
 public function getEdit(ParentRepository $parentRepository, TariffRepository $tariffRepository, ChildRepository $childRepository, $id)
 {
     $parent = ParentModel::findOrFail($id);
     $parent = $parentRepository->prepareForForm($parent);
     $tariffs = $tariffRepository->getTariffForSelect();
     $children = $childRepository->getChildrenForSelect();
     return view('parents.parentsEdit', compact('parent', 'children', 'tariffs'));
 }
 public function getChooseTariff(TariffRepository $tariffRepository)
 {
     $tariffs = $tariffRepository->getTariffForSelect();
     return view('parentProfile.parentProfileTariffs', compact('tariffs'));
 }