コード例 #1
0
 public function postInsertvipbookingform(VipRequest $request)
 {
     //dd('dasd');
     $post = Input::get();
     $editleadid = Input::get('leadid');
     $empid = Input::get('empid');
     $fromemail = Input::get('pemail');
     $email = Employee::where('emp_ide_id', $empid)->get();
     foreach ($email as $backemail) {
         $email = $backemail->email;
     }
     // dd($editleadid);
     $i = vipbooking::where('id', $editleadid)->update(array('pname' => $post['pname'], 'ppassport' => $post['ppassport'], 'pnameonbadge' => $post['pnameonbadge'], 'snameonbadge' => $post['snameonbadge'], 'pemail' => $post['pemail'], 'pmobile' => $post['pmobile'], 'pdesg' => $post['pdesg'], 'sname' => $post['sname'], 'spassport' => $post['spassport'], 'semail' => $post['semail'], 'smobile' => $post['smobile'], 'agreedname' => $post['agreedname'], 'agreeddate' => $post['checkindate'], 'sdesg' => $post['sdesg'], 'status' => 'NULL'));
     $subject = 'Confirmation Form';
     Mail::send('emails.backform', ['Backform' => 'sdsad'], function ($message) use($subject, $email, $fromemail) {
         // note: if you don't set this, it will use the defaults from config/mail.php
         $message->from($fromemail);
         $message->to($email)->subject($subject);
     });
     if ($i > 0) {
         $request->session()->flash('alert-success', 'Updated Successfully');
         return Redirect::back();
     }
 }
コード例 #2
0
 public function postInsertvipbookingform(VipRequest $request)
 {
     //dd('dasd');
     $post = Input::get();
     $editleadid = Input::get('leadid');
     // dd($editleadid);
     $i = vipbooking::where('id', $editleadid)->update(array('pname' => $post['pname'], 'ppassport' => $post['ppassport'], 'pemail' => $post['pemail'], 'pmobile' => $post['pmobile'], 'pdesg' => $post['pdesg'], 'sname' => $post['sname'], 'spassport' => $post['spassport'], 'semail' => $post['semail'], 'smobile' => $post['smobile'], 'sdesg' => $post['sdesg'], 'status' => 'NULL'));
     if ($i > 0) {
         $request->session()->flash('alert-success', 'Updated Successfully');
         return Redirect::back();
     }
 }