<?php $__env->startSection('title', $configuration['title']); ?>
<?php $__env->startSection('content'); ?>
<nav><ol class="breadcrumb small"><li class="breadcrumb-item"><a href="<?php echo e(route('admin.dashboard')); ?>">Dashboard</a></li><li class="breadcrumb-item active"><?php echo e($configuration['title']); ?></li></ol></nav>
<div class="d-flex flex-wrap justify-content-between align-items-center gap-3 mb-4"><div><h1 class="h3 fw-bold mb-1"><i class="bi <?php echo e($configuration['icon']); ?> text-primary me-2"></i><?php echo e($configuration['title']); ?></h1><p class="text-secondary mb-0">Search, filter and review platform records.</p></div><button class="btn btn-outline-secondary" onclick="window.print()"><i class="bi bi-printer me-1"></i>Print</button></div>
<div class="card panel mb-4"><div class="card-body"><form class="row g-3 align-items-end" method="GET"><div class="col-md-7"><label class="form-label small fw-semibold" for="moduleSearch">Search</label><div class="input-group"><span class="input-group-text bg-transparent"><i class="bi bi-search"></i></span><input id="moduleSearch" class="form-control" name="search" value="<?php echo e(request('search')); ?>" placeholder="Search <?php echo e(strtolower($configuration['title'])); ?>..."></div></div><?php if($statuses->isNotEmpty()): ?><div class="col-md-3"><label class="form-label small fw-semibold" for="statusFilter">Status</label><select id="statusFilter" class="form-select" name="status"><option value="">All statuses</option><?php $__currentLoopData = $statuses; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $status): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><option value="<?php echo e($status); ?>" <?php if(request('status')===$status): echo 'selected'; endif; ?>><?php echo e(ucfirst(str_replace('_',' ',$status))); ?></option><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?></select></div><?php endif; ?><div class="col-md-2 d-grid"><button class="btn btn-dark"><i class="bi bi-funnel me-1"></i>Apply</button></div></form></div></div>
<div class="card panel"><div class="card-body p-0"><div class="d-flex justify-content-between px-4 py-3 border-bottom"><strong><?php echo e(number_format($records->total())); ?> records</strong><span class="small text-secondary">Page <?php echo e($records->currentPage()); ?> of <?php echo e(max(1,$records->lastPage())); ?></span></div><div class="table-responsive"><table class="table table-hover align-middle mb-0"><thead class="table-light"><tr><?php $__currentLoopData = $columns; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $column): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><th class="text-nowrap px-4 py-3"><?php echo e(ucwords(str_replace('_',' ',$column))); ?></th><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?></tr></thead><tbody>
<?php $__empty_1 = true; $__currentLoopData = $records; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $record): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?><tr><?php $__currentLoopData = $columns; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $column): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php ($value=$record->{$column}); ?><td class="px-4 text-nowrap"><?php if(in_array($column,['status','risk_level','priority','payment_status'],true)): ?><span class="badge rounded-pill text-bg-secondary"><?php echo e(ucfirst(str_replace('_',' ',(string)$value))); ?></span><?php elseif(in_array($column,['is_premium','is_public','is_system'],true)): ?><i class="bi <?php echo e($value?'bi-check-circle-fill text-success':'bi-dash-circle text-secondary'); ?>"></i><?php elseif(str_contains($column,'amount')): ?>₹<?php echo e(number_format((float)$value,2)); ?><?php else: ?><span title="<?php echo e($value); ?>"><?php echo e(\Illuminate\Support\Str::limit((string)($value ?? '—'),36)); ?></span><?php endif; ?></td><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?></tr><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?><tr><td colspan="<?php echo e(count($columns)); ?>"><div class="text-center py-5"><i class="bi <?php echo e($configuration['icon']); ?> fs-1 text-secondary opacity-50"></i><h2 class="h6 mt-3">No records found</h2><p class="text-secondary small mb-0">Records will appear here when data is added.</p></div></td></tr><?php endif; ?>
</tbody></table></div><?php if($records->hasPages()): ?><div class="px-4 py-3 border-top"><?php echo e($records->links()); ?></div><?php endif; ?></div></div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.admin', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\xampp\htdocs\digital\resources\views/admin/modules/index.blade.php ENDPATH**/ ?>