@extends('frontend.layout.app')

  
@section('content')
<section class="login-section register-section">

 <div class="mt-5">
    @if($errors->any())
        <div class="col-12">
             @foreach ($errors->all() as $error)
                <div class="alert alert-danger">{{ $error }}</div>
             @endforeach
         </div>
    @endif
 </div>

        <div class="container">
           <div class="row">
              <div class="col">
                 <div class="login-box">
                    <form action="{{ route('register') }}" method="post" class="ms-auto me-auto mt-3" style="width: 500px;" action="" method="post">
                        @csrf
                        <div class="row">
                            
                            <div class="col-md-6">
                                <div class="box mb-4">
                                    <h4 class="golden-text">@lang('First Name')</h4>
                                    <div class="input-group">
                                        
                                        <input type="text" name="firstname" class="form-control" value="{{old('firstname')}}" placeholder="@lang('First Name')"/>
                                    </div>
                                    @error('firstname')<span class="text-danger mt-1">@lang($message)</span>@enderror
                                </div>
                            </div>
                            <div class="col-md-6">
                                <div class="box mb-4">
                                    <h4 class="golden-text">@lang('Last Name')</h4>
                                    <div class="input-group">
                                        
                                        <input type="text" name="lastname" class="form-control" value="{{old('lastname')}}" placeholder="@lang('Last Name')"/>
                                    </div>
                                    @error('lastname')<span class="text-danger mt-1">@lang($message)</span>@enderror
                                </div>
                            </div>
                            
                            <div class="col-md-6">
                                <div class="box mb-4">
                                    <h4 class="golden-text">@lang('Email Address')</h4>
                                    <div class="input-group">
                                       
                                        <input type="text" name="email" class="form-control" value="{{old('email')}}" placeholder="@lang('Email Address')"/>
                                    </div>
                                    @error('email')<span class="text-danger mt-1">@lang($message)</span>@enderror
                                </div>
                            </div>

                            <div class="col-md-6 phonenumber">
                                <div class="form-group mb-30">
                                   

                                    <div class="box mb-4">
                                        <h4 class="golden-text">@lang('Phone Number')</h4>
                                        <div class="input-group">
                                           
                                            <input type="text" name="phone" class="form-control dialcode-set" value="{{old('phone')}}" placeholder="@lang('Phone Number')">
                                        </div>
                                        @error('phone')
                                            <span class="text-danger mt-1">@lang($message)</span>
                                        @enderror
                                    </div>


                                    <input type="hidden" name="country_code" value="{{old('country_code')}}" class="text-dark">
                                </div>
                            </div>

                            <div class="col-md-6">
                                <div class="box mb-4">
                                    <h4 class="golden-text">@lang('Password')</h4>
                                    <div class="input-group">
                                        
                                        <input type="password" name="password" class="form-control" placeholder="@lang('Password')"/>
                                    </div>
                                    @error('password')<span class="text-danger mt-1">@lang($message)</span>@enderror
                                </div>
                            </div>
                            <div class="col-md-6">
                                <div class="box mb-4">
                                    <h4 class="golden-text">@lang('Confirm Password')</h4>
                                    <div class="input-group">
                                       
                                        <input type="password" name="password_confirmation" class="form-control" placeholder="@lang('Confirm Password')"/>
                                    </div>
                                </div>
                            </div>

                           

                            <div class="mb-4 col-md-12 logindiv">
                                <p>
                                    @lang('already User?')
                                    <a href="{{ route('login') }}" class="golden-text">@lang('login')</a>
                                </p>
                                <button type="submit" class="gold-btn">@lang('Sign Up')</button>
                            </div>
                        </div>
                    </form>
                 </div>
              </div>
           </div>
        </div>
     </section>

@endsection