<?= $this->extend('layout/admin') ?>
<?= $this->section('content') ?>

<div class="row mb-3">
    <div class="col-md-12">
        <h4>📊 Dashboard HSE</h4>
        <p>
            Company: <b>PT Contoh Sejahtera</b> |
            Site: <b>Project A</b> |
            Periode: <b>Desember 2025</b>
        </p>
        <span class="badge badge-success">🟢 HSE Status: GOOD</span>
    </div>
</div>

<div class="row">
    <div class="col-lg-3 col-6">
        <div class="small-box bg-danger">
            <div class="inner">
                <h3><?= $incident ?? 0 ?></h3>
                <p>Total Incident</p>
            </div>
            <div class="icon">
                <i class="fas fa-exclamation-triangle"></i>
            </div>
        </div>
    </div>

    <div class="col-lg-3 col-6">
        <div class="small-box bg-warning">
            <div class="inner">
                <h3><?= $nearMiss ?? 0 ?></h3>
                <p>Near Miss</p>
            </div>
            <div class="icon">
                <i class="fas fa-bell"></i>
            </div>
        </div>
    </div>

    <div class="col-lg-3 col-6">
        <div class="small-box bg-success">
            <div class="inner">
                <h3><?= $daysWithoutAccident ?? 120 ?></h3>
                <p>Days Without Accident</p>
            </div>
            <div class="icon">
                <i class="fas fa-calendar-check"></i>
            </div>
        </div>
    </div>

    <div class="col-lg-3 col-6">
        <div class="small-box bg-info">
            <div class="inner">
                <h3><?= $inspection ?? 0 ?></h3>
                <p>Total Inspection</p>
            </div>
            <div class="icon">
                <i class="fas fa-clipboard-check"></i>
            </div>
        </div>
    </div>
</div>

<?= $this->endSection() ?>
