Compare commits
8 Commits
Author | SHA1 | Date |
---|---|---|
tribikram | 70152e6ce9 | 2 years ago |
Mahesh Sharma | 4106c459d0 | 2 years ago |
Mahesh Sharma | f21a79f085 | 2 years ago |
tribikram | 5adae1176a | 2 years ago |
tribikram | 4a5d886e1e | 2 years ago |
tribikram | f5a7f73969 | 2 years ago |
Mahesh Sharma | 4ea36987bc | 2 years ago |
Mahesh Sharma | 0ed368eb16 | 2 years ago |
6 changed files with 119 additions and 9 deletions
@ -0,0 +1,58 @@ |
||||
<?php |
||||
|
||||
namespace App\Http\Controllers; |
||||
|
||||
use Illuminate\Http\Request; |
||||
|
||||
class HomeController extends Controller |
||||
{ |
||||
public function contact(Request $request){ |
||||
|
||||
// $contact = new Contact(); |
||||
$subject = 'Contact Enquiry'; |
||||
// $check = ''; |
||||
// if(isset($request['firstname'])){ |
||||
// $subject = 'Quick Enquiry'; |
||||
// $check = '1'; |
||||
// } |
||||
// $name = ($request['firstname'] != null) ? ($request['firstname'].' '.$request['lastname']) : $request['fullname'] ; |
||||
|
||||
// $contact->fullname = $name; |
||||
// $contact->email = $request['email']; |
||||
// $contact->phone = $request['phone']; |
||||
// $contact->message = $request['message']; |
||||
|
||||
// $contact->save(); |
||||
|
||||
// dispatch(function() use ($check,$subject, $contact) { |
||||
\Mail::send('contact_mail', array( |
||||
|
||||
'full_name' =>$request['fname'], |
||||
|
||||
'email' =>$request['email'], |
||||
|
||||
'phone' =>$request['mobile'], |
||||
|
||||
'job_title' =>$request['job_title'], |
||||
|
||||
'contact_message' =>$request['message'], |
||||
|
||||
'subject' =>$subject |
||||
|
||||
|
||||
), function($message) use ($subject){ |
||||
// $subject=($service!= '') ? 'Enquiry for '.$service : 'Contact/Feedback'; |
||||
$message->subject($subject); |
||||
// $message->to('info@agilityhomecare.com.au', 'AgilityHomeCare')->subject($subject); |
||||
$message->to('info@extratechs.com.au', 'Extratech')->subject($subject); |
||||
$message->cc('extratechweb@gmail.com', 'Extratech')->subject($subject); |
||||
|
||||
|
||||
}); |
||||
// }); |
||||
// return redirect()->back()->with(['msg' => 'Successfully submitted.']); |
||||
return redirect()->back()->with(['msg' => 'Thank you for your interest. We will get back to you soon.','status' =>'Ok'],200); |
||||
|
||||
|
||||
} |
||||
} |
Before Width: | Height: | Size: 7.7 KiB After Width: | Height: | Size: 8.0 KiB |
@ -0,0 +1,27 @@ |
||||
|
||||
<style> |
||||
.main-column{ |
||||
display:flex; |
||||
width:100%; |
||||
} |
||||
.column-one{ |
||||
width:50%; |
||||
} |
||||
</style> |
||||
|
||||
<h1>Contact Details</h1> |
||||
<br /> |
||||
<div class="main-column" style = "display:block; width:100%;"> |
||||
<div class="column-one" style = "display:block; width:100%;"> |
||||
<h3>Please, find out the contact details</h3> |
||||
<b>Full Name:</b> {{ $full_name }}<br /><br /> |
||||
<b>Email:</b> {{ $email }}<br /><br /> |
||||
<b>Phone:</b> {{$phone}}<br /><br /> |
||||
|
||||
<b>Job Title:</b> {{$job_title}}<br /><br /> |
||||
|
||||
<b>Message:</b> {{ $contact_message }}<br /><br /> |
||||
|
||||
</div> |
||||
</div> |
||||
|
Loading…
Reference in new issue