<?php $__env->startSection('title', 'Titik Peta'); ?>
<?php $__env->startSection('page-title', 'Peta Desa'); ?>

<?php $__env->startSection('content'); ?>
<div class="flex items-center justify-between mb-6">
    <p class="text-gray-500 text-sm"><?php echo e($points->count()); ?> titik peta</p>
    <a href="<?php echo e(route('admin.peta.create')); ?>" class="btn-primary">+ Tambah Titik</a>
</div>

<div class="card-admin overflow-x-auto p-0">
    <table class="w-full">
        <thead class="bg-gray-50 border-b border-gray-200">
            <tr>
                <th class="table-header">Nama</th>
                <th class="table-header">Jenis</th>
                <th class="table-header">Koordinat</th>
                <th class="table-header">Aksi</th>
            </tr>
        </thead>
        <tbody class="divide-y divide-gray-100">
            <?php $__empty_1 = true; $__currentLoopData = $points; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $point): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
            <tr class="hover:bg-gray-50 transition-colors">
                <td class="table-cell font-medium"><?php echo e($point->nama); ?></td>
                <td class="table-cell"><span class="badge badge-blue"><?php echo e($point->jenis_label); ?></span></td>
                <td class="table-cell text-xs text-gray-400 font-mono"><?php echo e($point->latitude); ?>, <?php echo e($point->longitude); ?></td>
                <td class="table-cell">
                    <div class="flex items-center gap-2">
                        <a href="<?php echo e(route('admin.peta.edit', $point->id)); ?>" class="text-secondary hover:text-primary text-sm font-medium">Edit</a>
                        <form method="POST" action="<?php echo e(route('admin.peta.destroy', $point->id)); ?>" data-confirm-delete>
                            <?php echo csrf_field(); ?> <?php echo method_field('DELETE'); ?>
                            <button class="text-red-500 hover:text-red-700 text-sm">Hapus</button>
                        </form>
                    </div>
                </td>
            </tr>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
            <tr><td colspan="4" class="table-cell text-center text-gray-400 py-8">Belum ada titik peta.</td></tr>
            <?php endif; ?>
        </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 F:\web Desa Suka Baru\website-desa-suka-baru\resources\views/admin/map-points/index.blade.php ENDPATH**/ ?>