<?php $__env->startSection('header', 'Manage Services'); ?>
<?php $__env->startSection('content'); ?>
<div class="mb-4 flex justify-between">
    <a href="<?php echo e(route('admin.services.create')); ?>" class="bg-teal-600 text-white px-4 py-2 rounded">Add Service</a>
</div>
<div class="bg-white rounded shadow overflow-x-auto">
    <table class="w-full whitespace-nowrap">
        <thead>
            <tr class="text-left font-bold bg-gray-50 border-b">
                <th class="px-6 py-3">Title</th>
                <th class="px-6 py-3">Slug</th>
                <th class="px-6 py-3">Status</th>
                <th class="px-6 py-3">Actions</th>
            </tr>
        </thead>
        <tbody>
            <?php $__currentLoopData = $services; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $service): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <tr class="border-b focus-within:bg-gray-100 hover:bg-gray-100">
                <td class="px-6 py-4"><?php echo e($service->title); ?></td>
                <td class="px-6 py-4"><?php echo e($service->slug); ?></td>
                <td class="px-6 py-4"><?php echo e($service->is_active ? 'Active' : 'Inactive'); ?></td>
                <td class="px-6 py-4 flex space-x-2">
                    <a href="<?php echo e(route('admin.services.edit', $service)); ?>" class="text-indigo-600 hover:text-indigo-900">Edit</a>
                    <form action="<?php echo e(route('admin.services.destroy', $service)); ?>" method="POST" onsubmit="return confirm('Delete this service?');">
                        <?php echo csrf_field(); ?> <?php echo method_field('DELETE'); ?>
                        <button type="submit" class="text-red-600 hover:text-red-900">Delete</button>
                    </form>
                </td>
            </tr>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </tbody>
    </table>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.admin', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /Users/sumankc/Desktop/ Websites/Dr Rajan/resources/views/admin/services/index.blade.php ENDPATH**/ ?>