<?php
    use Illuminate\Support\Str;
?>

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

<?php $__env->startSection('content'); ?>
    <header class="page-header">
        <div>
            <p class="eyebrow">Talent</p>
            <h1>Application Tracking</h1>
            <p class="muted">Monitor and manage job applications</p>
        </div>
    </header>

    <?php
        $statIcons = [
            'inbox' => '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><rect x="2" y="4" width="20" height="16" rx="2" /><path d="M2 13h5l2 3h6l2-3h5" /></svg>',
            'paper-plane' => '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="m22 2-7 20-4-9-9-4Z" /><path d="M22 2 11 13" /></svg>',
            'star' => '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2" /></svg>',
            'chat' => '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5Z" /></svg>',
            'check' => '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5" /></svg>',
        ];
    ?>

    <section class="card-grid five-col">
        <?php $__currentLoopData = $applicationCards; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $card): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <article class="stat-card compact stat-card--metric"
                style="--card-accent-soft: <?php echo e($card['accent_soft'] ?? 'var(--accent-soft)'); ?>; --card-accent: <?php echo e($card['accent'] ?? 'var(--accent)'); ?>;">
                <div class="stat-card__icon" aria-hidden="true">
                    <?php echo $statIcons[$card['icon']] ?? ''; ?>

                </div>
                <div class="stat-card__content">
                    <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; ?>
                </div>
            </article>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    </section>

    <section class="toolbar toolbar--filters toolbar--applications">
        <div class="toolbar__search full">
            <input type="search" placeholder="Search by name, job or location..." class="input">
        </div>
        <div class="tabs">
            <?php $__currentLoopData = $applicationFilters; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $filter): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <button class="tab <?php echo e($filter['active'] ? 'active' : ''); ?>">
                    <?php echo e($filter['label']); ?>

                    <span class="tab__count"><?php echo e($filter['count']); ?></span>
                </button>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </div>
    </section>

    <section class="panel panel--table">
        <div class="panel__body">
            <table class="data-table data-table--applications">
                <thead>
                    <tr>
                        <th>Applicant</th>
                        <th>Contact</th>
                        <th>Job Position</th>
                        <th>Experience</th>
                        <th>Location</th>
                        <th>Applied Date</th>
                        <th>Status</th>
                        <th>Actions</th>
                    </tr>
                </thead>
                <tbody>
                    <?php $__currentLoopData = $applications; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $application): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <tr>
                            <td>
                                <div class="table-person">
                                    <span class="avatar small"><?php echo e($application['initials']); ?></span>
                                    <div>
                                        <p><?php echo e($application['name']); ?></p>
                                        <span class="muted"><?php echo e($application['code']); ?></span>
                                    </div>
                                </div>
                            </td>
                            <td>
                                <p><?php echo e($application['email']); ?></p>
                                <span class="muted"><?php echo e($application['phone']); ?></span>
                            </td>
                            <td><?php echo e($application['position']); ?></td>
                            <td><?php echo e($application['experience']); ?></td>
                            <td><?php echo e($application['location']); ?></td>
                            <td><span class="table-date"><?php echo e($application['date']); ?></span></td>
                            <td>
                                <span class="pill pill--status pill--<?php echo e(Str::slug($application['status'])); ?>"><?php echo e($application['status']); ?></span>
                            </td>
                            <td>
                                <div class="table-actions table-actions--stacked">
                                    <button class="icon-btn icon-btn--round" aria-label="View application">
                                        <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
                                            <path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z" />
                                            <circle cx="12" cy="12" r="3" />
                                        </svg>
                                    </button>
                                    <button class="icon-btn icon-btn--round" aria-label="Send message">
                                        <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
                                            <path d="M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5Z" />
                                        </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 C:\Users\HP15s-fd\Desktop\Figma hr\hr-admin\resources\views/admin/applications.blade.php ENDPATH**/ ?>