<?php $__env->startSection('title', 'Team — TechCorp Manager'); ?>

<?php $__env->startSection('content'); ?>
<div data-tc-api-page="employees">
    <div class="tc-page-head-row">
        <div class="tc-page-head">
            <h2>Team</h2>
            <p>Employees and roles. Add and edit via the API.</p>
        </div>
        <button type="button" class="tc-btn-primary" id="tc-add-employee">+ Add employee</button>
    </div>

    <div class="tc-card">
        <div class="tc-table-wrap">
            <table class="tc-table">
                <thead>
                    <tr>
                        <th>Name</th>
                        <th>Role</th>
                        <th>Department</th>
                        <th>Email</th>
                        <th>Phone</th>
                        <th>Hire date</th>
                        <th>Salary</th>
                        <th>Status</th>
                        <th></th>
                    </tr>
                </thead>
                <tbody>
                    <?php $__empty_1 = true; $__currentLoopData = $employees; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $emp): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                        <tr>
                            <td><strong><?php echo e($emp->name); ?></strong></td>
                            <td><?php echo e($emp->role); ?></td>
                            <td><?php echo e($emp->department ?? '—'); ?></td>
                            <td><?php echo e($emp->email ?? '—'); ?></td>
                            <td><?php echo e($emp->phone ?? '—'); ?></td>
                            <td><?php echo e($emp->hire_date?->format('M j, Y') ?? '—'); ?></td>
                            <td>$<?php echo e(number_format((float) $emp->salary, 2)); ?></td>
                            <td><span class="tc-badge <?php echo e($emp->status); ?>"><?php echo e($emp->status); ?></span></td>
                            <td class="tc-table-actions">
                                <button type="button" class="tc-btn-sm tc-edit-employee" data-id="<?php echo e($emp->id); ?>">Edit</button>
                                <button type="button" class="tc-btn-sm danger tc-del-employee" data-id="<?php echo e($emp->id); ?>">Delete</button>
                            </td>
                        </tr>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                        <tr><td colspan="9" class="tc-empty">No employees yet.</td></tr>
                    <?php endif; ?>
                </tbody>
            </table>
        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\Users\pc\Desktop\compnany\laravel-api\resources\views\team\index.blade.php ENDPATH**/ ?>