<?php $__env->startSection('title', 'Clientes'); ?>
<?php $__env->startSection('page-title', 'Clientes'); ?>
<?php $__env->startSection('content'); ?>
    <div class="mb-4 flex flex-wrap items-center justify-between gap-3">
        <form method="GET" class="flex gap-2">
            <input name="q" value="<?php echo e($q); ?>" placeholder="Buscar nome ou slug" class="rounded-lg border border-slate-300 px-3 py-2 text-sm">
            <button class="rounded-lg bg-slate-800 px-3 py-2 text-sm font-semibold text-white">Buscar</button>
        </form>
        <a href="<?php echo e(route('super-admin.tenants.create')); ?>" class="rounded-lg bg-emerald-600 px-4 py-2 text-sm font-semibold text-white">Novo cliente</a>
    </div>
    <div class="overflow-hidden rounded-xl border border-slate-200 bg-white shadow-sm">
        <table class="min-w-full text-left text-sm">
            <thead class="bg-slate-50 text-xs uppercase text-slate-500">
                <tr><th class="px-4 py-3">Nome</th><th class="px-4 py-3">Slug</th><th class="px-4 py-3">Status</th><th class="px-4 py-3"></th></tr>
            </thead>
            <tbody>
                <?php $__currentLoopData = $tenants; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $tenant): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <tr class="border-t border-slate-100">
                        <td class="px-4 py-3 font-medium"><?php echo e($tenant->name); ?></td>
                        <td class="px-4 py-3 font-mono text-xs"><?php echo e($tenant->slug); ?></td>
                        <td class="px-4 py-3"><?php echo e($tenant->status?->label() ?? $tenant->status); ?></td>
                        <td class="px-4 py-3 text-right"><a class="text-emerald-700 font-medium" href="<?php echo e(route('super-admin.tenants.show', $tenant->id)); ?>">Abrir</a></td>
                    </tr>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </tbody>
        </table>
    </div>
    <div class="mt-4"><?php echo e($tenants->links()); ?></div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.superadmin', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /var/www/html/backend/resources/views/super-admin/tenants/index.blade.php ENDPATH**/ ?>