Exemplo n.º 1
1
 public function contact()
 {
     $title = 'Contact';
     $name = App::getLocale() == 'fr' ? 'name_fr' : 'name_en';
     if (App::getLocale() == 'fr') {
         $iams = [1 => 'Indépendant', 2 => 'Particulier', 3 => 'Organisme public'];
     } else {
         $iams = [1 => 'Professional client', 2 => 'Private client', 3 => 'Public body'];
     }
     $objects = Object::lists($name, 'id');
     return view('pages.contact', compact('title', 'objects', 'iams'));
 }
Exemplo n.º 2
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function edit($id)
 {
     $mail = Mail::findOrFail($id);
     $objects = Object::lists('name_fr', 'id');
     $title = 'Editer l\'adresse e-mail "' . $mail->email . '"';
     return view('admin.mails.edit', compact('title', 'mail', 'objects'));
 }