|
|
|
@ -75,7 +75,7 @@ class AppointmentController extends Controller |
|
|
|
|
$formated_date = $date->format('M d, Y'); |
|
|
|
|
$appointment->is_booked = true; |
|
|
|
|
$appointment->save(); |
|
|
|
|
$subject = 'Appointment Booked Successfully.'; |
|
|
|
|
$subject = 'Appointment Confirmed'; |
|
|
|
|
dispatch(function() use ($name,$email,$phone,$subject,$formated_date,$appointment) { |
|
|
|
|
|
|
|
|
|
\Mail::send('appointment_confirmed', array( |
|
|
|
@ -96,46 +96,13 @@ class AppointmentController extends Controller |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
), function($message) use ($subject,$email,$name){ |
|
|
|
|
// $subject=($service!= '') ? 'Enquiry for '.$service : 'Contact/Feedback'; |
|
|
|
|
$message->subject($subject); |
|
|
|
|
// $message->from('admin@eteducation.com.au', 'Admin'); |
|
|
|
|
$message->to($email, $name)->subject($subject); |
|
|
|
|
// $message->cc('extratechweb@gmail.com', 'Extratech')->subject($subject); |
|
|
|
|
// $message->cc('admin@eteducation.com.au', 'Extratech')->subject($subject); |
|
|
|
|
// $subject=($service!= '') ? 'Enquiry for '.$service : 'Contact/Feedback'; |
|
|
|
|
$message->subject($subject); |
|
|
|
|
$message->to($email, $name)->subject($subject); |
|
|
|
|
// $message->cc('extratechweb@gmail.com', 'Extratech')->subject($subject); |
|
|
|
|
// $message->cc('suman@extratechs.com.au', 'Extratech')->subject($subject); |
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
dispatch(function() use ($name,$email,$phone,$subject,$formated_date,$appointment) { |
|
|
|
|
|
|
|
|
|
\Mail::send('appointment_confirmed_for_admin', array( |
|
|
|
|
|
|
|
|
|
'full_name' =>$name, |
|
|
|
|
|
|
|
|
|
'email' =>$email, |
|
|
|
|
|
|
|
|
|
'date' => $formated_date, |
|
|
|
|
|
|
|
|
|
'start_time' => $appointment['start_time'], |
|
|
|
|
|
|
|
|
|
'end_time' => $appointment['end_time'], |
|
|
|
|
|
|
|
|
|
'phone' =>$phone, |
|
|
|
|
|
|
|
|
|
'subject' =>$subject |
|
|
|
|
|
|
|
|
|
), function($message) use ($subject){ |
|
|
|
|
// $subject=($service!= '') ? 'Enquiry for '.$service : 'Contact/Feedback'; |
|
|
|
|
$message->subject($subject); |
|
|
|
|
// $message->to($email, $name)->subject($subject); |
|
|
|
|
$message->to('mahesh@extratechs.com.au', 'Extratech')->subject($subject); |
|
|
|
|
// $message->cc('admin@eteducation.com.au', 'Extratech')->subject($subject); |
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|