<?php $__env->startSection("content"); ?>
<?php $__env->startSection("title","Update Employees"); ?>

<div class="row">
    <div class="col-xl-12 col-lg-12">
        <div class="alert alert-success my-3" style="display:none;" id="success"></div>
        
        <div class="card">
            <div class="card-header d-flex justify-content-between align-items-center">
                <h4 class="card-title mb-0">Update Employees</h4>
                <a href="javascript:history.back()" class="btn btn-sm btn-light">
                    <i class="ri-arrow-left-line"></i> Back
                </a>
            </div>
            
            <div class="card-body">
                <form accept-charset="utf-8" name="update-form" id="update-form" enctype="multipart/form-data">
                    <?php echo csrf_field(); ?>
                    <div class="row">

<div class="mt-2 col-xs-12 col-sm-12 col-md-4 col-lg-4">        
<label class='form-label'><?php echo e($dbs_employees['client_id_req']); ?><?php echo e($dbs_employees['client_id_title']); ?>: </label>
 <select name="client_id" id="update-client_id"  class="chosen-select form-control form-select">
    <option value=""><?php echo e($dbs_employees['client_id_req']); ?>Select <?php echo e($dbs_employees['client_id_title']); ?> </option>
    <?php $__currentLoopData = $client_id; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $id => $name): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <?php
    $selected = ($id == $row->client_id) ? 'selected="selected"' : '';
?>
        <option value="<?php echo e($id); ?>"  <?php echo e($selected); ?>><?php echo e($name); ?></option>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</select>
<script>
    $(function() {
        $('#update-client_id').chosen({
              width: '100%',
              search_contains: true
            });
        });
</script>
<span class='text-danger' id='update-client_idError'></span>
</div>


<div class="col-lg-4">
    <div class="mb-3">
        <label class='form-label'><?php echo e($dbs_employees['employee_code_req']); ?><?php echo e($dbs_employees['employee_code_title']); ?>:</label>
        <input type = '<?php echo e($dbs_employees['employee_code_html5_type']); ?>' name = "employee_code" id = "update-employee_code" autocomplete = 'off' maxlength ='<?php echo e($dbs_employees['employee_code_max']); ?>'  value='<?php echo e($row->employee_code); ?>' <?php if($dbs_employees['employee_code_html5_req']!=''): ?> <?php echo e($dbs_employees['employee_code_html5_req']); ?> = <?php echo e($dbs_employees['employee_code_html5_req']); ?> <?php endif; ?> class= 'form-control'  >
        <span class='text-danger' id='update-employee_codeError'></span>
    </div>
</div>


<div class="col-lg-4">
    <div class="mb-3">
        <label class='form-label'><?php echo e($dbs_employees['first_name_req']); ?><?php echo e($dbs_employees['first_name_title']); ?>:</label>
        <input type = '<?php echo e($dbs_employees['first_name_html5_type']); ?>' name = "first_name" id = "update-first_name" autocomplete = 'off' maxlength ='<?php echo e($dbs_employees['first_name_max']); ?>'  value='<?php echo e($row->first_name); ?>' <?php if($dbs_employees['first_name_html5_req']!=''): ?> <?php echo e($dbs_employees['first_name_html5_req']); ?> = <?php echo e($dbs_employees['first_name_html5_req']); ?> <?php endif; ?> class= 'form-control'  >
        <span class='text-danger' id='update-first_nameError'></span>
    </div>
</div>


<div class="col-lg-4">
    <div class="mb-3">
        <label class='form-label'><?php echo e($dbs_employees['last_name_req']); ?><?php echo e($dbs_employees['last_name_title']); ?>:</label>
        <input type = '<?php echo e($dbs_employees['last_name_html5_type']); ?>' name = "last_name" id = "update-last_name" autocomplete = 'off' maxlength ='<?php echo e($dbs_employees['last_name_max']); ?>'  value='<?php echo e($row->last_name); ?>' <?php if($dbs_employees['last_name_html5_req']!=''): ?> <?php echo e($dbs_employees['last_name_html5_req']); ?> = <?php echo e($dbs_employees['last_name_html5_req']); ?> <?php endif; ?> class= 'form-control'  >
        <span class='text-danger' id='update-last_nameError'></span>
    </div>
</div>


<div class="col-lg-4">
    <div class="mb-3">
        <label class='form-label'><?php echo e($dbs_employees['email_req']); ?><?php echo e($dbs_employees['email_title']); ?>:</label>
        <input type = '<?php echo e($dbs_employees['email_html5_type']); ?>' name = "email" id = "update-email" autocomplete = 'off' maxlength ='<?php echo e($dbs_employees['email_max']); ?>'  value='<?php echo e($row->email); ?>' <?php if($dbs_employees['email_html5_req']!=''): ?> <?php echo e($dbs_employees['email_html5_req']); ?> = <?php echo e($dbs_employees['email_html5_req']); ?> <?php endif; ?> class= 'form-control'   oninput='validateEmailInput(this)' >
        <span class='text-danger' id='update-emailError'></span>
    </div>
</div>


<div class="col-lg-4">
    <div class="mb-3">
        <label class='form-label'><?php echo e($dbs_employees['phone_req']); ?><?php echo e($dbs_employees['phone_title']); ?>:</label>
        <input type = '<?php echo e($dbs_employees['phone_html5_type']); ?>' name = "phone" id = "update-phone" autocomplete = 'off' maxlength ='<?php echo e($dbs_employees['phone_max']); ?>'  value='<?php echo e($row->phone); ?>' <?php if($dbs_employees['phone_html5_req']!=''): ?> <?php echo e($dbs_employees['phone_html5_req']); ?> = <?php echo e($dbs_employees['phone_html5_req']); ?> <?php endif; ?> class= 'form-control'  >
        <span class='text-danger' id='update-phoneError'></span>
    </div>
</div>


<div class="col-lg-4">
    <div class="mb-3">
        <label class='form-label'><?php echo e($dbs_employees['cnic_req']); ?><?php echo e($dbs_employees['cnic_title']); ?>:</label>
        <input type = '<?php echo e($dbs_employees['cnic_html5_type']); ?>' name = "cnic" id = "update-cnic" autocomplete = 'off' maxlength ='<?php echo e($dbs_employees['cnic_max']); ?>'  value='<?php echo e($row->cnic); ?>' <?php if($dbs_employees['cnic_html5_req']!=''): ?> <?php echo e($dbs_employees['cnic_html5_req']); ?> = <?php echo e($dbs_employees['cnic_html5_req']); ?> <?php endif; ?> class= 'form-control'  >
        <span class='text-danger' id='update-cnicError'></span>
    </div>
</div>

<div class="col-lg-4">
    <div class="mb-3">
        <label class='form-label'><?php echo e($dbs_employees['gender_req']); ?><?php echo e($dbs_employees['gender_title']); ?>:</label><br/>
        <div class="mt-2">
            <?php
            $options = $dbs_employees['gender_array'];
            ?>

            <?php $__currentLoopData = $options; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <?php
                $checked = ($key == $row->gender) ? 'checked="checked"' : '';
                ?>

                <label class="btn btn-outline-primary">
                    <input type="radio" name="gender" value="<?php echo e($key); ?>" id="update-gender" <?php echo e($checked); ?>/> <?php echo e($value); ?>

                </label>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </div>
    </div>
</div>

<div class="col-lg-4">
    <div class="mb-3">
        <label class='form-label'><?php echo e($dbs_employees['date_of_birth_req']); ?><?php echo e($dbs_employees['date_of_birth_title']); ?>:</label>
        <input type = '<?php echo e($dbs_employees['date_of_birth_html5_type']); ?>' name = "date_of_birth" id = "update-date_of_birth" autocomplete = 'off' <?php if($dbs_employees['date_of_birth_html5_req']!=''): ?> <?php echo e($dbs_employees['date_of_birth_html5_req']); ?> = <?php echo e($dbs_employees['date_of_birth_html5_req']); ?> <?php endif; ?> class= 'form-control dateBox' >
        <span class='text-danger' id='update-date_of_birthError'></span>
        
        <script>
            $(function() {
                $( '#update-date_of_birth' ).datepicker({
                    changeMonth: true,
                    changeYear: true
                });
                $( '#update-date_of_birth' ).datepicker( 'option', 'yearRange', 'c-100:c+10' );
                $( '#update-date_of_birth' ).datepicker( 'option', 'dateFormat', 'yy-mm-dd' );
                $('#update-date_of_birth').datepicker('setDate', '<?php echo e($row->date_of_birth); ?>' );                
            });
        </script>
    </div>
</div>

<div class="col-lg-4">
    <div class="mb-3">
        <label class='form-label'><?php echo e($dbs_employees['joining_date_req']); ?><?php echo e($dbs_employees['joining_date_title']); ?>:</label>
        <input type = '<?php echo e($dbs_employees['joining_date_html5_type']); ?>' name = "joining_date" id = "update-joining_date" autocomplete = 'off' <?php if($dbs_employees['joining_date_html5_req']!=''): ?> <?php echo e($dbs_employees['joining_date_html5_req']); ?> = <?php echo e($dbs_employees['joining_date_html5_req']); ?> <?php endif; ?> class= 'form-control dateBox' >
        <span class='text-danger' id='update-joining_dateError'></span>
        
        <script>
            $(function() {
                $( '#update-joining_date' ).datepicker({
                    changeMonth: true,
                    changeYear: true
                });
                $( '#update-joining_date' ).datepicker( 'option', 'yearRange', 'c-100:c+10' );
                $( '#update-joining_date' ).datepicker( 'option', 'dateFormat', 'yy-mm-dd' );
                $('#update-joining_date').datepicker('setDate', '<?php echo e($row->joining_date); ?>' );                
            });
        </script>
    </div>
</div>

<div class="mt-2 col-xs-12 col-sm-12 col-md-4 col-lg-4">        
<label class='form-label'><?php echo e($dbs_employees['department_id_req']); ?><?php echo e($dbs_employees['department_id_title']); ?>: </label>
 <select name="department_id" id="update-department_id"  class="chosen-select form-control form-select">
    <option value=""><?php echo e($dbs_employees['department_id_req']); ?>Select <?php echo e($dbs_employees['department_id_title']); ?> </option>
    <?php $__currentLoopData = $department_id; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $id => $name): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <?php
    $selected = ($id == $row->department_id) ? 'selected="selected"' : '';
?>
        <option value="<?php echo e($id); ?>"  <?php echo e($selected); ?>><?php echo e($name); ?></option>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</select>
<script>
    $(function() {
        $('#update-department_id').chosen({
              width: '100%',
              search_contains: true
            });
        });
</script>
<span class='text-danger' id='update-department_idError'></span>
</div>

<div class="mt-2 col-xs-12 col-sm-12 col-md-4 col-lg-4">        
<label class='form-label'><?php echo e($dbs_employees['designation_id_req']); ?><?php echo e($dbs_employees['designation_id_title']); ?>: </label>
 <select name="designation_id" id="update-designation_id"  class="chosen-select form-control form-select">
    <option value=""><?php echo e($dbs_employees['designation_id_req']); ?>Select <?php echo e($dbs_employees['designation_id_title']); ?> </option>
    <?php $__currentLoopData = $designation_id; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $id => $name): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <?php
    $selected = ($id == $row->designation_id) ? 'selected="selected"' : '';
?>
        <option value="<?php echo e($id); ?>"  <?php echo e($selected); ?>><?php echo e($name); ?></option>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</select>
<script>
    $(function() {
        $('#update-designation_id').chosen({
              width: '100%',
              search_contains: true
            });
        });
</script>
<span class='text-danger' id='update-designation_idError'></span>
</div>

<div class="mt-2 col-xs-12 col-sm-12 col-md-4 col-lg-4">        
<label class='form-label'><?php echo e($dbs_employees['shift_id_req']); ?><?php echo e($dbs_employees['shift_id_title']); ?>: </label>
 <select name="shift_id" id="update-shift_id"  class="chosen-select form-control form-select">
    <option value=""><?php echo e($dbs_employees['shift_id_req']); ?>Select <?php echo e($dbs_employees['shift_id_title']); ?> </option>
    <?php $__currentLoopData = $shift_id; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $id => $name): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <?php
    $selected = ($id == $row->shift_id) ? 'selected="selected"' : '';
?>
        <option value="<?php echo e($id); ?>"  <?php echo e($selected); ?>><?php echo e($name); ?></option>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</select>
<script>
    $(function() {
        $('#update-shift_id').chosen({
              width: '100%',
              search_contains: true
            });
        });
</script>
<span class='text-danger' id='update-shift_idError'></span>
</div>

<div class="col-lg-12">
    <div class="mb-3">
        <label class='form-label'><?php echo e($dbs_employees['employment_type_req']); ?><?php echo e($dbs_employees['employment_type_title']); ?>:</label><br/>
        <div class="mt-2">
            <?php
            $options = $dbs_employees['employment_type_array'];
            ?>

            <?php $__currentLoopData = $options; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <?php
                $checked = ($key == $row->employment_type) ? 'checked="checked"' : '';
                ?>

                <label class="btn btn-outline-primary">
                    <input type="radio" name="employment_type" value="<?php echo e($key); ?>" id="update-employment_type" <?php echo e($checked); ?>/> <?php echo e($value); ?>

                </label>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </div>
    </div>
</div>

<div class="col-lg-4">
    <div class="mb-3">
        <label class='form-label'><?php echo e($dbs_employees['basic_salary_req']); ?><?php echo e($dbs_employees['basic_salary_title']); ?>:</label>
        <input type = '<?php echo e($dbs_employees['basic_salary_html5_type']); ?>' name = "basic_salary" id = "update-basic_salary" data-maxlen='<?php echo e($dbs_employees['basic_salary_max']); ?>' data-scale='<?php echo e($dbs_employees['basic_salary_scale'] ?? ''); ?>' autocomplete = 'off'   value='<?php echo e($row->basic_salary); ?>' <?php if($dbs_employees['basic_salary_html5_req']!=''): ?> <?php echo e($dbs_employees['basic_salary_html5_req']); ?> = <?php echo e($dbs_employees['basic_salary_html5_req']); ?> <?php endif; ?> class= 'form-control'   onkeydown='validateFloatInput(event)'  oninput='validateInput(this,<?php echo e($dbs_employees['basic_salary_max']); ?>)' />
        <span class='text-danger' id='update-basic_salaryError'></span>
    </div>
</div>


<div class="col-lg-4">
    <div class="mb-3">
        <label class='form-label'><?php echo e($dbs_employees['bank_name_req']); ?><?php echo e($dbs_employees['bank_name_title']); ?>:</label>
        <input type = '<?php echo e($dbs_employees['bank_name_html5_type']); ?>' name = "bank_name" id = "update-bank_name" autocomplete = 'off' maxlength ='<?php echo e($dbs_employees['bank_name_max']); ?>'  value='<?php echo e($row->bank_name); ?>' <?php if($dbs_employees['bank_name_html5_req']!=''): ?> <?php echo e($dbs_employees['bank_name_html5_req']); ?> = <?php echo e($dbs_employees['bank_name_html5_req']); ?> <?php endif; ?> class= 'form-control'  >
        <span class='text-danger' id='update-bank_nameError'></span>
    </div>
</div>


<div class="col-lg-4">
    <div class="mb-3">
        <label class='form-label'><?php echo e($dbs_employees['bank_account_number_req']); ?><?php echo e($dbs_employees['bank_account_number_title']); ?>:</label>
        <input type = '<?php echo e($dbs_employees['bank_account_number_html5_type']); ?>' name = "bank_account_number" id = "update-bank_account_number" autocomplete = 'off' maxlength ='<?php echo e($dbs_employees['bank_account_number_max']); ?>'  value='<?php echo e($row->bank_account_number); ?>' <?php if($dbs_employees['bank_account_number_html5_req']!=''): ?> <?php echo e($dbs_employees['bank_account_number_html5_req']); ?> = <?php echo e($dbs_employees['bank_account_number_html5_req']); ?> <?php endif; ?> class= 'form-control'  >
        <span class='text-danger' id='update-bank_account_numberError'></span>
    </div>
</div>


<div class="col-lg-12">
    <div class="mb-3">
        <label class='form-label'><?php echo e($dbs_employees['address_req']); ?><?php echo e($dbs_employees['address_title']); ?>:</label>
        <textarea type = '<?php echo e($dbs_employees['address_html5_type']); ?>' name = "address" id = "update-address" autocomplete = 'off' maxlength ='<?php echo e($dbs_employees['address_max']); ?>' <?php if($dbs_employees['address_html5_req']!=''): ?> <?php echo e($dbs_employees['address_html5_req']); ?> = <?php echo e($dbs_employees['address_html5_req']); ?> <?php endif; ?> class= 'form-control'   oninput='updateCharCount(this,"update-addresscharCount")'><?php echo e($row->address); ?></textarea>
        <span class='text-danger' id='update-addresscharCount'></span> 
        <span class='text-danger' id='update-addressError'></span>
    </div>
</div>


<div class="col-lg-4">
    <div class="mb-3">
        <label class='form-label'><?php echo e($dbs_employees['picture_req']); ?><?php echo e($dbs_employees['picture_title']); ?>:</label>
        
                                <?php if(!empty($row->picture)): ?>
                                <div class="mb-3">
                                    <label class="form-label text-muted">Current Picture</label>
                                    <div class="border rounded p-2">
                                        <div class="d-flex align-items-center">
                                            <div class="flex-shrink-0 me-3">
                                                <a href="<?php echo e(asset('images/' . $row->picture)); ?>" target="_blank">
                                                    <img class="img-thumbnail rounded" src="<?php echo e(asset('images/' . $row->picture)); ?>" alt="Current Picture" style="width: 80px; height: 80px; object-fit: cover;">
                                                </a>
                                            </div>
                                            <div class="flex-grow-1">
                                                <h6 class="fs-14 mb-1">Current Image</h6>
                                                <p class="fs-13 text-muted mb-0">Click below to change</p>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <?php endif; ?>
        <div class="dropzone bg-light-subtle py-4 rounded" id="picture-dropzone-update-picture">
            <div class="fallback">
                <input type="file" id="update-picture" accept='image/*' <?php if($dbs_employees['picture_html5_req']!=''): ?> <?php echo e($dbs_employees['picture_html5_req']); ?> = <?php echo e($dbs_employees['picture_html5_req']); ?> <?php endif; ?> onchange="suResizeImage(event,'resized-update-picture','update-picture-filename'); handleImagePreview(event, 'update-picture-preview');" style="display: none;">
            </div>
            <div class="dz-message needsclick text-center" onclick="document.getElementById('update-picture').click();" style="cursor: pointer;" ondrop="event.preventDefault(); handleFileDrop(event, 'update-picture');" ondragover="event.preventDefault();" ondragenter="event.preventDefault(); this.classList.add('border-primary');" ondragleave="this.classList.remove('border-primary');">
                <i class="ri-upload-cloud-2-line fs-48 text-primary"></i>
                <h5 class="mt-3 mb-1">Drop your image here, or <span class="text-primary">click to browse</span></h5>
                <span class="text-muted fs-13">PNG, JPG and GIF files are allowed</span>
            </div>
        </div>
        <div id="update-picture-preview" class="mt-3" style="display: none;">
            <div class="border rounded p-2">
                <div class="d-flex align-items-center">
                    <div class="flex-shrink-0 me-3">
                        <div class="avatar-lg bg-light rounded">
                            <img id="update-picture-preview-img" class="img-fluid rounded d-block" src="#" alt="Preview" style="max-width: 80px; max-height: 80px; object-fit: cover;">
                        </div>
                    </div>
                    <div class="flex-grow-1">
                        <h6 class="fs-14 mb-1" id="update-picture-preview-name">Image Preview</h6>
                        <p class="fs-13 text-muted mb-0">Click above to change image</p>
                    </div>
                    <div class="flex-shrink-0">
                        <button type="button" class="btn btn-sm btn-danger" onclick="clearImagePreview('update-picture', 'update-picture-preview');">
                            <i class="ri-delete-bin-line"></i>
                        </button>
                    </div>
                </div>
            </div>
        </div>
        <div class="mt-1 text-muted fs-13">
            <?php if(!empty($getSettings['allowed_image_formats'])): ?><span><?php echo e($getSettings['allowed_image_formats']); ?></span><?php endif; ?>
            <?php if(!empty($getSettings['max_allowed_image_size'])): ?><span class="<?php if(!empty($getSettings['allowed_image_formats'])): ?> ms-1 <?php endif; ?>">(max <?php echo e($getSettings['max_allowed_image_size']); ?> KB)</span><?php endif; ?>
        </div>
        <input type='hidden' id='resized-update-picture' name='resized-picture'> 
        <input type='hidden' id='update-picture-filename' name='picture'    value='<?php echo e($row->picture); ?>'> 
        <span class='text-danger' id='update-pictureError'></span>
    </div>
</div>


<div class="col-lg-4">
    <div class="mb-3">
        <label class='form-label'><?php echo e($dbs_employees['resume_req']); ?><?php echo e($dbs_employees['resume_title']); ?>:</label>
        <input type="file" name="resume" id="update-resume" class="form-control" <?php if($dbs_employees['resume_html5_req']!=''): ?> <?php echo e($dbs_employees['resume_html5_req']); ?> = <?php echo e($dbs_employees['resume_html5_req']); ?> <?php endif; ?> >
        <div class="mt-1"><?php echo e($getSettings['allowed_file_formats'] ?? ''); ?></div>
        
<?php if(!empty($row->resume)): ?>
    <a class="underline" href="<?php echo e(asset('images/' . $row->resume)); ?>" target="_blank" download>
        <?php echo e(__('Download file')); ?>

    </a>
<?php endif; ?>
        <input type="hidden" name="previous_resume" id="previous_resume" value="<?php echo e($row->resume); ?>">
        <span class='text-danger' id='update-resumeError'></span>
    </div>
</div>

<div class="mt-2 col-xs-12 col-sm-12 col-md-12 col-lg-12">
<label class='form-label'><?php echo e($dbs_employees['skills_req']); ?><?php echo e($dbs_employees['skills_title']); ?>: </label>
 <select name="skills[]" id="update-skills" class="chosen-select form-control form-select" multiple>
    <?php
        $selectedValues = [];
        if (!empty($row->skills)) {
            $selectedValues = is_array($row->skills) ? $row->skills : explode(',', $row->skills);
        }
        $selectedValues = array_filter(array_map('trim', $selectedValues), function($v){ return $v !== ''; });
    ?>
    <?php $__currentLoopData = $skills; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $id => $name): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <option value="<?php echo e($id); ?>" <?php if(in_array((string)$id, array_map('strval', $selectedValues), true)): ?> selected <?php endif; ?>><?php echo e($name); ?></option>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</select>
<script>
    $(function() {
        $('#update-skills').chosen({
              width: '100%',
              search_contains: true
            });
        });
</script>
<span class='text-danger' id='update-skillsError'></span>
</div>

<div class="col-lg-4">
    <div class="mb-3">
        <label class='form-label'><?php echo e($dbs_employees['status_req']); ?><?php echo e($dbs_employees['status_title']); ?>:</label><br/>
        <div class="mt-2">
            <?php
            $options = $dbs_employees['status_array'];
            ?>

            <?php $__currentLoopData = $options; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <?php
                $checked = ($key == $row->status) ? 'checked="checked"' : '';
                ?>

                <label class="btn btn-outline-primary">
                    <input type="radio" name="status" value="<?php echo e($key); ?>" id="update-status" <?php echo e($checked); ?>/> <?php echo e($value); ?>

                </label>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </div>
    </div>
</div>

    
                    </div>
                    

                    <div class="p-3 mb-3 rounded">
                        <div class="row justify-content-end g-2">
                            <div class="col-lg-3">
                                <div id="edit-mode">
                                    <button type='submit' name='update-submit' id='update-submit' class='btn btn-outline-secondary w-100' data-args1='<?php echo e(route("employees.update", $row->id)); ?>' data-args2='admin/employees' onclick='addUpdate(event,"update")'>
                                        <i class="ri-save-line"></i> Save 
                                    </button>
                                </div>
                            </div>
                            <div class="col-lg-2">
                                <a href="<?php echo e(route('employees.index')); ?>" class="btn btn-primary w-100">
                                    <i class="ri-close-circle-line"></i> Cancel
                                </a>
                            </div>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>

<?php $__env->stopSection(); ?>


<?php echo $__env->make("layouts.metor.admin", \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /Applications/MAMP/htdocs/payroll/resources/views/employees/edit.blade.php ENDPATH**/ ?>