

<?php $__env->startSection('content'); ?>

<div class="row">

    <div class="col-md-4">

        <div class="card shadow-sm border-0">

            <div class="card-body text-center">

                <div class="mb-3">

                    <div style="
                        width:80px;
                        height:80px;
                        border-radius:50%;
                        background:#0d6efd;
                        color:white;
                        display:flex;
                        align-items:center;
                        justify-content:center;
                        margin:auto;
                        font-size:30px;
                    ">
                        <i class="fas fa-user"></i>
                    </div>

                </div>

                <h4 class="font-weight-bold">
                    <?php echo e($guru->nama); ?>

                </h4>

                <p class="text-muted">
                    Guru Pengajar
                </p>

                <span class="badge badge-primary p-2">
                    <?php echo e(now()->translatedFormat('d F Y')); ?>

                </span>

            </div>

        </div>

    </div>

    <div class="col-md-4">

        <div class="small-box bg-success">

            <div class="inner">

                <h3>
                    <?php echo e($hadirBulanIni); ?>

                </h3>

                <p>
                    Kehadiran Bulan Ini
                </p>

            </div>

            <div class="icon">
                <i class="fas fa-check-circle"></i>
            </div>

        </div>

    </div>

    <div class="col-md-4">

        <div class="small-box bg-primary">

            <div class="inner">

                <h3>
                    Rp <?php echo e(number_format($totalGaji)); ?>

                </h3>

                <p>
                    Total Gaji Diterima
                </p>

            </div>

            <div class="icon">
                <i class="fas fa-wallet"></i>
            </div>

        </div>

    </div>

</div>

<div class="card shadow-sm border-0">

    <div class="card-header bg-white">

        <h5 class="mb-0">

            <i class="fas fa-calendar-alt text-primary"></i>

            Jadwal Mengajar Hari Ini

        </h5>

    </div>

    <div class="card-body">

        <div class="table-responsive">

            <table class="table table-hover align-middle">

                <thead class="bg-light">

                    <tr>

                        <th>Mata Pelajaran</th>

                        <th>Kelas</th>

                        <th>Jam Mengajar</th>

                    </tr>

                </thead>

                <tbody>

                <?php $__empty_1 = true; $__currentLoopData = $jadwalHariIni; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $j): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>

                    <tr>

                        <td>

                            <strong>
                                <?php echo e($j->mataPelajaran->nama_mapel); ?>

                            </strong>

                        </td>

                        <td>

                            <span class="badge badge-info">
                                <?php echo e($j->kelas->nama_kelas); ?>

                            </span>

                        </td>

                        <td>

                            <i class="far fa-clock text-primary"></i>

                            <?php echo e($j->jam_mulai); ?>


                            -

                            <?php echo e($j->jam_selesai); ?>


                        </td>

                    </tr>

                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>

                    <tr>

                        <td colspan="3" class="text-center py-4">

                            <i class="fas fa-calendar-times fa-3x text-muted"></i>

                            <br><br>

                            Tidak ada jadwal mengajar hari ini

                        </td>

                    </tr>

                <?php endif; ?>

                </tbody>

            </table>

        </div>

    </div>

</div>

<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\laragon\www\sistem-gaji-sekolah\resources\views/dashboard/guru.blade.php ENDPATH**/ ?>