laravelEcomm/resources/views/register.blade.php

96 lines
4.0 KiB
PHP
Raw Normal View History

2024-07-04 04:34:45 +00:00
<x-header />
<!-- Contact Section Begin -->
<section class="contact spad">
<div class="container">
<div class="row">
<div class="col-lg-6 col-md-6 mx-auto">
<div class="section-title">
<h2>Create New Account</h2>
</div>
<div class="contact__form">
@if (session('success'))
<div class="alert alert-success">
{{ session('success') }}
</div>
@endif
@if (session('error'))
<div class="alert alert-danger">
{{ session('error') }}
</div>
@endif
@if ($errors->any())
<div class="alert alert-danger">
<ul>
@foreach ($errors->all() as $error)
<li>{{ $error }}</li>
@endforeach
</ul>
</div>
@endif
{{-- <form action="{{ URL::to('registerUser') }}" method="POST" enctype="multipart/form-data">
2024-07-04 04:34:45 +00:00
@csrf
<div class="row">
<div class="col-lg-12">
<input type="text" name="name" id="name" placeholder="Name">
</div>
<div class="col-lg-12">
<input type="email" name="email" id="email" placeholder="Email">
</div>
<div class="col-lg-12">
<input type="file" name="file">
</div>
<div class="col-lg-12">
<input type="password" name="password" id="password" placeholder="Password">
</div>
<div class="col-lg-12">
<input type="password" name="password_confirmation" id="password_confirmation"
placeholder="Confirm Password" required>
<button type="submit" class="site-btn">Sign Up</button>
</div>
</div>
</form> --}}
2024-07-04 04:34:45 +00:00
<form action="{{ route('registerUser') }}" method="POST" enctype="multipart/form-data">
@csrf
<div class="row">
<div class="col-lg-12">
<input type="text" name="name" id="name" placeholder="Name">
</div>
<div class="col-lg-12">
<input type="email" name="email" id="email" placeholder="Email">
</div>
<div class="col-lg-12">
<input type="file" name="file">
</div>
<div class="col-lg-12">
<input type="password" name="password" id="password" placeholder="Password">
</div>
<div class="col-lg-12">
<input type="password" name="password_confirmation" id="password_confirmation"
placeholder="Confirm Password">
</div>
<div class="col-lg-12">
2024-07-04 04:34:45 +00:00
<button type="submit" class="site-btn">Sign Up</button>
</div>
</div>
</form>
2024-07-04 04:34:45 +00:00
</div>
</div>
</div>
</div>
</section>
<!-- Contact Section End -->
<!-- Footer Section Begin -->
<x-footer />
<!-- Footer Section End -->