@extends('layouts.app')

@section('title', 'Verifikasi SPTJM - Pengawas')

@section('content')
<div class="container-fluid">
    <!-- Page Header -->
    <div class="d-flex justify-content-between align-items-center mb-4">
        <div>
            <h1 class="h3 mb-0">Verifikasi SPTJM</h1>
            <p class="text-muted small mt-1">Verifikasi Surat Pernyataan Tanggung Jawab Mutlak dari sekolah binaan</p>
        </div>
    </div>

    <!-- Filter & Search -->
    <div class="row mb-4">
        <div class="col-md-4">
            <div class="input-group">
                <span class="input-group-text bg-white border-end-0">
                    <i class="bi bi-search"></i>
                </span>
                <input type="text" class="form-control border-start-0" placeholder="Cari sekolah...">
            </div>
        </div>
        <div class="col-md-4">
            <select class="form-select">
                <option value="">-- Filter Status --</option>
                <option value="pending">Menunggu Verifikasi</option>
                <option value="verified">Sudah Diverifikasi</option>
                <option value="rejected">Ditolak</option>
            </select>
        </div>
    </div>

    <!-- Data Table -->
    <div class="card">
        <div class="card-header">
            <h5 class="mb-0">Daftar SPTJM Menunggu Verifikasi</h5>
        </div>
        <div class="card-body">
            <div class="table-responsive">
                <table class="table table-hover">
                    <thead class="table-light">
                        <tr>
                            <th>Sekolah</th>
                            <th>Kepala Sekolah</th>
                            <th>Tanggal Kirim</th>
                            <th>Status</th>
                            <th>Aksi</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td>
                                <div>
                                    <strong>SMA Negeri 1</strong>
                                    <br>
                                    <small class="text-muted">NPSN: 20501234</small>
                                </div>
                            </td>
                            <td>Dr. Budi Santoso</td>
                            <td>15-01-2025</td>
                            <td><span class="badge bg-warning">Pending</span></td>
                            <td>
                                <button class="btn btn-sm btn-outline-success" title="Verifikasi">
                                    <i class="bi bi-check-circle"></i>
                                </button>
                                <button class="btn btn-sm btn-outline-danger" title="Tolak">
                                    <i class="bi bi-x-circle"></i>
                                </button>
                                <button class="btn btn-sm btn-outline-primary" title="Lihat File">
                                    <i class="bi bi-file-pdf"></i>
                                </button>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <div>
                                    <strong>SMA Negeri 2</strong>
                                    <br>
                                    <small class="text-muted">NPSN: 20501235</small>
                                </div>
                            </td>
                            <td>Ir. Siti Fatimah</td>
                            <td>12-01-2025</td>
                            <td><span class="badge bg-warning">Pending</span></td>
                            <td>
                                <button class="btn btn-sm btn-outline-success" title="Verifikasi">
                                    <i class="bi bi-check-circle"></i>
                                </button>
                                <button class="btn btn-sm btn-outline-danger" title="Tolak">
                                    <i class="bi bi-x-circle"></i>
                                </button>
                                <button class="btn btn-sm btn-outline-primary" title="Lihat File">
                                    <i class="bi bi-file-pdf"></i>
                                </button>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <div>
                                    <strong>SMK Negeri 1</strong>
                                    <br>
                                    <small class="text-muted">NPSN: 20501236</small>
                                </div>
                            </td>
                            <td>Drs. Ahmad Wijaya</td>
                            <td>10-01-2025</td>
                            <td><span class="badge bg-success">Terverifikasi</span></td>
                            <td>
                                <button class="btn btn-sm btn-outline-primary" title="Lihat File">
                                    <i class="bi bi-file-pdf"></i>
                                </button>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
            <nav aria-label="Pagination">
                <ul class="pagination justify-content-center mt-4">
                    <li class="page-item disabled"><a class="page-link" href="#">Previous</a></li>
                    <li class="page-item active"><a class="page-link" href="#">1</a></li>
                    <li class="page-item"><a class="page-link" href="#">2</a></li>
                    <li class="page-item"><a class="page-link" href="#">Next</a></li>
                </ul>
            </nav>
        </div>
    </div>
</div>
@endsection
