@ -0,0 +1,59 @@ |
||||
<?php |
||||
|
||||
namespace App\Http\Controllers; |
||||
|
||||
use Illuminate\Http\Request; |
||||
use App\Models\Contact; |
||||
|
||||
class ContactController extends Controller |
||||
{ |
||||
public function post_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 = $request['full_name']; |
||||
$contact->email = $request['email']; |
||||
$contact->phone = $request['phone']; |
||||
$contact->message = $request['message']; |
||||
$contact->nationality = $request['nationality']; |
||||
|
||||
$contact->save(); |
||||
|
||||
// dispatch(function() use ($check,$subject, $contact) { |
||||
\Mail::send('contact_mail', array( |
||||
|
||||
'full_name' =>$request['full_name'], |
||||
|
||||
'email' =>$request['email'], |
||||
|
||||
'phone' =>$request['phone'], |
||||
|
||||
'nationality' =>$request['nationality'], |
||||
|
||||
'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('mahesh@extratechs.com.au', 'Extratech')->subject($subject); |
||||
// $message->cc('suman@extratechs.com.u', '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); |
||||
|
||||
} |
||||
} |
@ -0,0 +1,14 @@ |
||||
<?php |
||||
|
||||
namespace App\Http\Controllers; |
||||
|
||||
use Illuminate\Http\Request; |
||||
use App\Models\VisaService; |
||||
|
||||
class VisaController extends Controller |
||||
{ |
||||
public function index(){ |
||||
$visas = VisaService::where('status',1)->get(); |
||||
return view('visa',compact('visas')); |
||||
} |
||||
} |
@ -0,0 +1,32 @@ |
||||
<?php |
||||
|
||||
use Illuminate\Database\Migrations\Migration; |
||||
use Illuminate\Database\Schema\Blueprint; |
||||
use Illuminate\Support\Facades\Schema; |
||||
|
||||
return new class extends Migration |
||||
{ |
||||
/** |
||||
* Run the migrations. |
||||
* |
||||
* @return void |
||||
*/ |
||||
public function up() |
||||
{ |
||||
Schema::table('contacts', function (Blueprint $table) { |
||||
$table->string('nationality')->nullable(); |
||||
}); |
||||
} |
||||
|
||||
/** |
||||
* Reverse the migrations. |
||||
* |
||||
* @return void |
||||
*/ |
||||
public function down() |
||||
{ |
||||
Schema::table('contacts', function (Blueprint $table) { |
||||
// |
||||
}); |
||||
} |
||||
}; |
@ -0,0 +1,32 @@ |
||||
<?php |
||||
|
||||
use Illuminate\Database\Migrations\Migration; |
||||
use Illuminate\Database\Schema\Blueprint; |
||||
use Illuminate\Support\Facades\Schema; |
||||
|
||||
return new class extends Migration |
||||
{ |
||||
/** |
||||
* Run the migrations. |
||||
* |
||||
* @return void |
||||
*/ |
||||
public function up() |
||||
{ |
||||
Schema::table('about_us', function (Blueprint $table) { |
||||
$table->string('bottom_description')->nullable(); |
||||
}); |
||||
} |
||||
|
||||
/** |
||||
* Reverse the migrations. |
||||
* |
||||
* @return void |
||||
*/ |
||||
public function down() |
||||
{ |
||||
Schema::table('about_us', function (Blueprint $table) { |
||||
// |
||||
}); |
||||
} |
||||
}; |
After Width: | Height: | Size: 441 KiB |
After Width: | Height: | Size: 461 B |
After Width: | Height: | Size: 303 KiB |
Before Width: | Height: | Size: 1.1 MiB |
Before Width: | Height: | Size: 30 KiB |
After Width: | Height: | Size: 461 B |
After Width: | Height: | Size: 461 B |
After Width: | Height: | Size: 461 B |
After Width: | Height: | Size: 461 B |
@ -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>Nationality:</b> {{$nationality}}<br /><br /> |
||||
|
||||
<b>Message:</b> {{ $contact_message }}<br /><br /> |
||||
|
||||
</div> |
||||
</div> |
||||
|