added contact us page

This commit is contained in:
franknstayn
2021-08-19 23:32:36 +08:00
parent 434ad579d7
commit 8e92ec3965
4 changed files with 118 additions and 3 deletions

View File

@@ -20,15 +20,41 @@
</div>
<div class="row justify-content-center">
<div class="col col-lg-5">
<h6><i class="fa fa-envelope-square me-2"></i> Email Address:</h6>
<h6><i class="fa fa-map-marker me-2"></i>Address:</h6>
<p>1281 Humbracht Circle Suite J Bartlett, Illinois 60103</p>
<hr>
{{-- <h6><i class="fa fa-envelope-square me-2"></i> Email Address:</h6>
<p>orders@merchbay.com</p>
<hr>
<h6><i class="fa fa-phone-square me-2"></i>Contact Number:</h6>
<p>630 213 1500</p>
<hr>
<h6><i class="fa fa-map-marker me-2"></i>Address:</h6>
<p>1281 Humbracht Circle Suite J Bartlett, Illinois 60103</p>
<p>1281 Humbracht Circle Suite J Bartlett, Illinois 60103</p> --}}
@if(Session::has('contactUserError'))
{!! Session::get('contactUserError') !!}
@endif
<form action="{{ url('contact-us/send') }}" method="POST">
<div class="mb-3">
<input type="hidden" name="_token" value="{{ csrf_token() }}">
<label for="emailAddress" class="form-label">Email address</label>
<input type="email" class="form-control" name="emailAddress" placeholder="Email Address" required>
<div class="form-text">We'll never share your email with anyone else.</div>
</div>
<div class="mb-3">
<label for="fullname" class="form-label">Fullname</label>
<input type="text" class="form-control" placeholder="Fullname" name="fullname" required>
</div>
<div class="mb-3">
<label for="message" class="form-label">Message</label>
<textarea class="form-control" rows="5" name="message" placeholder="Message"></textarea>
</div>
<div class="mb-3">
<div class="g-recaptcha text-center" data-sitekey="{{ env('CAPTCHA_SITE_KEY') }}"></div>
</div>
<button type="submit" class="btn btn-black">Submit</button>
</form>
</div>
</div>
</div>

View File

@@ -0,0 +1,25 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Merchbay | Contact Us</title>
</head>
<body>
<h1>Merchbay - Contact Page</h1>
<p>
<strong>Name</strong><br><?php echo $name; ?>
</p>
<p>
<strong>Email Address</strong><br><?php echo $emailAddress; ?>
</p>
<p>
<strong>Message</strong><br><?php echo $msg; ?>
</p>
</body>
</html>