

<?php $__env->startSection('title', 'Attendance'); ?>

<?php $__env->startSection('content'); ?>
    <header class="page-header">
        <div>
            <p class="eyebrow">Presence</p>
            <h1>Attendance Management</h1>
            <p class="muted">Review and approve employee attendance</p>
        </div>
    </header>

    <section class="card-grid four-col">
        <?php $__currentLoopData = $cards; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $card): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <article class="stat-card compact">
                <p class="muted"><?php echo e($card['label']); ?></p>
                <h3><?php echo e($card['value']); ?></h3>
                <?php if(isset($card['meta'])): ?>
                    <p class="stat-meta"><?php echo e($card['meta']); ?></p>
                <?php endif; ?>
            </article>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    </section>

    <section class="tabs">
        <?php $__currentLoopData = $tabs; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $tab): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <button class="tab <?php echo e($tab['active'] ? 'active' : ''); ?>"><?php echo e($tab['label']); ?></button>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    </section>

    <section class="toolbar">
        <div class="toolbar__search">
            <input type="search" placeholder="Search by employee name or ID..." class="input">
        </div>
        <div class="toolbar__filters">
            <div class="input-wrapper">
                <input type="text" placeholder="dd/mm/yyyy" class="input">
                <span class="input-icon">
                    <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" width="16" height="16">
                        <rect x="3" y="4" width="18" height="18" rx="2" ry="2"/>
                        <line x1="16" y1="2" x2="16" y2="6"/>
                        <line x1="8" y1="2" x2="8" y2="6"/>
                        <line x1="3" y1="10" x2="21" y2="10"/>
                    </svg>
                </span>
            </div>
        </div>
        <div class="toolbar__actions">
            <button class="ghost-btn ghost-btn--icon">
                <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" width="16" height="16">
                    <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/>
                    <polyline points="7 10 12 15 17 10"/>
                    <line x1="12" y1="15" x2="12" y2="3"/>
                </svg>
                Export Report
            </button>
        </div>
    </section>

    <section class="panel">
        <div class="panel__body">
            <table class="data-table">
                <thead>
                    <tr>
                        <th>Employee</th>
                        <th>Date</th>
                        <th>Check In</th>
                        <th>Check Out</th>
                        <th>Shift</th>
                        <th>Location</th>
                        <th>Hours</th>
                        <th>Status</th>
                        <th>Actions</th>
                    </tr>
                </thead>
                <tbody>
                    <?php $__currentLoopData = $attendance; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $record): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <tr>
                            <td>
                                <div class="table-person">
                                    <span class="avatar small"><?php echo e($record['initials']); ?></span>
                                    <div>
                                        <p><?php echo e($record['name']); ?></p>
                                        <span class="muted"><?php echo e($record['id']); ?></span>
                                    </div>
                                </div>
                            </td>
                            <td><p class="table-date"><?php echo e($record['date']); ?></p></td>
                            <td><?php echo e($record['check_in']); ?></td>
                            <td><?php echo e($record['check_out']); ?></td>
                            <td><?php echo e($record['shift']); ?></td>
                            <td><?php echo e($record['location']); ?></td>
                            <td><?php echo e($record['hours']); ?></td>
                            <td>
                                <span class="pill warning"><?php echo e($record['status']); ?></span>
                            </td>
                            <td>
                                <div class="table-actions table-actions--stacked">
                                    <button class="icon-btn icon-btn--round icon-btn--success" aria-label="Approve" title="Approve">
                                        <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
                                            <path d="M20 6 9 17l-5-5"/>
                                        </svg>
                                    </button>
                                    <button class="icon-btn icon-btn--round icon-btn--danger" aria-label="Reject" title="Reject">
                                        <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
                                            <line x1="18" y1="6" x2="6" y2="18"/>
                                            <line x1="6" y1="6" x2="18" y2="18"/>
                                        </svg>
                                    </button>
                                </div>
                            </td>
                        </tr>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </tbody>
            </table>
        </div>
    </section>
<?php $__env->stopSection(); ?>



<?php echo $__env->make('layouts.admin', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home/aibiyncv/sol.aibitsol.com/Figma hr/hr-admin/resources/views/admin/attendance.blade.php ENDPATH**/ ?>