

<?php $__env->startSection('title', 'Payroll & Reports'); ?>

<?php $__env->startSection('content'); ?>
    <header class="page-header">
        <div>
            <p class="eyebrow">Finance</p>
            <h1>Payroll & Reports</h1>
            <p class="muted">Manage payroll and generate reports</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>
                <p class="stat-meta"><?php echo e($card['meta']); ?></p>
            </article>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    </section>

    <section class="panel">
        <div class="panel__header">
            <h2>Export Payroll Reports</h2>
        </div>
        <div class="panel__body export-grid">
            <label class="field">
                <span>Select Period</span>
                <select class="select">
                    <option>November 2025</option>
                    <option>October 2025</option>
                    <option>September 2025</option>
                </select>
            </label>
            <label class="field">
                <span>Export Format</span>
                <select class="select">
                    <option>BrightPay (Excel)</option>
                    <option>CSV</option>
                    <option>PDF</option>
                </select>
            </label>
            <div class="export-actions">
                <button class="primary-btn">Export Report</button>
                <button class="ghost-btn">Regenerate Payroll</button>
            </div>
        </div>
    </section>

    <section class="panel">
        <div class="panel__header">
            <h2>Monthly Payroll Summary</h2>
        </div>
        <div class="panel__body">
            <table class="data-table">
                <thead>
                    <tr>
                        <th>Period</th>
                        <th>Total Employees</th>
                        <th>Total Hours</th>
                        <th>Total Payroll</th>
                        <th>Status</th>
                        <th>Actions</th>
                    </tr>
                </thead>
                <tbody>
                    <?php $__currentLoopData = $summary; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <tr>
                            <td><?php echo e($row['period']); ?></td>
                            <td><?php echo e(number_format($row['employees'])); ?></td>
                            <td><?php echo e(number_format($row['hours'])); ?></td>
                            <td><?php echo e($row['total']); ?></td>
                            <td><span class="pill success"><?php echo e($row['status']); ?></span></td>
                            <td><button class="ghost-btn small">View Details</button></td>
                        </tr>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </tbody>
            </table>
        </div>
    </section>

    <section class="panel">
        <div class="panel__header">
            <h2>Employee Payroll Details - November 2025</h2>
            <button class="ghost-btn">Export</button>
        </div>
        <div class="panel__body">
            <table class="data-table">
                <thead>
                    <tr>
                        <th>Employee</th>
                        <th>Department</th>
                        <th>Hours</th>
                        <th>Rate</th>
                        <th>Gross Pay</th>
                        <th>Deductions</th>
                        <th>Net Pay</th>
                    </tr>
                </thead>
                <tbody>
                    <?php $__currentLoopData = $details; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <tr>
                            <td>
                                <div class="table-person">
                                    <div>
                                        <p><?php echo e($row['name']); ?></p>
                                        <span class="muted"><?php echo e($row['id']); ?></span>
                                    </div>
                                </div>
                            </td>
                            <td><?php echo e($row['department']); ?></td>
                            <td><?php echo e($row['hours']); ?></td>
                            <td><?php echo e($row['rate']); ?></td>
                            <td><?php echo e($row['gross']); ?></td>
                            <td><?php echo e($row['deductions']); ?></td>
                            <td><?php echo e($row['net']); ?></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/payroll.blade.php ENDPATH**/ ?>