 

<?php $__env->startSection('heading', 'Staff'); ?>
<?php $__env->startSection('subheading', 'Manage staff logins and their assigned roles.'); ?>

<?php $__env->startSection('actions'); ?>
  <a href="<?php echo e(route('shop.staff.create')); ?>" class="px-4 py-2 rounded-lg text-sm font-medium text-white" style="background:#C2185B;">+ Add staff</a>
<?php $__env->stopSection(); ?>

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

<?php echo $__env->make('partials.master-tabs', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>

<?php if(session('status')): ?>
  <div class="mb-4 text-sm rounded-lg px-4 py-3" style="background:#E1F5EE; color:#0F6E56;">
    <?php echo e(session('status')); ?>

  </div>
<?php endif; ?>

<div class="card p-6">
  <table class="w-full text-sm">
    <thead>
      <tr class="text-left" style="color:#a19a8f;">
        <th class="pb-3 font-medium text-xs">Staff ID</th>
        <th class="pb-3 font-medium text-xs">Name</th>
        <th class="pb-3 font-medium text-xs">Email</th>
        <th class="pb-3 font-medium text-xs">Role</th>
        <th class="pb-3 font-medium text-xs">Status</th>
        <th class="pb-3 font-medium text-xs text-right">Actions</th>
      </tr>
    </thead>
    <tbody style="color:#1A1625;">
      <?php $__empty_1 = true; $__currentLoopData = $staff; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $member): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
        <tr class="border-t" style="border-color:#f2ece0;">
          <td class="py-3 text-xs font-medium" style="color:#5E35B1;"><?php echo e($member->staff_code ?? '—'); ?></td>
          <td class="py-3 font-medium"><?php echo e($member->name); ?></td>
          <td class="py-3"><?php echo e($member->email); ?></td>
          <td class="py-3">
            <?php if($member->role): ?>
              <span class="text-xs px-2 py-1 rounded-full" style="background:#EEEDFE; color:#5E35B1;"><?php echo e($member->role->name); ?></span>
            <?php else: ?>
              <span class="text-xs" style="color:#a19a8f;">No role assigned</span>
            <?php endif; ?>
          </td>
          <td class="py-3">
            <?php if($member->is_active): ?>
              <span class="text-xs px-2 py-1 rounded-full" style="background:#E1F5EE; color:#0F6E56;">Active</span>
            <?php else: ?>
              <span class="text-xs px-2 py-1 rounded-full" style="background:#FCEBEB; color:#791F1F;">Inactive</span>
            <?php endif; ?>
          </td>
          <td class="py-3 text-right">
            <a href="<?php echo e(route('shop.staff.edit', $member)); ?>" class="text-xs font-medium" style="color:#5E35B1;">Edit</a>
            <form method="POST" action="<?php echo e(route('shop.staff.destroy', $member)); ?>" class="inline" onsubmit="return confirm('Remove this staff member?');">
              <?php echo csrf_field(); ?> <?php echo method_field('DELETE'); ?>
              <button type="submit" class="text-xs font-medium ml-3" style="color:#C2185B;">Delete</button>
            </form>
          </td>
        </tr>
      <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
        <tr><td colspan="6" class="py-6 text-center text-sm" style="color:#a19a8f;">No staff yet.</td></tr>
      <?php endif; ?>
    </tbody>
  </table>
</div>

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

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