<div class="employee-form">

    
    <div class="employee-section mb-5">
        <div class="employee-section-body">

            <div class="employee-section-header mb-4">
                <h5 class="employee-section-title">Identity</h5>
                <p class="employee-section-subtitle">Personal and demographic information</p>
            </div>

            <!-- Profile Picture Upload -->
            <div class="row mb-5">
                <div class="col-12 text-center">
                    <div class="position-relative d-inline-block">
                        <?php
                            $avatar = isset($employee->profile_picture) && $employee->profile_picture 
                                ? asset('storage/' . $employee->profile_picture) 
                                : 'https://ui-avatars.com/api/?name=' . ($employee->first_name ?? 'User') . '&background=random&size=150';
                        ?>
                        <img src="<?php echo e($avatar); ?>" 
                             id="profile-preview"
                             class="rounded-circle img-thumbnail shadow-sm" 
                             style="width: 150px; height: 150px; object-fit: cover; border: 4px solid #fff;">
                        
                        <label for="profile_picture" 
                               class="position-absolute bottom-0 end-0 bg-primary text-white rounded-circle d-flex align-items-center justify-content-center shadow" 
                               style="width: 40px; height: 40px; cursor: pointer; border: 2px solid #fff; transition: all 0.2s;"
                               onmouseover="this.style.transform='scale(1.1)'"
                               onmouseout="this.style.transform='scale(1)'">
                            <i class="fas fa-camera"></i>
                        </label>
                        <input type="file" name="profile_picture" id="profile_picture" class="d-none" accept="image/*" onchange="previewImage(this)">
                    </div>
                    <div class="mt-2 text-muted small">Allowed: JPG, PNG. Max: 2MB</div>
                </div>
            </div>
            
            <script>
                function previewImage(input) {
                    if (input.files && input.files[0]) {
                        var reader = new FileReader();
                        reader.onload = function(e) {
                            document.getElementById('profile-preview').src = e.target.result;
                        }
                        reader.readAsDataURL(input.files[0]);
                    }
                }
            </script>

            <div class="row mb-4">
                <div class="col-md-3 form-group">
                    <label>Branch</label>
                    <select name="branch_id" class="form-control">
                        <?php $__currentLoopData = $branches; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $b): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <option value="<?php echo e($b->id); ?>" <?php if(($employee->branch_id ?? '') == $b->id): echo 'selected'; endif; ?>>
                                <?php echo e($b->name); ?>

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

                <div class="col-md-3 form-group">
                    <label>Employee Code <span class="text-danger">*</span></label>
                    <input type="text" name="employee_code" class="form-control" required
                           value="<?php echo e($employee->employee_code ?? ''); ?>">
                </div>

                 <div class="col-md-3 form-group">
                    <label>EPF No <span class="text-danger">*</span></label>
                    <input type="text" name="epf_no" class="form-control" required
                           value="<?php echo e($employee->epf_no ?? ''); ?>">
                </div>

                <div class="col-md-3 form-group">
                    <label>Status <span class="text-danger">*</span></label>
                    <select name="status" class="form-control" required>
                        <option value="active" <?php if(($employee->status ?? '') === 'active'): echo 'selected'; endif; ?>>Active</option>
                        <option value="inactive" <?php if(($employee->status ?? '') === 'inactive'): echo 'selected'; endif; ?>>Inactive</option>
                    </select>
                </div>
            </div>

            <div class="row mb-4">
                <div class="col-md-3 form-group">
                    <label>First Name <span class="text-danger">*</span></label>
                    <input type="text" name="first_name" class="form-control" required
                           value="<?php echo e($employee->first_name ?? ''); ?>">
                </div>

                <div class="col-md-3 form-group">
                    <label>Middle Name</label>
                    <input type="text" name="middle_name" class="form-control"
                           value="<?php echo e($employee->middle_name ?? ''); ?>">
                </div>

                <div class="col-md-3 form-group">
                    <label>Last Name <span class="text-danger">*</span></label>
                    <input type="text" name="last_name" class="form-control" required
                           value="<?php echo e($employee->last_name ?? ''); ?>">
                </div>

                <div class="col-md-3 form-group">
                    <label>Gender <span class="text-danger">*</span></label>
                    <select name="gender_id" class="form-control" required>
                        <option value="">-- Select --</option>
                        <?php $__currentLoopData = $genders; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $c): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <option value="<?php echo e($c->id); ?>" <?php if(($employee->gender_id ?? '') == $c->id): echo 'selected'; endif; ?>>
                                <?php echo e($c->name); ?>

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

            </div>

            <div class="row mb-4">
                <div class="col-md-3 form-group">
                    <label>Date of Birth</label>
                    <input type="date" name="date_of_birth" class="form-control"
                           value="<?php echo e($employee->date_of_birth ?? ''); ?>">
                </div>

                <div class="col-md-3 form-group">
                    <label>Nationality <span class="text-danger">*</span></label>
                    <select name="nationality_id" class="form-control" required>
                        <?php $__currentLoopData = $countries; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $c): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <option value="<?php echo e($c->id); ?>" <?php if(($employee->nationality_id ?? '') == $c->id): echo 'selected'; endif; ?>>
                                <?php echo e($c->name); ?>

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

                 <div class="col-md-3 form-group">
                    <label>Religion <span class="text-danger">*</span></label>
                    <select name="religion_id" class="form-control" required>
                        <?php $__currentLoopData = $religions; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $c): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <option value="<?php echo e($c->id); ?>" <?php if(($employee->religion_id ?? '') == $c->id): echo 'selected'; endif; ?>>
                                <?php echo e($c->name); ?>

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

               <div class="col-md-3 form-group">
                    <label>Marital Status <span class="text-danger">*</span></label>
                    <select name="marital_status_id" class="form-control" required>
                        <option value="">-- Select --</option>
                        <?php $__currentLoopData = $marital_status; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $data): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <option value="<?php echo e($data->id); ?>"
                                <?php if(($employee->marital_status_id ?? '') == $data->id): echo 'selected'; endif; ?>>
                                <?php echo e($data->name); ?>

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


                <div class="col-md-3 form-group">
                    <label>Blood Group</label>
                    <select name="blood_group_id" class="form-control">
                        <option value="">-- Select --</option>
                        <?php $__currentLoopData = $blood_groups; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $data): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <option value="<?php echo e($data->id); ?>"  <?php if(($employee->blood_group_id ?? '') ==  $data->id ): echo 'selected'; endif; ?>><?php echo e($data->name); ?></option>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </select>
                </div>

            </div>

        </div>
    </div>

    
    <div class="employee-section mb-5">
        <div class="employee-section-body">

            <div class="employee-section-header mb-4">
                <h5 class="employee-section-title">Employment</h5>
                <p class="employee-section-subtitle">Job role and employment lifecycle</p>
            </div>

            <h6 class="text-muted mb-3">Job Assignment</h6>
            <div class="row mb-4">
                <div class="col-md-3 form-group">
                    <label>Department <span class="text-danger">*</span></label>
                    <select name="department_id" class="form-control" required>
                        <option value="">-- Select --</option>
                        <?php $__currentLoopData = $departments; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $d): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <option value="<?php echo e($d->id); ?>" <?php if(($employee->department_id ?? '') == $d->id): echo 'selected'; endif; ?>>
                                <?php echo e($d->name); ?>

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

                <div class="col-md-3 form-group">
                    <label>Designation <span class="text-danger">*</span></label>
                    <select name="designation_id" class="form-control" required>
                        <option value="">-- Select --</option>
                        <?php $__currentLoopData = $designations; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $des): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <option value="<?php echo e($des->id); ?>" <?php if(($employee->designation_id ?? '') == $des->id): echo 'selected'; endif; ?>>
                                <?php echo e($des->name); ?>

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

                <div class="col-md-3 form-group">
                    <label>Team <span class="text-danger">*</span></label>
                    <select name="team_id" class="form-control" required>
                        <option value="">-- Select --</option>
                        <?php $__currentLoopData = $teams; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $team): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <option value="<?php echo e($team->id); ?>" <?php if(($employee->team_id ?? '') == $team->id): echo 'selected'; endif; ?>>
                                <?php echo e($team->name); ?>

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

                <div class="col-md-3 form-group">
                    <label>Grade <span class="text-danger">*</span></label>
                    <select name="grade_id" class="form-control" required>
                        <option value="">-- Select --</option>
                        <?php $__currentLoopData = $grades; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $g): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <option value="<?php echo e($g->id); ?>" <?php if(($employee->grade_id ?? '') == $g->id): echo 'selected'; endif; ?>>
                                <?php echo e($g->name); ?>

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

            <h6 class="text-muted mb-3">Employment Details</h6>
            <div class="row mb-4">
                <div class="col-md-3 form-group">
                    <label>Payroll Group <span class="text-danger">*</span></label>
                    <select name="payroll_group_id" class="form-control" required>
                        <option value="">-- Select --</option>
                        <?php $__currentLoopData = $payrollGroups; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $pg): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <option value="<?php echo e($pg->id); ?>" <?php if(($employee->payroll_group_id ?? '') == $pg->id): echo 'selected'; endif; ?>>
                                <?php echo e($pg->name); ?>

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

                <div class="col-md-3 form-group">
                    <label>Employment Type <span class="text-danger">*</span></label>
                    <select name="employment_type_id" class="form-control" required>
                        <option value="">-- Select --</option>
                        <?php $__currentLoopData = $employmentTypes; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $e): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <option value="<?php echo e($e->id); ?>" <?php if(($employee->employment_type_id ?? '') == $e->id): echo 'selected'; endif; ?>>
                                <?php echo e($e->name); ?>

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

                <div class="col-md-3 form-group">
                    <label>Shift Segment <span class="text-danger">*</span></label>
                    <select name="shift_segment_id" class="form-control" required>
                        <option value="">-- Select --</option>
                        <?php $__currentLoopData = $shifts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $s): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <option value="<?php echo e($s->id); ?>" <?php if(($employee->shift_segment_id ?? '') == $s->id): echo 'selected'; endif; ?>>
                                <?php echo e($s->name); ?>

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

                <div class="col-md-3 form-group">
                    <label>Date of Joining <span class="text-danger">*</span></label>
                    <input type="date" name="date_of_joining" class="form-control" required
                           value="<?php echo e($employee->date_of_joining ?? ''); ?>">
                </div>
            </div>

            <div class="row mb-2">
                <div class="col-md-3 form-group">
                    <label>Salary Type <span class="text-danger">*</span></label>
                    <select name="salary_type" class="form-control">
                        <option value="">-- Select --</option>
                        <option value="monthly_basic" <?php if(($employee->salary_type ?? '') === 'monthly_basic'): echo 'selected'; endif; ?>>Monthly Basic</option>
                        <option value="weekly_basic" <?php if(($employee->salary_type ?? '') === 'weekly_basic'): echo 'selected'; endif; ?>>Weekly Basic</option>
                        <option value="daily_basic" <?php if(($employee->salary_type ?? '') === 'daily_basic'): echo 'selected'; endif; ?>>Daily Basic</option>
                    </select>
                </div>

                <div class="col-md-3 form-group">
                    <label>Salary <span class="text-danger">*</span></label>
                    <input type="number" name="basic_salary" class="form-control" required step="0.01"
                           value="<?php echo e($employee->basic_salary ?? ''); ?>">
                </div>
            </div>

        </div>
    </div>

    
    <div class="employee-section mb-5">
        <div class="employee-section-body">
            <div class="employee-section-header mb-4">
                <h5 class="employee-section-title">Contact</h5>
            </div>

            <div class="row mb-4">
                <div class="col-md-3 form-group">
                    <label>Official Email</label>
                    <input type="email" name="official_email" class="form-control"
                           value="<?php echo e($employee->official_email ?? ''); ?>">
                </div>

                <div class="col-md-3 form-group">
                    <label>Personal Email</label>
                    <input type="email" name="personal_email" class="form-control"
                           value="<?php echo e($employee->personal_email ?? ''); ?>">
                </div>

                <div class="col-md-3 form-group">
                    <label>Mobile Number</label>
                    <input type="text" name="mobile_number" class="form-control"
                           value="<?php echo e($employee->mobile_number ?? ''); ?>">
                </div>

                <div class="col-md-3 form-group">
                    <label>Alternate Phone</label>
                    <input type="text" name="alternate_phone" class="form-control"
                           value="<?php echo e($employee->alternate_phone ?? ''); ?>">
                </div>
            </div>
        </div>
    </div>

    
    <div class="employee-section mb-5">
        <div class="employee-section-body">
            <div class="employee-section-header mb-4">
                <h5 class="employee-section-title">Address</h5>
            </div>

            <h6 class="text-muted mb-3">Current Address</h6>
            <div class="row mb-4">
                <div class="col-md-3 form-group">
                    <label>Address Line 1</label>
                    <input type="text" name="current_address_line1" class="form-control"
                           value="<?php echo e($employee->current_address_line1 ?? ''); ?>">
                </div>

                <div class="col-md-3 form-group">
                    <label>Address Line 2</label>
                    <input type="text" name="current_address_line2" class="form-control"
                           value="<?php echo e($employee->current_address_line2 ?? ''); ?>">
                </div>

                <div class="col-md-3 form-group">
                    <label>City</label>
                    <select name="current_city_id" class="form-control">
                        <option value="">-- Select --</option>
                        <?php $__currentLoopData = $cities; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $c): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <option value="<?php echo e($c->id); ?>" <?php if(($employee->current_city_id ?? '') == $c->id): echo 'selected'; endif; ?>>
                                <?php echo e($c->name); ?>

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

                <div class="col-md-3 form-group">
                    <label>Postal Code</label>
                    <input type="text" name="current_postal_code" class="form-control"
                           value="<?php echo e($employee->current_postal_code ?? ''); ?>">
                </div>
            </div>

            <div class="form-group mb-4">
                <label>
                    <input type="checkbox" name="same_as_current" value="1"
                           <?php echo e(($employee->same_as_current ?? true) ? 'checked' : ''); ?>>
                    Permanent address same as current
                </label>
            </div>

            <h6 class="text-muted mb-3">Permanent Address</h6>
            <div class="row mb-2">
                <div class="col-md-3 form-group">
                    <label>Address Line 1</label>
                    <input type="text" name="permanent_address_line1" class="form-control"
                           value="<?php echo e($employee->permanent_address_line1 ?? ''); ?>">
                </div>

                <div class="col-md-3 form-group">
                    <label>Address Line 2</label>
                    <input type="text" name="permanent_address_line2" class="form-control"
                           value="<?php echo e($employee->permanent_address_line2 ?? ''); ?>">
                </div>

                <div class="col-md-3 form-group">
                    <label>City</label>
                    <select name="permanent_city_id" class="form-control">
                        <option value="">-- Select --</option>
                        <?php $__currentLoopData = $cities; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $c): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <option value="<?php echo e($c->id); ?>" <?php if(($employee->permanent_city_id ?? '') == $c->id): echo 'selected'; endif; ?>>
                                <?php echo e($c->name); ?>

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

                <div class="col-md-3 form-group">
                    <label>Postal Code</label>
                    <input type="text" name="permanent_postal_code" class="form-control"
                           value="<?php echo e($employee->permanent_postal_code ?? ''); ?>">
                </div>
            </div>

        </div>
    </div>

    
    <div class="employee-section mb-5">
        <div class="employee-section-body">
            <div class="employee-section-header mb-4">
                <h5 class="employee-section-title">Banking</h5>
            </div>

            <div class="row mb-4">
                <div class="col-md-3 form-group">
                    <label>Bank</label>
                    <select name="bank_id" id="bank_id" class="form-control">
                        <option value="">-- Select --</option>
                        <?php $__currentLoopData = $banks; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $b): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <option value="<?php echo e($b->id); ?>" <?php if(($employee->bank_id ?? '') == $b->id): echo 'selected'; endif; ?>>
                                <?php echo e($b->name); ?>

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

                <div class="col-md-3 form-group">
                    <label>Bank Branch</label>
                    <select name="bank_branch_id" id="bank_branch_id" class="form-control">
                        <option value="">-- Select Bank First --</option>
                    </select>
                </div>

                <div class="col-md-3 form-group">
                    <label>Account Holder Name</label>
                    <input type="text" name="account_holder_name" class="form-control"
                           value="<?php echo e($employee->account_holder_name ?? ''); ?>">
                </div>

                <div class="col-md-3 form-group">
                    <label>Account Number</label>
                    <input type="text" name="account_number" class="form-control"
                           value="<?php echo e($employee->account_number ?? ''); ?>">
                </div>
            </div>

            <div class="row mb-2">
                <div class="col-md-3 form-group">
                    <label>Account Type</label>
                    <select name="account_type" class="form-control">
                        <option value="">-- Select --</option>
                        <option value="savings" <?php if(($employee->account_type ?? '') === 'savings'): echo 'selected'; endif; ?>>Savings</option>
                        <option value="current" <?php if(($employee->account_type ?? '') === 'current'): echo 'selected'; endif; ?>>Current</option>
                    </select>
                </div>

                <div class="col-md-3 form-group">
                    <label>Payment Method</label>
                    <select name="payment_method_id" class="form-control">
                        <option value="">-- Select --</option>
                        <?php $__currentLoopData = $paymentMethods; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $p): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <option value="<?php echo e($p->id); ?>" <?php if(($employee->payment_method_id ?? '') == $p->id): echo 'selected'; endif; ?>>
                                <?php echo e($p->name); ?>

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

        </div>
    </div>

    
    <div class="employee-section mb-5">
        <div class="employee-section-body">
            <div class="employee-section-header mb-4">
                <h5 class="employee-section-title">Statutory</h5>
            </div>

            <div class="row mb-2">
                <div class="col-md-3 form-group">
                    <label>Identification Type</label>
                    <select name="identification_type_id" class="form-control">
                        <option value="">-- Select --</option>
                        <?php $__currentLoopData = $identificationTypes; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $i): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <option value="<?php echo e($i->id); ?>" <?php if(($employee->identification_type_id ?? '') == $i->id): echo 'selected'; endif; ?>>
                                <?php echo e($i->name); ?>

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

                <div class="col-md-3 form-group">
                    <label>Identification Number</label>
                    <input type="text" name="identification_number" class="form-control"
                           value="<?php echo e($employee->identification_number ?? ''); ?>">
                </div>

                <div class="col-md-3 form-group">
                    <label>Tax Number</label>
                    <input type="text" name="tax_number" class="form-control"
                           value="<?php echo e($employee->tax_number ?? ''); ?>">
                </div>

                <div class="col-md-3 form-group">
                    <label>Social Security Number</label>
                    <input type="text" name="social_security_number" class="form-control"
                           value="<?php echo e($employee->social_security_number ?? ''); ?>">
                </div>
            </div>

        </div>
    </div>

    
    <div class="employee-section mb-3">
        <div class="employee-section-body">
            <div class="employee-section-header mb-4">
                <h5 class="employee-section-title">Custom Fields</h5>
            </div>

            <div class="row">
                <?php $__currentLoopData = $dynamicAttributes; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $attr): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <?php
                        if(isset($employee)){
                        $value = $employee->dynamicAttributeValues
                            ->firstWhere('dynamic_attribute_id', $attr->id)->value ?? '';
                        }else{
                            $value ='';
                        }
                    ?>
                    <div class="col-md-4 form-group mb-4">
                        <label>
                            <?php echo e($attr->name); ?>

                            <?php if($attr->mandatory): ?>
                                <span class="text-danger">*</span>
                            <?php endif; ?>
                        </label>
                        <input type="text"
                               name="dynamic_attributes[<?php echo e($attr->id); ?>]"
                               class="form-control"
                               value="<?php echo e($value); ?>"
                               <?php echo e($attr->mandatory ? 'required' : ''); ?>>
                    </div>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </div>

        </div>
    </div>

</div>
<?php /**PATH /home/codeproh/va.laraoffice.com/app/Modules/HR/Core/Providers/../Views/employees/partials/master.blade.php ENDPATH**/ ?>