


<?php $__env->startSection('content'); ?>

<div class="main-mobile-header doc-mobile-header">
      <a id="menuLink" href="#" class="menu-link"><i class="ri-menu-line"></i></a>
    </div>

   

    



     <div class="main main-app p-3 p-lg-4">
      
        <div class="mb-4">
          <ol class="breadcrumb fs-sm mb-1">
            <li class="breadcrumb-item"><a href="#">Dashboard</a></li>
            <li class="breadcrumb-item active" aria-current="page">Add Employee</li>
          </ol>
        </div>




      <div class="">
        
        <div class="row">

          <div class="col-lg-8">
            <h2 class="main-title">Edit User</h2>
            
          </div>
          <div style="text-align: right;" class="col-lg-4 text-right">
           <!--  <button type="button" class="btn btn-primary">Add Employee</button> -->
            <!-- <a href="/form" class="btn btn-primary">Add Employee</a>
 -->
          </div>

        </div>

        <hr class="main-separator">        
    
        

         <form action="/users-update" method="post">
         
        <?php echo csrf_field(); ?>
        <input type="hidden" name="id" value="<?php echo e($user->id); ?>" />


    <div class="card">
        <div class="card-body" style="background-color: white;">
            <div class="row g-3 mb-3">
                <div class="row">
                             <h5 class="heading">User Details</h3> 
                    <div class="col-sm-4">
                        <div class="mb-3">
                            <label class="form-label">
                                User Name
                                <span class="required-field">*</span>
                            </label>
                            <input type="text" name="employee_name_modal" id="employee_name_modal" required placeholder="User Name" class="form-control" value="<?php echo e($user->name); ?>" />
                        </div>
                    </div>
                    <!-- Col -->
                    <div class="col-sm-4">
                        <div class="mb-3">
                            <label class="form-label">
                                Email
                                <span class="required-field">*</span>
                            </label>
                            <input type="email" name="employee_email_modal" id="employee_email_modal" required placeholder="Email" class="form-control" value="<?php echo e($user->email); ?>" />
                        </div>
                    </div>
                    <div class="col-sm-4">
                        <div class="mb-3">
                            <label class="form-label">
                                Password
                                <span class="required-field">*</span>
                            </label>
                            <input type="password" name="password" id="password"  placeholder="Password" class="form-control" />
                        </div>
                    </div>
                    <!-- Col -->
                    
                </div>
                <!-- Row -->

                <br>
                <br>

                <div class="row">
                             <h5 class="heading">Dashboard Permission</h3> 
                    <div class="col-sm-4">
                        <div class="mb-3">
                            <label class="form-label">Masters </label>
                            <select name="master" class="form-select select">
                                <?php if($permission->master===1): ?>
                                <option value="1" selected>Access</option>
                                <option value="0">Restrict</option>
                                <?php else: ?>
                                <option value="0" selected>Restrict</option>
                                <option value="1">Access</option>
                                <?php endif; ?> 
                            </select>
                        </div>
                    </div>
                    <!-- Col -->

                    <div class="col-sm-4">
                        <div class="mb-3">
                            <label class="form-label">Inventory </label>
                            <select name="inventory" class="form-select select">
                                <?php if($permission->inventory===1): ?>
                                <option value="1" selected>Access</option>
                                <option value="0">Restrict</option>
                                <?php else: ?>
                                <option value="0" selected>Restrict</option>
                                <option value="1">Access</option>
                                <?php endif; ?> 
                            </select>
                        </div>
                    </div>
                    <!-- Col -->

                    <div class="col-sm-4">
                        <div class="mb-3">
                            <label class="form-label">Vehicles </label>
                            <select name="vehicle" class="form-select select">
                                <?php if($permission->vehicle===1): ?>
                                <option value="1" selected>Access</option>
                                <option value="0">Restrict</option>
                                <?php else: ?>
                                <option value="0" selected>Restrict</option>
                                <option value="1">Access</option>
                                <?php endif; ?> 
                            </select>
                        </div>
                    </div>
                    <!-- Col -->

                    <div class="col-sm-4">
                        <div class="mb-3">
                            <label class="form-label">Trailers </label>
                            <select name="trailer" class="form-select select">
                                <?php if($permission->trailer===1): ?>
                                <option value="1" selected>Access</option>
                                <option value="0">Restrict</option>
                                <?php else: ?>
                                <option value="0" selected>Restrict</option>
                                <option value="1">Access</option>
                                <?php endif; ?> 
                            </select>
                        </div>
                    </div>
                    <!-- Col -->

                    <div class="col-sm-4">
                        <div class="mb-3">
                            <label class="form-label">Tyre </label>
                            <select name="tyre" class="form-select select">
                                <?php if($permission->tyre===1): ?>
                                <option value="1" selected>Access</option>
                                <option value="0">Restrict</option>
                                <?php else: ?>
                                <option value="0" selected>Restrict</option>
                                <option value="1">Access</option>
                                <?php endif; ?> 
                            </select>
                        </div>
                    </div>
                    <!-- Col -->

                    <div class="col-sm-4">
                        <div class="mb-3">
                            <label class="form-label">Rim </label>
                            <select name="rim" class="form-select select">
                                <?php if($permission->rim===1): ?>
                                <option value="1" selected>Access</option>
                                <option value="0">Restrict</option>
                                <?php else: ?>
                                <option value="0" selected>Restrict</option>
                                <option value="1">Access</option>
                                <?php endif; ?> 
                            </select>
                        </div>
                    </div>
                    <!-- Col -->

                    <div class="col-sm-4">
                        <div class="mb-3">
                            <label class="form-label">Battery </label>
                            <select name="battery" class="form-select select">
                                <?php if($permission->battery===1): ?>
                                <option value="1" selected>Access</option>
                                <option value="0">Restrict</option>
                                <?php else: ?>
                                <option value="0" selected>Restrict</option>
                                <option value="1">Access</option>
                                <?php endif; ?> 
                            </select>
                        </div>
                    </div>
                    <!-- Col -->

                   
                    
                    
                </div>
                <!-- Row -->
                
                <div class="col-lg-4 text-right">
                    <button type="submit" id="savechangesbutton" class="btn btn-primary">Update</button>
                        
                    </div>
            </div>
        </div>
        <!-- card-body -->
    </div>
</form>



        <br><br><br>

        

      </div><!-- container -->

     
    <style>
    tbody tr:hover {background-color: #F5F5F5;}
    .card-example>.card-body::before {
    content: ""
    }
    </style>
<?php $__env->stopSection(); ?> 

<?php echo $__env->make('layout.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/vokks/public_html/tms/resources/views/users/edit.blade.php ENDPATH**/ ?>