@extends('backend.layouts.app')

@section('title', 'Create Account')

@push('styles')

    
@endpush


@section('content')


<style type="text/css">
    .mrg{margin-left:4px}

}

.img-thumbnail {
    padding: .25rem; 
        max-height: 200px;
    border-radius: 50%;
     background-color: #fff; 
     border: 1px solid #dee2e6; 
     border-radius: .25rem; 
     max-width: 100%; 
     height: auto; 
}
</style>

  <div class="block-header">
        <ol class="breadcrumb breadcrumb-col-pink">
                                <li><a href="/admin"><i class="material-icons">home</i> Home</a></li>
                                <li><a href="{{route('admin.comptes.index')}}"><i class="material-icons">library_books</i> Admins / Agents LIST </a></li>
                                <li class="active"><i class="material-icons">add</i> Add Admin / Agnet</li>
                            </ol>
    </div>

      <!-- Example Tab -->
            <div class="row">
                <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
                    <div class="card">

                <div class="header">
                </div>
                        <div class="body">
<!-- -------------------------------------Details----------------------------------------------- -->
                        <div class="row clearfix">
         





                       <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
                      <div class="card">
 
                       <div class="body">
        <form method="POST" action="{{route('admin.comptes.store')}}" enctype="multipart/form-data">
    
                          @csrf

                <div class="row clearfix">
                 <div class="col-sm-6">           
                    <div class="form-group form-float">
                        <div class="form-line">
                            <input type="text" name="name" id="tag_name1" class="form-control" value="{{old('name')}}">
                            <label class="form-label"> <strong style="color:black"> Full Name </strong></label>
                            </div>
                    </div>
                </div>
                    
                    <div class="col-sm-6">      
                     <div class="form-group form-float">
                        <div class="form-line">
                            <input type="text" name="username" id="tag_name2" class="form-control" value="{{old('username')}}" >
                            <label class="form-label"> <strong style="color:black">Username</strong>  </label>
                            </div>
                    </div>
                     </div>
                   </div>

                 
                              


                <div class="row clearfix">
                  <div class="col-sm-12">
                    <div class="form-group form-float">
                        <div class="form-line">
                            <input type="email" name="email" id="tag_name1" class="form-control" value="{{old('email')}}">
                            <label class="form-label"> <strong style="color:black"> Email </strong> </label>
                            </div>
                    </div>
                  </div>
                  </div>


               <div class="row clearfix">
                   <div class="col-sm-6">
                     <div class="form-group form-float">
                        <div class="form-line">
                            <input type="password" name="password" id="tag_name3" class="form-control" value="{{old('password')}}">
                            <label class="form-label"> <strong style="color:black">password</strong> </label>
                            </div>
                             </div>
                         </div>
                    <div class="col-sm-6">
                    <div class="form-group form-float">
                        <div class="form-line">
                            <input type="password" name="password_confirmation" id="tag_name5" class="form-control" value="{{old('password_confirmation')}}">
                            <label class="form-label"><strong style="color:black">Confirm password</strong></label>
                            </div>
                       </div></div>

             </div><!-- row clearfix -->

                <div class="row clearfix">
                <div class="col-sm-12">
                <label for="publish"><strong style="color:black"> About  </strong> </label>
                    <div class="form-group">
                        <div class="form-line">
                       <textarea name="about" id="about" class="form-control" rows="4" style="border:1px solid black">
                         {{old('about')}}
                       </textarea>
                            </div>
                    </div> 
                  </div>           
                 </div>


                <div class="row clearfix">
                <div class="col-sm-12">
                <label for="publish"><strong style="color:black"> Image : </strong> </label>
                    <div class="form-group">
                        <div class="form-line">
                       <input type="file" name="image" id="tag_name6" class="form-control" accept="image/*">
                            </div>
                    </div> 
                  </div>           
                 </div>

               <div class="row clearfix">

                  <div class="col-sm-6">
                        <div class="demo-switch">
                                <div class="switch">
                                    <label><input type="checkbox" id="is_admin" name="is_admin" 
                                      {{old('is_admin') == true ? 'checked' : ''}}  ><span class="lever"></span>Is Admin</label>
                                </div>
                            </div>
                    </div>

                  <div class="col-sm-6">
                        
                        <div class="demo-switch">
                                <div class="switch">
                           <label><input type="checkbox" checked="" id="status" name="status" 
                                      {{old('status') == true ? 'checked' : ''}}  ><span class="lever"></span>Status</label>
                                </div>
                            </div>
                    </div>

               </div>


                       <button type="submit" class="btn btn-indigo btn-block m-t-15 waves-effect"><i class="material-icons">save </i> Save</button>
            </form>    
           
        </div> 

      </div>
      </div>

    </div>
<!-- ------------------------------------------------------------------------------------ -->
                    </div><!-- end body -->
                </div>
            </div>
            <!-- #END# Example Tab -->



@endsection