@extends('layouts.super-Admin')
@section('edit')

<div class="pagetitle">

    <div class="row">

        <h1 class="col">Accès admin</h1>
 <div class="col ">
    {{--
                @if (session()->has('info'))
                    <div class="alert alert-warning alert-dismissible fade show" role="alert">
                        {{ session('info') }}
                        <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
                    </div>
                @elseif(session()->has('modif'))
                    <div class="alert alert-success alert-dismissible fade show" role="alert">
                        {{ session('modif') }}
                        <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
                    </div>
                @endif
--}}@include('sweetalert::alert')
            </div>
        <nav>
            <ol class="breadcrumb">
                <li class="breadcrumb-item">utilisateur admin</li>
            </ol>

        </nav>

    </div>

    <nav>
        <ol class="breadcrumb">
            <li class="breadcrumb-item"><a href="#"></a></li>
        </ol>
    </nav>
</div><!-- End Page Title -->

<section class="section">
    <div class="row">
        <div class="col-lg-9 " style="margin-left: 80px">
            <div class="card">
                <div class="card-body mt-5">
                    <form action="{{ route('compte_admin.store') }}" method="POST"enctype="multipart/form-data">
                        @csrf

                        <div class="row">
                            <div class="col-sm-6">

                                <label for="email" class="form-label">{{ __('Emain') }}</label>
                                <input id="email"  type="email" class="form-control @error('email') is-invalid @enderror" name="email" value="{{ old('email') }}" required>

                                @error('email')
                                <span class="invalid-feedback" role="alert">
                                    <strong>{{ $message }}</strong>
                                </span>
                            @enderror
                            </div>
                            <div class="col-sm-6">
                                <label for="name" class="form-label">{{ __('Nom') }}</label>
                                <input id="name" type="password" class="form-control @error('name') is-invalid @enderror" name="name" value="{{ old('name') }}" required autocomplete="name" autofocus>
                                @error('name')
                                <span class="invalid-feedback" role="alert">
                                    <strong>{{ $message }}</strong>
                                </span>
                            @enderror
                            </div>

                        </div>
                        <div class="row mt-3">
                            <div class="col-sm-6">
                                <label for="password" class="form-label">{{ __('Password') }}</label>
                                <input id="password" type="password" class="form-control @error('password') is-invalid @enderror" name="password" required autocomplete="new-password">
                                    @error('password')
                                    <span class="invalid-feedback" role="alert">
                                        <strong>{{ $message }}</strong>
                                    </span>
                                @enderror
                            </div>
                            <div class="col-sm-6">
                                <label for="inputDate" class="form-label">{{ __('Confirm Password') }}</label>
                                <input id="password-confirm" type="text" class="form-control" name="password_confirmation" required autocomplete="new-password">
                            </div>
                            <input type="hidden" value="2" name="role" />
                        </div>
                        <div class="row mt-3">
                            <div class="col-sm-12 text-end">
                                <button class="btn btn-color" type="submit">
                                    {{ __('Register') }}
                                </button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</section>
@endsection
