MIF_E31230892/sim-pkpps/storage/framework/views/7f6365c6b1f7e1f6c677fd10a0a...

144 lines
7.5 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php $__env->startSection('content'); ?>
<style>
.text-center { text-align:center; }
.progress-inline { display:flex; align-items:center; gap:8px; }
.progress-bar-mini { flex:1; background:#e9ecef; border-radius:8px; height:8px; overflow:hidden; max-width:120px; }
.progress-bar-mini .fill { height:100%; border-radius:8px; }
</style>
<div class="page-header">
<h2><i class="fas fa-user-clock"></i> Santri Perlu Perhatian</h2>
<a href="<?php echo e(route('admin.laporan-kegiatan.index', request()->only('periode','tanggal_dari','tanggal_sampai'))); ?>"
class="btn btn-secondary">
<i class="fas fa-arrow-left"></i> Kembali
</a>
</div>
<div class="content-box" style="margin-bottom:14px;">
<p style="margin:0;font-size:.88rem;color:var(--text-light);">
<i class="fas fa-info-circle"></i>
Menampilkan <strong><?php echo e($santris->total()); ?> santri</strong>
dari <strong><?php echo e($totalSantriAktif); ?> santri aktif</strong>
yang kehadiran efektifnya &lt;70%
dalam periode <strong><?php echo e($periodeLabel); ?></strong>.
<br>
<span style="font-size:.8rem;opacity:.8;">
<i class="fas fa-clock"></i> Terlambat dihitung sebagai Hadir efektif.
</span>
</p>
</div>
<div class="content-box" style="margin-bottom:14px;">
<form method="GET" style="display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap;">
<input type="hidden" name="periode" value="<?php echo e(request('periode','bulan_ini')); ?>">
<input type="hidden" name="tanggal_dari" value="<?php echo e(request('tanggal_dari')); ?>">
<input type="hidden" name="tanggal_sampai" value="<?php echo e(request('tanggal_sampai')); ?>">
<div class="form-group" style="margin:0;">
<label style="font-size:.82rem;">Filter Kelas</label>
<select name="id_kelas" class="form-control" style="min-width:180px;">
<option value="">-- Semua Kelas --</option>
<?php $__currentLoopData = $kelasList; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $k): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<option value="<?php echo e($k->id); ?>" <?php echo e(request('id_kelas')==$k->id?'selected':''); ?>>
<?php echo e($k->kelompok->nama_kelompok ?? ''); ?> <?php echo e($k->nama_kelas); ?>
</option>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</select>
</div>
<button type="submit" class="btn btn-primary btn-sm"><i class="fas fa-filter"></i> Filter</button>
</form>
</div>
<div class="content-box">
<?php if($santris->count() > 0): ?>
<div class="table-wrapper">
<table class="data-table" style="font-size:.84rem;">
<thead>
<tr>
<th>No</th>
<th>Nama</th>
<th class="text-center">Total Sesi</th>
<th class="text-center">
Hadir Efektif
<span style="display:block;font-weight:400;font-size:.73rem;color:#9CA3AF;">(Hadir+Terlambat)</span>
</th>
<th class="text-center">Terlambat</th>
<th class="text-center">Alpa</th>
<th class="text-center">Izin</th>
<th class="text-center">Sakit</th>
<th class="text-center" style="min-width:180px;">
% Kehadiran
<span style="display:block;font-weight:400;font-size:.73rem;color:#9CA3AF;">(hadir / total sesi)</span>
</th>
<th>Aksi</th>
</tr>
</thead>
<tbody>
<?php $__currentLoopData = $santris; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $i => $s): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<td><?php echo e($santris->firstItem() + $i); ?></td>
<td>
<strong><?php echo e($s->nama_lengkap); ?></strong>
<div style="font-size:.75rem;color:#9CA3AF;"><code><?php echo e($s->id_santri); ?></code></div>
</td>
<td class="text-center"><?php echo e($s->total); ?></td>
<td class="text-center">
<span class="badge badge-success"><?php echo e($s->hadir); ?></span>
</td>
<td class="text-center">
<?php if(($s->terlambat ?? 0) > 0): ?>
<span class="badge badge-warning"><?php echo e($s->terlambat); ?></span>
<?php else: ?>
<span style="color:#9CA3AF;">0</span>
<?php endif; ?>
</td>
<td class="text-center">
<span class="badge badge-danger"><?php echo e($s->alpa); ?></span>
</td>
<td class="text-center">
<span class="badge badge-warning"><?php echo e($s->izin); ?></span>
</td>
<td class="text-center">
<span class="badge badge-info"><?php echo e($s->sakit); ?></span>
</td>
<td class="text-center">
<div class="progress-inline" style="justify-content:center;">
<div class="progress-bar-mini">
<div class="fill" style="width:<?php echo e($s->persen); ?>%;background:#EF4444;"></div>
</div>
<div>
<strong style="color:#EF4444;"><?php echo e($s->persen); ?>%</strong>
<div style="font-size:.72rem;color:#9CA3AF;">
<?php echo e($s->hadir); ?> dari <?php echo e($s->total); ?>
</div>
</div>
</div>
</td>
<td>
<a href="<?php echo e(route('admin.riwayat-kegiatan.detail-santri', $s->id_santri)); ?>"
class="btn btn-sm btn-info" title="Lihat Riwayat Lengkap">
<i class="fas fa-history"></i> Riwayat
</a>
</td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</tbody>
</table>
</div>
<div style="margin-top:16px;"><?php echo e($santris->links()); ?></div>
<?php else: ?>
<div class="empty-state">
<i class="fas fa-check-circle" style="color:#10B981;font-size:2rem;"></i>
<h3>Alhamdulillah!</h3>
<p>Tidak ada santri dengan kehadiran di bawah 70%.</p>
</div>
<?php endif; ?>
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\TugasAkhir\sim-pkpps\resources\views/admin/kegiatan/laporan/santri-perlu-perhatian.blade.php ENDPATH**/ ?>