<?php $__env->startSection('page_title', 'Services'); ?>

<?php $__env->startSection('content'); ?>
    <div class="mb-6 flex items-center justify-between">
        <p class="text-sm text-slate-500">Services shown on the homepage and Services page.</p>
        <a href="<?php echo e(route('admin.services.create')); ?>" class="inline-flex items-center gap-2 rounded-full bg-brand-600 px-5 py-2.5 text-sm font-semibold text-white hover:bg-brand-700">
            <svg class="h-4 w-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><path d="M12 5v14M5 12h14"/></svg> New service
        </a>
    </div>

    <div class="rounded-2xl border border-slate-200 bg-white">
        <?php if($services->count()): ?>
            <div class="divide-y divide-slate-100">
                <?php $__currentLoopData = $services; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $s): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <div class="flex flex-wrap items-center gap-4 px-6 py-5">
                        <span class="grid h-11 w-11 shrink-0 place-items-center rounded-xl bg-brand-600 text-white">
                            <svg class="h-6 w-6" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="<?php echo e($s->icon ?: 'M4 5h16M4 12h16M4 19h16'); ?>"/></svg>
                        </span>
                        <div class="min-w-0 flex-1">
                            <div class="flex items-center gap-2">
                                <p class="font-semibold text-ink"><?php echo e($s->title); ?></p>
                                <?php if($s->is_published): ?>
                                    <span class="rounded-full bg-emerald-50 px-2 py-0.5 text-xs font-semibold text-emerald-600">Published</span>
                                <?php else: ?>
                                    <span class="rounded-full bg-slate-100 px-2 py-0.5 text-xs font-semibold text-slate-500">Hidden</span>
                                <?php endif; ?>
                            </div>
                            <p class="mt-0.5 text-sm text-slate-500"><?php echo e(\Illuminate\Support\Str::limit($s->description, 90)); ?></p>
                        </div>
                        <div class="flex items-center gap-2">
                            <a href="<?php echo e(route('admin.services.edit', $s)); ?>" class="rounded-lg border border-slate-200 px-3 py-1.5 text-xs font-semibold text-slate-600 hover:border-brand-300 hover:text-brand-700">Edit</a>
                            <form action="<?php echo e(route('admin.services.destroy', $s)); ?>" method="POST" onsubmit="return confirm('Delete this service?')">
                                <?php echo csrf_field(); ?> <?php echo method_field('DELETE'); ?>
                                <button class="rounded-lg border border-slate-200 px-3 py-1.5 text-xs font-semibold text-slate-500 hover:border-brand-300 hover:text-brand-700">Delete</button>
                            </form>
                        </div>
                    </div>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </div>
            <div class="px-6 py-4"><?php echo e($services->links()); ?></div>
        <?php else: ?>
            <p class="px-6 py-16 text-center text-sm text-slate-400">No services yet. <a href="<?php echo e(route('admin.services.create')); ?>" class="font-semibold text-brand-600">Add your first one</a>.</p>
        <?php endif; ?>
    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('admin.layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH D:\Zahid_Project\all-website\sharaussie_education\resources\views/admin/services/index.blade.php ENDPATH**/ ?>