<?php if (isset($component)) { $__componentOriginal9ac128a9029c0e4701924bd2d73d7f54 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54 = $attributes; } ?>
<?php $component = App\View\Components\AppLayout::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('app-layout'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\App\View\Components\AppLayout::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
     <?php $__env->slot('header', null, []); ?> <?php echo e(__('app.rosters')); ?> <?php $__env->endSlot(); ?>

    <div class="mb-3 d-flex justify-content-between align-items-center">
        <span class="text-muted small"><?php echo e($rosters->total()); ?> <?php echo e(__('entries')); ?></span>
        <a href="<?php echo e(route('rosters.create')); ?>" class="btn btn-primary btn-sm">
            <i class="bi bi-calendar-plus me-1"></i><?php echo e(__('Add Roster')); ?>

        </a>
    </div>

    <div class="card shadow-sm">
        <div class="card-body p-0">
            <div class="table-responsive">
                <table class="table table-hover align-middle mb-0">
                    <thead class="table-dark">
                        <tr>
                            <th>#</th>
                            <th><?php echo e(__('Employee')); ?></th>
                            <th><?php echo e(__('Duty Date')); ?></th>
                            <th><?php echo e(__('Shift')); ?></th>
                            <th><?php echo e(__('Time')); ?></th>
                            <th><?php echo e(__('Duty Title')); ?></th>
                            <th><?php echo e(__('Notes')); ?></th>
                            <th class="text-end"><?php echo e(__('Actions')); ?></th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php $__empty_1 = true; $__currentLoopData = $rosters; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $roster): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                            <tr>
                                <td><?php echo e($loop->iteration); ?></td>
                                <td><strong><?php echo e($roster->employee->name ?? '-'); ?></strong></td>
                                <td><?php echo e($roster->duty_date); ?></td>
                                <td><span class="badge bg-info text-dark text-capitalize"><?php echo e($roster->shift); ?></span></td>
                                <td><?php echo e($roster->starts_at ? $roster->starts_at . ' - ' . $roster->ends_at : '-'); ?></td>
                                <td><?php echo e($roster->duty_title ?? '-'); ?></td>
                                <td><?php echo e($roster->notes ?? '-'); ?></td>
                                <td class="text-end">
                                    <form method="POST" action="<?php echo e(route('rosters.destroy', $roster)); ?>" class="d-inline" onsubmit="return confirm('Delete this entry?')">
                                        <?php echo csrf_field(); ?> <?php echo method_field('DELETE'); ?>
                                        <button class="btn btn-sm btn-outline-danger"><i class="bi bi-trash"></i></button>
                                    </form>
                                </td>
                            </tr>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                            <tr><td colspan="8" class="text-center text-muted py-4">No roster entries found.</td></tr>
                        <?php endif; ?>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
    <div class="mt-3"><?php echo e($rosters->links()); ?></div>
 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54)): ?>
<?php $attributes = $__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54; ?>
<?php unset($__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal9ac128a9029c0e4701924bd2d73d7f54)): ?>
<?php $component = $__componentOriginal9ac128a9029c0e4701924bd2d73d7f54; ?>
<?php unset($__componentOriginal9ac128a9029c0e4701924bd2d73d7f54); ?>
<?php endif; ?>
<?php /**PATH C:\Users\anwar\OneDrive\Desktop\Babu KSA\software\restaurant-management\resources\views/rosters/index.blade.php ENDPATH**/ ?>