<?php $__env->startSection('title','Salary & Incentive'); ?>
<?php $__env->startSection('content'); ?>
<div class="page-head"><div><h1 class="page-title">Salary & Incentive</h1><div class="page-subtitle">Salary payment, commission and incentive tracking</div></div></div>
<form method="POST" class="card panel-tight grid-4"><?php echo csrf_field(); ?><div><label>Staff</label><select name="staff_id"><?php $__currentLoopData = $staffs; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $staff): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><option value="<?php echo e($staff->id); ?>"><?php echo e($staff->name); ?></option><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?></select></div><div><label>Month</label><input name="payment_month" placeholder="2026-03"></div><div><label>Gross Salary</label><input type="number" step="0.01" name="gross_salary"></div><div><label>Commission</label><input type="number" step="0.01" name="commission_amount"></div><div><label>Incentive</label><input type="number" step="0.01" name="incentive_amount"></div><div><label>Deduction</label><input type="number" step="0.01" name="deduction_amount"></div><div><label>Net Salary</label><input type="number" step="0.01" name="net_salary"></div><div><label>Paid Date</label><input type="date" name="paid_date" value="<?php echo e(date('Y-m-d')); ?>"></div><div><label>Method</label><input name="payment_method" value="Cash"></div><div style="grid-column: span 3"><label>Notes</label><input name="notes"></div><div class="form-actions" style="grid-column:1/-1"><button class="btn primary">Save Salary Payment</button></div></form><div class="card panel-tight table-wrap"><table class="table"><thead><tr><th>Month</th><th>Staff ID</th><th>Gross</th><th>Net</th><th>Paid</th></tr></thead><tbody><?php $__empty_1 = true; $__currentLoopData = $payments; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $payment): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?><tr><td><?php echo e($payment->payment_month); ?></td><td><?php echo e($payment->staff_id); ?></td><td><?php echo e($payment->gross_salary); ?></td><td><?php echo e($payment->net_salary); ?></td><td><?php echo e($payment->paid_date); ?></td></tr><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?><tr><td colspan="5">No payments found.</td></tr><?php endif; ?></tbody></table><?php echo e($payments->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/salary.blade.php ENDPATH**/ ?>