Ejemplo n.º 1
0
 public function view(Request $request, GenderRepository $genderRepo, CountryRepository $countryRepo)
 {
     return view('website.customer.account')->with(['browserTitle' => trans('website.my_account'), 'mainArea' => 'account', 'genders' => $genderRepo->getAll(), 'countries' => $countryRepo->getList(), 'customer' => $this->customer->getByToken()]);
 }
Ejemplo n.º 2
0
 public function getEdit(Request $request, GenderRepository $genderRepo)
 {
     $id = last_part_of_url($request->path());
     $customer_contact = $this->customer_contact->getById($id);
     return view('website.customer.customer_contacts.edit')->with(['browserTitle' => str_replace('{wildcard}', $customer_contact->last_name, trans('customer_contact.edit_customer_contact_wildcard')), 'mainArea' => 'customer_contacts', 'subArea' => 'edit', 'genders' => $genderRepo->getAll(), 'customer_contact' => $customer_contact]);
 }
Ejemplo n.º 3
0
 public function getEdit(Request $request, GenderRepository $genderRepo, CountryRepository $countryRepo)
 {
     $id = last_part_of_url($request->path());
     $producer = $this->producer->getById($id);
     return view('website.customer.producers.edit')->with(['browserTitle' => str_replace('{wildcard}', $producer->last_name, trans('producer.edit_producer_wildcard')), 'mainArea' => 'producers', 'subArea' => 'edit', 'countries' => $countryRepo->getList(), 'genders' => $genderRepo->getAll(), 'producer' => $producer]);
 }