public function add($petId) { $pet = Pet::find($petId); $client = Client::find($pet->client_id); $breed = Breed::find($pet->breed_id); $specie = Species::find($breed->species_id); $atentionsType = AtentionType::lists('description', 'id')->all(); $date = UtilsController::calculateAge($pet->birth_date); return view('atention.create', compact('pet', 'client', 'breed', 'specie', 'atentionsType', 'date')); }