<nav class="main-header navbar navbar-expand navbar-modern">

    <ul class="navbar-nav">

        <li class="nav-item">

            <a class="nav-link"
               data-widget="pushmenu"
               href="#">

                <i class="fas fa-bars"></i>

            </a>

        </li>

    </ul>

    <ul class="navbar-nav ml-auto">

        <li class="nav-item mr-3 d-none d-md-flex align-items-center">

            <span class="text-muted">

                <i class="far fa-calendar-alt mr-1"></i>

                <?php echo e(now()->translatedFormat('l, d F Y')); ?>


            </span>

        </li>

        <li class="nav-item dropdown">

            <a class="nav-link profile-dropdown"
               data-toggle="dropdown"
               href="#">

                <img
                    src="https://ui-avatars.com/api/?name=<?php echo e(urlencode(auth()->user()->name)); ?>&background=2563eb&color=fff"
                    class="profile-image">

                <div class="profile-info d-none d-md-block">

                    <div class="profile-name">
                        <?php echo e(auth()->user()->name); ?>

                    </div>

                    <small class="profile-role">

                        <?php echo e(strtoupper(auth()->user()->role)); ?>


                    </small>

                </div>

                <i class="fas fa-chevron-down ml-2"></i>

            </a>

            <div class="dropdown-menu dropdown-menu-right shadow border-0">

                <div class="dropdown-header text-center">

                    <img
                        src="https://ui-avatars.com/api/?name=<?php echo e(urlencode(auth()->user()->name)); ?>&background=2563eb&color=fff"
                        class="img-circle mb-2"
                        width="60">

                    <h6 class="mb-0">

                        <?php echo e(auth()->user()->name); ?>


                    </h6>

                    <small class="text-muted">

                        <?php echo e(strtoupper(auth()->user()->role)); ?>


                    </small>

                </div>

                <div class="dropdown-divider"></div>

                <a href="/profile"
                   class="dropdown-item">

                    <i class="fas fa-user-circle mr-2 text-primary"></i>

                    Profile

                </a>

                <div class="dropdown-divider"></div>

                <form action="/logout"
                      method="POST">

                    <?php echo csrf_field(); ?>

                    <button
                        type="submit"
                        class="dropdown-item text-danger">

                        <i class="fas fa-sign-out-alt mr-2"></i>

                        Logout

                    </button>

                </form>

            </div>

        </li>

    </ul>

</nav><?php /**PATH C:\laragon\www\sistem-gaji-sekolah\resources\views/layouts/navbar.blade.php ENDPATH**/ ?>