<?php $__env->startSection('title','HR / Staff Management'); ?>
<?php $__env->startSection('content'); ?>
<div class="page-head"><div><h1 class="page-title">HR / Staff Management</h1><div class="page-subtitle">Staff, target, incentive, branch assignment and NFC attendance settings</div></div></div>
<form method="POST" action="<?php echo e(route('admin.staff.store')); ?>" class="card panel-tight grid-4">
    <?php echo csrf_field(); ?>
    <div><label>Branch</label><select name="branch_id"><option value="">Select</option><?php $__currentLoopData = $branches; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $branch): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><option value="<?php echo e($branch->id); ?>"><?php echo e($branch->name); ?></option><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?></select></div>
    <div><label>Name</label><input name="name" required></div>
    <div><label>Employee Code</label><input name="employee_code" required></div>
    <div><label>NFC UID</label><input name="nfc_uid" placeholder="Card/Tag UID"></div>
    <div><label>Phone</label><input name="phone"></div>
    <div><label>Email</label><input name="email"></div>
    <div><label>Designation</label><input name="designation"></div>
    <div><label>Department</label><input name="department"></div>
    <div><label>Status</label><select name="status"><option>Active</option><option>Inactive</option></select></div>
    <div><label>Salary</label><input type="number" step="0.01" name="salary"></div>
    <div><label>Commission %</label><input type="number" step="0.01" name="commission_percent"></div>
    <div><label>Incentive</label><input type="number" step="0.01" name="incentive_amount"></div>
    <div><label>KPI Target</label><input type="number" step="0.01" name="kpi_target_amount"></div>
    <div><label>Join Date</label><input type="date" name="join_date"></div>
    <div><label>Office Start</label><input type="time" name="office_start_time" value="09:00"></div>
    <div><label>Office End</label><input type="time" name="office_end_time" value="18:00"></div>
    <div><label>Late Grace (Min)</label><input type="number" name="late_grace_minutes" value="15" min="0"></div>
    <div style="grid-column: span 4"><label>Notes</label><input name="notes"></div>
    <div class="form-actions" style="grid-column:1/-1"><button class="btn primary">Save Staff</button><a class="btn" href="<?php echo e(route('admin.staff.attendance')); ?>">Attendance</a><a class="btn" href="<?php echo e(route('admin.staff.salary')); ?>">Salary</a></div>
</form>
<div class="card panel-tight table-wrap"><table class="table"><thead><tr><th>Name</th><th>Code</th><th>NFC UID</th><th>Designation</th><th>Shift</th><th>Grace</th><th>Salary</th><th>Commission</th><th>KPI</th></tr></thead><tbody><?php $__empty_1 = true; $__currentLoopData = $staffs; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $staff): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?><tr><td><?php echo e($staff->name); ?></td><td><?php echo e($staff->employee_code); ?></td><td><?php echo e($staff->nfc_uid ?: '—'); ?></td><td><?php echo e($staff->designation); ?></td><td><?php echo e($staff->office_start_time ?: '09:00'); ?> - <?php echo e($staff->office_end_time ?: '18:00'); ?></td><td><?php echo e($staff->late_grace_minutes ?? 15); ?> min</td><td><?php echo e($staff->salary); ?></td><td><?php echo e($staff->commission_percent); ?>%</td><td><?php echo e($staff->kpi_target_amount); ?></td></tr><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?><tr><td colspan="9">No staff found.</td></tr><?php endif; ?></tbody></table><?php echo e($staffs->links()); ?></div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('admin.layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH J:\xampp\htdocs\pos\resources\views/admin/staff/index.blade.php ENDPATH**/ ?>