@extends('layouts.app')

@section('title', 'Sekolah Binaan - 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">Sekolah Binaan</h1>
            <p class="text-muted small mt-1">Daftar sekolah yang menjadi tanggung jawab Anda</p>
        </div>
    </div>

    <!-- Statistics Cards -->
    <div class="row mb-4">
        <div class="col-md-3 col-sm-6 mb-3">
            <div class="card stat-card">
                <div class="card-body">
                    <h6 class="card-title text-muted mb-2">Total Sekolah</h6>
                    <h3 class="mb-0">8</h3>
                    <small class="text-muted"><i class="bi bi-info-circle"></i> Sekolah binaan</small>
                </div>
            </div>
        </div>
        <div class="col-md-3 col-sm-6 mb-3">
            <div class="card stat-card success">
                <div class="card-body">
                    <h6 class="card-title text-muted mb-2">Sudah Evaluasi</h6>
                    <h3 class="mb-0">5</h3>
                    <small class="text-success"><i class="bi bi-check-circle"></i> Sudah selesai</small>
                </div>
            </div>
        </div>
        <div class="col-md-3 col-sm-6 mb-3">
            <div class="card stat-card warning">
                <div class="card-body">
                    <h6 class="card-title text-muted mb-2">Belum Evaluasi</h6>
                    <h3 class="mb-0">3</h3>
                    <small class="text-warning"><i class="bi bi-exclamation-circle"></i> Menunggu</small>
                </div>
            </div>
        </div>
        <div class="col-md-3 col-sm-6 mb-3">
            <div class="card stat-card info">
                <div class="card-body">
                    <h6 class="card-title text-muted mb-2">SPTJM</h6>
                    <h3 class="mb-0">6</h3>
                    <small class="text-info"><i class="bi bi-file-text"></i> Terverifikasi</small>
                </div>
            </div>
        </div>
    </div>

    <!-- Data Table -->
    <div class="card">
        <div class="card-header d-flex justify-content-between align-items-center">
            <h5 class="mb-0">Daftar Sekolah Binaan</h5>
            <div class="input-group" style="max-width: 300px;">
                <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="card-body">
            <div class="table-responsive">
                <table class="table table-hover">
                    <thead class="table-light">
                        <tr>
                            <th>Nama Sekolah</th>
                            <th>Kepala Sekolah</th>
                            <th>Status Evaluasi</th>
                            <th>SPTJM</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><span class="badge bg-success">Selesai</span></td>
                            <td><span class="badge bg-success">Terverifikasi</span></td>
                            <td>
                                <button class="btn btn-sm btn-outline-primary" title="Lihat Detail">
                                    <i class="bi bi-eye"></i>
                                </button>
                                <button class="btn btn-sm btn-outline-info" title="Evaluasi">
                                    <i class="bi bi-pencil"></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><span class="badge bg-success">Selesai</span></td>
                            <td><span class="badge bg-success">Terverifikasi</span></td>
                            <td>
                                <button class="btn btn-sm btn-outline-primary" title="Lihat Detail">
                                    <i class="bi bi-eye"></i>
                                </button>
                                <button class="btn btn-sm btn-outline-info" title="Evaluasi">
                                    <i class="bi bi-pencil"></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><span class="badge bg-warning">Proses</span></td>
                            <td><span class="badge bg-warning">Pending</span></td>
                            <td>
                                <button class="btn btn-sm btn-outline-primary" title="Lihat Detail">
                                    <i class="bi bi-eye"></i>
                                </button>
                                <button class="btn btn-sm btn-outline-info" title="Evaluasi">
                                    <i class="bi bi-pencil"></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
