<!DOCTYPE html>
<html lang="en">

<head>

    <meta charset="UTF-8">

    <meta
        name="viewport"
        content="width=device-width, initial-scale=1.0"
    >

    <title>
        <?php echo $__env->yieldContent('title', 'NEX Finsev Admin'); ?>
    </title>

    
    <link
        rel="stylesheet"
        href="<?php echo e(asset('admin/css/admin.css')); ?>"
    >

    
    <?php echo $__env->yieldPushContent('styles'); ?>

</head>


<body>


<!-- =====================================================
     SIDEBAR
====================================================== -->

<aside class="sidebar">


    <!-- LOGO -->

    <div class="logo">

        <?php if(file_exists(public_path('images/logo.png'))): ?>

            <a href="<?php echo e(route('admin.dashboard')); ?>">

                <img
                    src="<?php echo e(asset('images/logo.png')); ?>"
                    alt="NEX Finsev"
                >

            </a>

        <?php else: ?>

            <a
                href="<?php echo e(route('admin.dashboard')); ?>"
                class="logo-text"
            >
                NEX Finsev
            </a>

        <?php endif; ?>

    </div>


    <!-- SCROLLABLE MENU -->

    <div class="sidebar-menu" id="adminSidebarMenu">

        <!-- MAIN MENU -->

        <div class="section-title">
            Main Menu
        </div>


        

        <div class="nav">

            <a
                href="<?php echo e(route('admin.dashboard')); ?>"
                class="<?php echo e(request()->routeIs('admin.dashboard')
                    ? 'active'
                    : ''); ?>"
            >

                <span class="nav-icon">🏠</span>

                Dashboard

            </a>

        </div>


        

        <div class="nav">

            <a
                href="<?php echo e(route('admin.clients')); ?>"
                class="<?php echo e(request()->routeIs('admin.clients*')
                    ? 'active'
                    : ''); ?>"
            >

                <span class="nav-icon">👥</span>

                Clients

            </a>

        </div>


        

        <div class="nav">

            <a
                href="<?php echo e(route('admin.applications')); ?>"
                class="<?php echo e(request()->routeIs('admin.applications*')
                    ? 'active'
                    : ''); ?>"
            >

                <span class="nav-icon">📋</span>

                Applications

            </a>

        </div>


        <!-- MANAGEMENT -->

        <div class="section-title">
            Management
        </div>


        

        <div class="nav">

            <a
                href="<?php echo e(route('admin.kyc.index')); ?>"
                class="<?php echo e(request()->routeIs('admin.kyc*')
                    ? 'active'
                    : ''); ?>"
            >

                <span class="nav-icon">🪪</span>

                KYC Verification

            </a>

        </div>


        

        <div class="nav">

            <a
                href="<?php echo e(route('admin.payments')); ?>"
                class="<?php echo e(request()->routeIs('admin.payments*')
                    ? 'active'
                    : ''); ?>"
            >

                <span class="nav-icon">💳</span>

                Payments

            </a>

        </div>


        

        <?php if(Route::has('admin.loans')): ?>

            <div class="nav">

                <a
                    href="<?php echo e(route('admin.loans')); ?>"
                    class="<?php echo e(request()->routeIs('admin.loans*')
                        ? 'active'
                        : ''); ?>"
                >

                    <span class="nav-icon">💰</span>

                    Loans

                </a>

            </div>

        <?php endif; ?>


        

        <?php if(Route::has('admin.overdue')): ?>

            <div class="nav">

                <a
                    href="<?php echo e(route('admin.overdue')); ?>"
                    class="<?php echo e(request()->routeIs('admin.overdue*')
                        ? 'active'
                        : ''); ?>"
                >

                    <span class="nav-icon">⚠️</span>

                    Overdue

                </a>

            </div>

        <?php endif; ?>


        

        <?php if(Route::has('admin.emi-cards')): ?>

            <div class="nav">

                <a
                    href="<?php echo e(route('admin.emi-cards')); ?>"
                    class="<?php echo e(request()->routeIs('admin.emi-cards*')
                        ? 'active'
                        : ''); ?>"
                >

                    <span class="nav-icon">🔐</span>

                    EMI Cards

                </a>

            </div>

        <?php endif; ?>


        

        <?php if(Route::has('admin.reports')): ?>

            <div class="nav">

                <a
                    href="<?php echo e(route('admin.reports')); ?>"
                    class="<?php echo e(request()->routeIs('admin.reports*')
                        ? 'active'
                        : ''); ?>"
                >

                    <span class="nav-icon">📊</span>

                    Reports

                </a>

            </div>

        <?php endif; ?>


        <!-- CUSTOMER CARE -->

        <div class="section-title">
            Customer Care
        </div>


        

        <?php if(Route::has('admin.support.index')): ?>

            <div class="nav">

                <a
                    href="<?php echo e(route('admin.support.index')); ?>"
                    class="<?php echo e(request()->routeIs('admin.support.*')
                        ? 'active'
                        : ''); ?>"
                >

                    <span class="nav-icon">💬</span>

                    Support Chat

                </a>

            </div>

        <?php endif; ?>


        <!-- SYSTEM -->

        <div class="section-title">
            System
        </div>


        

        <?php if(Route::has('admin.loan-settings.edit')): ?>

            <div class="nav">

                <a
                    href="<?php echo e(route('admin.loan-settings.edit')); ?>"
                    class="<?php echo e(request()->routeIs('admin.loan-settings.*')
                        ? 'active'
                        : ''); ?>"
                >

                    <span class="nav-icon">💳</span>

                    Loan Settings

                </a>

            </div>

        <?php endif; ?>


        

        <?php if(Route::has('admin.system-settings.edit')): ?>

            <div class="nav">

                <a
                    href="<?php echo e(route('admin.system-settings.edit')); ?>"
                    class="<?php echo e(request()->routeIs('admin.system-settings.*')
                        ? 'active'
                        : ''); ?>"
                >

                    <span class="nav-icon">💰</span>

                    Currency & Amount

                </a>

            </div>

        <?php endif; ?>


        

        <?php if(Route::has('admin.profile-settings.edit')): ?>

            <div class="nav">

                <a
                    href="<?php echo e(route('admin.profile-settings.edit')); ?>"
                    class="<?php echo e(request()->routeIs('admin.profile-settings.*')
                        ? 'active'
                        : ''); ?>"
                >

                    <span class="nav-icon">👤</span>

                    Profile Settings

                </a>

            </div>

        <?php endif; ?>

    </div>


    <!-- =====================================================
         ADMIN PROFILE / LOGOUT
    ====================================================== -->

    <div class="sidebar-bottom">

        <form
            method="POST"
            action="<?php echo e(route('admin.logout')); ?>"
        >

            <?php echo csrf_field(); ?>

            <button
                type="submit"
                class="logout"
            >

                ↪ &nbsp; Logout

            </button>

        </form>

    </div>

</aside>


<!-- =====================================================
     MAIN
====================================================== -->

<main class="main">


    <!-- TOPBAR -->

    <header class="topbar">

        <div class="topbar-title">

            <h1>
                <?php echo $__env->yieldContent('page-title', 'Admin Dashboard'); ?>
            </h1>

            <p>
                <?php echo $__env->yieldContent(
                    'page-description',
                    'NEX Finsev administration panel'
                ); ?>
            </p>

        </div>


        <div class="topbar-right">

            <a
                href="<?php echo e(route('notifications.index')); ?>"
                class="notification"
                style="position:relative;text-decoration:none"
                aria-label="Notifications"
            >

                🔔

                <?php

                    $unreadNotifications = Auth::user()
                        ->unreadNotifications()
                        ->count();

                ?>


                <?php if($unreadNotifications > 0): ?>

                    <span
                        style="
                            position:absolute;
                            top:-5px;
                            right:-5px;
                            min-width:16px;
                            height:16px;
                            padding:0 4px;
                            border-radius:20px;
                            background:#dc3545;
                            color:#fff;
                            font-size:7px;
                            font-weight:900;
                            display:flex;
                            align-items:center;
                            justify-content:center;
                            line-height:1;
                        "
                    >

                        <?php echo e($unreadNotifications > 99
                                ? '99+'
                                : $unreadNotifications); ?>


                    </span>

                <?php endif; ?>

            </a>


            <div class="top-profile">

                <?php echo e(strtoupper(
                        substr(
                            Auth::user()->name,
                            0,
                            1
                        )
                    )); ?>


            </div>

        </div>

    </header>


    <!-- PAGE CONTENT -->

    <div class="content">


        

        <?php if(session('success')): ?>

            <div class="alert alert-success">

                <?php echo e(session('success')); ?>


            </div>

        <?php endif; ?>


        

        <?php if(session('error')): ?>

            <div class="alert alert-error">

                <?php echo e(session('error')); ?>


            </div>

        <?php endif; ?>


        

        <?php if($errors->any()): ?>

            <div class="alert alert-error">

                <strong>
                    Please fix the following:
                </strong>

                <ul
                    style="
                        margin-top:6px;
                        padding-left:18px;
                    "
                >

                    <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

                        <li>
                            <?php echo e($error); ?>

                        </li>

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

                </ul>

            </div>

        <?php endif; ?>


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

    </div>

</main>


<?php echo $__env->yieldPushContent('scripts'); ?>


<script>

document.addEventListener('DOMContentLoaded', function () {

    const sidebar =
        document.getElementById('adminSidebarMenu');

    if (!sidebar) {
        return;
    }

    const storageKey =
        'admin_sidebar_scroll_position';


    /* Restore previous scroll position */

    const savedPosition =
        sessionStorage.getItem(storageKey);

    if (savedPosition !== null) {

        requestAnimationFrame(function () {

            sidebar.scrollTop =
                parseInt(savedPosition, 10) || 0;

        });

    }


    /* Save scroll position */

    sidebar.addEventListener('scroll', function () {

        sessionStorage.setItem(
            storageKey,
            sidebar.scrollTop
        );

    });

});

</script>


</body>

</html><?php /**PATH C:\laragon\www\emi-card\resources\views/admin/layouts/app.blade.php ENDPATH**/ ?>