@extends('layouts.inner')


@section('content')


@include('layouts.common_header')


<form method="POST" action="{{url('superadmin/create_post')}}">


@csrf


<section id="login-section">


    <div class="login-section">


        <div class="login-section-left">


            <div class="login-form">


                <!-- <div class="login-logo"><img src="{{asset('frontend/images/2024/01/logo.png')}}"></div> -->


                <h2>Register</h2>


                <h3> Please fill the below details </h3>


                <div class="login-form-box">


                    <div class="login-contact-form-box">


                        <input type="hidden" name="added_by" value="{{Auth::user()->role}}">


                        <!-- <label>Name</label> -->


                        <input type="text" id="name" name="name" required placeholder="Enter your full name...">


                    </div>


                </div>


                <div class="login-form-box">


                    <div class="login-contact-form-box">


                        <!-- <label>Email Address</label> -->


                        <input type="email" id="email" name="email" required placeholder="Enter your Email id...">


                    </div>


                </div>


                <div class="login-form-box">


                    <div class="login-contact-form-box">


                        <!-- <label>Choose Role</label> -->


                        <div class="select">


                            <select name="role" id="format" required>


                                <option value="">Choose Role</option>


                                @foreach($roleData as $role)


                                <option value="{{$role->id}}">{{$role->name}}</option>


                                @endforeach


                            </select>


                        </div>


                    </div>


                </div>


                <div class="login-form-box">


                    <div class="login-contact-form-box">


                        <!-- <label>Password</label> -->


                        <input type="password" id="password" placeholder="Enter your Password..." name="password" required="">


                    </div>


                </div>


                <div class="login-form-box">


                    <div class="login-contact-form-box">


                        <!-- <label>Confirm Password</label> -->


                        <input type="password" id="password-confirm"  placeholder="Enter your Password..." name="password_confirmation" required="">


                    </div>


                </div>


                <div class="login-form-box"><button type="submit" name="en" class="submit-now"> Register</button></div>


                <p>Read our <a href="#">Terms & Conditions</a> and <a href="#">Privacy Policy</a></p>


            </div>





        </div>


        <div class="login-section-right"></div>


    </div>


    </section>


</form>


@endsection