<!DOCTYPE html>
<html lang="id">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>PPID - Pejabat Pengelola Informasi dan Dokumentasi</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet">
    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet">
    <style>
        .hero-section {
            background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
            color: white;
            padding: 4rem 0;
        }
        .card {
            border: none;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            border-radius: 15px;
            transition: transform 0.3s ease;
        }
        .card:hover {
            transform: translateY(-5px);
        }
        .stats-card {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
        }
        .search-box {
            background: rgba(255,255,255,0.1);
            border: 1px solid rgba(255,255,255,0.3);
            border-radius: 25px;
        }
        .search-box:focus {
            background: rgba(255,255,255,0.2);
            border-color: rgba(255,255,255,0.5);
            box-shadow: none;
        }
    </style>
</head>
<body>
    <!-- Hero Section -->
    <div class="hero-section">
        <div class="container">
            <div class="row align-items-center">
                <div class="col-lg-8">
                    <h1 class="display-4 fw-bold mb-3">
                        <i class="fas fa-info-circle me-3"></i>
                        PPID
                    </h1>
                    <h2 class="h4 mb-4">Pejabat Pengelola Informasi dan Dokumentasi</h2>
                    
                    <!-- Search Bar -->
                    <div class="row">
                        <div class="col-md-8">
                            <div class="input-group input-group-lg">
                                <input type="text" class="form-control search-box text-white" placeholder="Cari Informasi Publik..." style="background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.3);">
                                <button class="btn btn-light" type="button">
                                    <i class="fas fa-search"></i>
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-lg-4 text-center">
                    <i class="fas fa-building fa-8x opacity-25"></i>
                </div>
            </div>
        </div>
    </div>

    <!-- Stats Widget -->
    <div class="container mt-5">
        <div class="row">
            <div class="col-md-3 mb-4">
                <div class="card stats-card text-center p-4">
                    <i class="fas fa-file-alt fa-3x mb-3"></i>
                    <h3 class="fw-bold">{{ $stats['total_informasi'] }}</h3>
                    <p class="mb-0">Total Informasi Publik</p>
                </div>
            </div>
            <div class="col-md-3 mb-4">
                <div class="card stats-card text-center p-4">
                    <i class="fas fa-paper-plane fa-3x mb-3"></i>
                    <h3 class="fw-bold">{{ $stats['total_permohonan'] }}</h3>
                    <p class="mb-0">Total Permohonan</p>
                </div>
            </div>
            <div class="col-md-3 mb-4">
                <div class="card stats-card text-center p-4">
                    <i class="fas fa-check-circle fa-3x mb-3"></i>
                    <h3 class="fw-bold">{{ $stats['permohonan_ditindaklanjuti'] }}</h3>
                    <p class="mb-0">Permohonan Ditindaklanjuti</p>
                </div>
            </div>
            <div class="col-md-3 mb-4">
                <div class="card stats-card text-center p-4">
                    <i class="fas fa-exclamation-triangle fa-3x mb-3"></i>
                    <h3 class="fw-bold">{{ $stats['keberatan'] }}</h3>
                    <p class="mb-0">Keberatan</p>
                </div>
            </div>
        </div>
    </div>

    <!-- Main Cards -->
    <div class="container my-5">
        <div class="row">
            <div class="col-md-4 mb-4">
                <div class="card h-100">
                    <div class="card-body text-center p-5">
                        <i class="fas fa-list-alt fa-4x text-primary mb-4"></i>
                        <h4 class="card-title">Daftar Informasi Publik</h4>
                        <p class="card-text">Akses informasi publik yang tersedia sesuai kategori dan kebutuhan Anda.</p>
                        <a href="{{ route('ppid.informasi.index') }}" class="btn btn-primary btn-lg">
                            <i class="fas fa-eye me-2"></i>Lihat Informasi
                        </a>
                    </div>
                </div>
            </div>
            <div class="col-md-4 mb-4">
                <div class="card h-100">
                    <div class="card-body text-center p-5">
                        <i class="fas fa-edit fa-4x text-success mb-4"></i>
                        <h4 class="card-title">Permohonan Informasi</h4>
                        <p class="card-text">Ajukan permohonan informasi publik yang belum tersedia secara terbuka.</p>
                        <a href="{{ route('ppid.permohonan.create') }}" class="btn btn-success btn-lg">
                            <i class="fas fa-plus me-2"></i>Ajukan Permohonan
                        </a>
                    </div>
                </div>
            </div>
            <div class="col-md-4 mb-4">
                <div class="card h-100">
                    <div class="card-body text-center p-5">
                        <i class="fas fa-chart-bar fa-4x text-warning mb-4"></i>
                        <h4 class="card-title">Statistik</h4>
                        <p class="card-text">Lihat statistik dan transparansi layanan informasi publik kami.</p>
                        <a href="{{ route('ppid.statistik') }}" class="btn btn-warning btn-lg">
                            <i class="fas fa-chart-line me-2"></i>Lihat Statistik
                        </a>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- Additional Menu -->
    <div class="container mb-5">
        <div class="row">
            <div class="col-md-6 mb-3">
                <div class="card">
                    <div class="card-body d-flex align-items-center">
                        <i class="fas fa-star fa-2x text-info me-3"></i>
                        <div class="flex-grow-1">
                            <h5 class="card-title mb-1">Survei Kepuasan Masyarakat</h5>
                            <p class="card-text mb-0">Berikan penilaian terhadap layanan PPID</p>
                        </div>
                        <a href="{{ route('ppid.survei') }}" class="btn btn-info">
                            <i class="fas fa-external-link-alt"></i>
                        </a>
                    </div>
                </div>
            </div>
            <div class="col-md-6 mb-3">
                <div class="card">
                    <div class="card-body d-flex align-items-center">
                        <i class="fas fa-file-pdf fa-2x text-danger me-3"></i>
                        <div class="flex-grow-1">
                            <h5 class="card-title mb-1">Laporan</h5>
                            <p class="card-text mb-0">Unduh laporan layanan informasi publik</p>
                        </div>
                        <a href="#" class="btn btn-danger">
                            <i class="fas fa-download"></i>
                        </a>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>