<!DOCTYPE html>
<html lang="en">


<!-- Mirrored from www.radixtouch.in/templates/logicswave/ality/source/light/auth-register.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 02 Sep 2020 20:21:13 GMT -->
<head>
  <meta charset="UTF-8">
  <meta content="width=device-width, initial-scale=1, maximum-scale=1, shrink-to-fit=no" name="viewport">
  <title>Modifier utilisateur | EasyShop</title>
  <!-- General CSS Files -->
  
  <link rel="stylesheet" href="{{asset('assets/css/app.min.css')}}"> 
  <link rel="stylesheet" href="{{asset('assets/bundles/bootstrap-daterangepicker/daterangepicker.css')}}">
  <link rel="stylesheet" href="{{asset('assets/bundles/bootstrap-colorpicker/dist/css/bootstrap-colorpicker.min.css')}}">
  <link rel="stylesheet" href="{{asset('assets/bundles/select2/dist/css/select2.min.css')}}">
  <link rel="stylesheet" href="{{asset('assets/bundles/jquery-selectric/selectric.css')}}">
  <link rel="stylesheet" href="{{asset('assets/bundles/bootstrap-timepicker/css/bootstrap-timepicker.min.css')}}">
  <link rel="stylesheet" href="{{asset('assets/bundles/bootstrap-tagsinput/dist/bootstrap-tagsinput.css')}}">
  <!-- Template CSS -->
  <link rel="stylesheet" href="{{asset('assets/css/style.css')}}">
  <link rel="stylesheet" href="{{asset('assets/css/components.css')}}">
  <!-- Custom style CSS -->
  <link rel="stylesheet" href="{{asset('assets/css/custom.css')}}">
  <link rel='shortcut icon' type='image/x-icon' href='assets/img/favicon.ico' />
</head>

<body>
  <div class="loader"></div>
  <div id="app">
    <section class="section">
      <div class="container mt-5">
      <br> <br>
        <div class="row">
          <div class="col-12 col-sm-10 offset-sm-1 col-md-8 offset-md-2 col-lg-8 offset-lg-2 col-xl-8 offset-xl-2">
            <div class="card card-primary">
              <div class="card-header">
                <h4>Modification</h4>
              </div>
			   @if (session('status'))
                        <div class="alert alert-success" style="font-size: 15px; background-color: #328039; color: white">
                            <i class="ti-check"></i> {{ session('status') }}
                        </div>
                    @endif

                    @if (session('error'))
                        <div class="alert alert-danger" style="font-size: 15px; background-color: #fb5757; color: white">
                            <i class="ti-na"></i> {{ session('error') }}
                        </div>
                    @endif
                    @if ($errors->any())
                        <div class="alert alert-danger" style="font-size: 15px; background-color: #fb5757; color: white" >
                            <ul>
                                @foreach ($errors->all() as $error)
                                    <li> <i class="ti-na"></i> {{ $error }}</li>
                                @endforeach
                            </ul>
                        </div>
                    @endif
              <div class="card-body">
                <form action="{{route('modif_utilisateurPost', ['id'=>$user->id])}}" method="post" class="needs-validation" novalidate="">
				 {{csrf_field()}}
                  <div class="row">
                   <div class="form-group col-6">
                    <label for="nom">Nom & Prénom(s)<font color="red">*</font></label>
                    <input id="nom" type="text" class="form-control" value="{{$user->nom}}" name="nom" tabindex="1" required autofocus>
                    <div class="invalid-feedback">
                    Veuillez saisir le nom et le(s) prénom(s) !
                    </div>
                  </div>
                  <div class="col-lg-6 col-md-6"> 
					  <div class="form-group">
                      <label>Magasin <font color="red">*</font></label>
                      <select class="form-control select2" name="magasin">
                        <option value="{{$user->magasin_id}}">{{DB::table('magasin')->where('id',$user->magasin_id)->first()->nom}}</option>
						@foreach($magasin as $magasins)
						<option value="{{$magasins->id}}">{{$magasins->nom}} </option>
						@endforeach
                      </select>
                    </div>
					</div>
                  </div> 
                   <div class="row">
                   <div class="form-group col-6">
                    <label for="login">Login<font color="red">*</font></label>
                    <input id="login" type="login" class="form-control" value="{{$user->login}}" name="login" tabindex="2" required autofocus>
                    <div class="invalid-feedback">
                      Veuillez saisir le login !
                    </div>
                  </div>
				 <div class="form-group col-6">
                      <label>Rôles<font color="red">*</font></label>
                      <select class="form-control select2" name="role">
						<option  @if ( $user->roles == "Caissier") selected @endif value="Caissier" >Initiateur</option>
						<option  @if ( $user->roles == "Validateur") selected @endif value="Validateur" >Caissier</option>
						<option  @if ( $user->roles == "Gérant") selected @endif value="Gérant" >Gérant(e)</option>
					    <option @if ( $user->roles == "Admin") selected @endif value="Admin" >Admin</option>
                      </select>
                    </div>
				   </div>				  
                  <div class="form-group">
                    <button type="submit" class="btn btn-primary btn-lg btn-block" tabindex="3">
                      Enregistrer
                    </button>
                  </div>
                </form>
              </div>
              <div class="mb-4 text-muted text-center">
                <a href="{{route('Liste_des_utilisateurs')}}"><i class="fas fa-users"></i> Liste des utilisateurs</a>
              </div>
            </div>
          </div>
        </div>
      </div>
    </section>
  </div>
  <!-- General JS Scripts -->
  <!-- JS Libraies -->
  <!-- Page Specific JS File -->
  <script src="{{asset('assets/js/page/auth-register.js')}}"></script>
  <!-- Template JS File -->
  
  
  
  <script src="{{asset('js/vendor/jquery-1.12.4.min.js')}}"></script>
  
  <script src="{{asset('assets/js/app.min.js')}}"></script>
  <!-- JS Libraies -->
  <script src="{{asset('assets/bundles/chartjs/chart.min.js')}}"></script>
  <script src="{{asset('assets/bundles/apexcharts/apexcharts.min.js')}}"></script>
   <script src="{{asset('assets/bundles/cleave-js/dist/cleave.min.js')}}"></script>
  <script src="{{asset('assets/bundles/cleave-js/dist/addons/cleave-phone.us.js')}}"></script>
  <script src="{{asset('assets/bundles/jquery-pwstrength/jquery.pwstrength.min.js')}}"></script>
  <script src="{{asset('assets/bundles/bootstrap-daterangepicker/daterangepicker.js')}}"></script>
  <script src="{{asset('assets/bundles/bootstrap-colorpicker/dist/js/bootstrap-colorpicker.min.js')}}"></script>
  <script src="{{asset('assets/bundles/bootstrap-timepicker/js/bootstrap-timepicker.min.js')}}"></script>
  <script src="{{asset('assets/bundles/bootstrap-tagsinput/dist/bootstrap-tagsinput.min.js')}}"></script>
  <script src="{{asset('assets/bundles/select2/dist/js/select2.full.min.js')}}"></script>
  <script src="{{asset('assets/bundles/jquery-selectric/jquery.selectric.min.js')}}"></script>
  <script src="{{asset('assets/bundles/jquery-ui/jquery-ui.min.js')}}"></script>
  <!-- Page Specific JS File -->
  <!-- Template JS File -->
  <!-- Page Specific JS File -->
  <script src="{{asset('assets/js/page/forms-advanced-forms.js')}}"></script>
  <!-- Page Specific JS File -->
  <script src="{{asset('assets/js/page/index.js')}}"></script>
  <!-- Template JS File -->
  <script src="{{asset('assets/js/scripts.js')}}"></script>
  <!-- Custom JS File -->
  <script src="{{asset('assets/js/custom.js')}}"></script>
  
</body>


<!-- Mirrored from www.radixtouch.in/templates/logicswave/ality/source/light/auth-register.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 02 Sep 2020 20:21:14 GMT -->
</html>