@section('page-title', 'Manajemen Denda')

Manajemen Denda & Sanksi

Pantau pengguna terlambat dan berikan sanksi jika diperlukan.

{{-- FILTER SECTION --}}
Filter Data:
@forelse ($siswaTelat as $item) {{-- KOLOM STATUS --}} {{-- KOLOM AKSI --}} @empty @endforelse
NO NAMA BUKU TERLAMBAT STATUS DENDA AKSI
{{ $loop->iteration }}
{{ $item['peminjam'] }}
{{ $item['kelas'] }}
{{ $item['nomor_hp'] }}
    @foreach ($item['books'] as $buku)
  • {{ $buku['judul'] }}
  • @endforeach
@if(isset($item['role']) && strtolower($item['role']) === 'guru')
-
@else Telat {{ $item['hari_terlambat'] }} Hari
Tenggat: {{ $item['tenggat_kembali']->format('d/m/Y') }}
@endif
@if($item['is_guru'])
Bebas Denda
Kebijakan Guru @else
Rp {{ number_format($item['total_denda'], 0, ',', '.') }}
Rp 1.000/hari @endif
{{-- Tombol WA (Muncul untuk semua) --}} {{-- LOGIC TOMBOL AKTIFKAN / SANKSI (Hanya untuk Siswa) --}} @if (!$item['is_guru']) @if ($item['is_banned']) {{-- Jika sudah dibekukan (Otomatis/Manual), muncul tombol AKTIFKAN --}} @else {{-- Jika belum dibekukan, muncul tombol SANKSI (Manual) --}} @endif @endif

Tidak ada buku terlambat hari ini.

@push('scripts') @endpush