<!doctype html>
<html lang="<?php echo e(str_replace('_', '-', app()->getLocale())); ?>">
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <!-- CSRF Token -->
        <meta name="csrf-token" content="<?php echo e(csrf_token()); ?>">
        <title><?php echo e(config('app.name', 'HOSTAFRICA COCKPIT')); ?></title>
        <!-- Scripts -->
        <script src="<?php echo e(asset('js/app.js')); ?>" defer></script>
        <!-- Fonts -->
        <link rel="dns-prefetch" href="//fonts.gstatic.com">
        <link href="https://fonts.googleapis.com/css?family=Nunito" rel="stylesheet">
        <!-- Styles -->
        <link href="<?php echo e(asset('css/app.css')); ?>" rel="stylesheet">
    </head>
    <body>
        <div id="app">
            <b-sidebar
            id="sidebar-backdrop"
            backdrop
            shadow
            bg-variant="dark"
            text-variant="light"
            no-header
            >
            <div class="py-2">
                <b-nav vertical class="sidebarNav">
                <b-nav-item to="/dashboard" class="<?php echo e((Request::is('dashboard')) ? 'active' : ''); ?>"><i class="fa fa-tachometer-alt"></i> Dashboard</b-nav-item>
                <b-nav-item class="spacer"></b-nav-item>
                <b-nav-item to="/todo/backups" class="<?php echo e((Request::is('todo/backups')) ? 'active' : ''); ?>"><i class="fas fa-boxes"></i>Failed Backups</b-nav-item>
                <?php if(Auth::user()->group == 1): ?>
                <b-nav-item class="spacer"></b-nav-item>
                <b-nav-item to="/adminpanel" class="<?php echo e((Request::is('adminpanel')) ? 'active' : ''); ?>"><i class="fas fa-users-cog"></i>Admin Panel</b-nav-item>
                <?php endif; ?>
                </b-nav>
            </div>
            </b-sidebar>
            <nav class="navbar navbar-expand-md navbar-light bg-white shadow-sm">
                <div class="container">
                    <a v-b-toggle.sidebar-backdrop href="#" class="mr-3"><i class="fas fa-bars fa-2x"></i></a>
                    <a class="navbar-brand" href="<?php echo e(url('/')); ?>">
                        <img src="<?php echo e(asset('/img/logos/hadark.png')); ?>" class="logo" alt="HA cockpit">
                        <span class="toolname">COCKPIT</span>
                    </a>
                    <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="<?php echo e(__('Toggle navigation')); ?>">
                    <span class="navbar-toggler-icon"></span>
                    </button>
                    <div class="collapse navbar-collapse" id="navbarSupportedContent">
                        <!-- Left Side Of Navbar -->
                        <ul class="navbar-nav mr-auto">
                        </ul>
                        <!-- Right Side Of Navbar -->
                        <ul class="navbar-nav ml-auto">
                            <!-- Authentication Links -->
                            <?php if(auth()->guard()->guest()): ?>
                            <li class="nav-item">
                                <a class="nav-link" href="<?php echo e(route('login')); ?>"><?php echo e(__('Login')); ?></a>
                            </li>
                            <?php if(Route::has('register')): ?>
                            <li class="nav-item">
                                <a class="nav-link" href="<?php echo e(route('register')); ?>"><?php echo e(__('Register')); ?></a>
                            </li>
                            <?php endif; ?>
                            <?php else: ?>
                            <li class="nav-item dropdown">
                                <a id="navbarDropdown" class="nav-link dropdown-toggle" href="#" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" v-pre>
                                    Hi, <?php echo e(Auth::user()->firstname); ?> <span class="caret"></span>
                                </a>
                                <div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">
                                    <a class="dropdown-item d-flex justify-content-between align-items-center" href="<?php echo e(route('profile')); ?>">
                                        <?php echo e(__('Edit Profile')); ?> <i class="fas fa-user"></i>
                                    </a>
                                    <a class="dropdown-item d-flex justify-content-between align-items-center" href="<?php echo e(route('logout')); ?>"
                                        onclick="event.preventDefault();
                                        document.getElementById('logout-form').submit();">
                                        <?php echo e(__('Logout')); ?> <i class="fas fa-sign-out-alt"></i>
                                    </a>
                                    <form id="logout-form" action="<?php echo e(route('logout')); ?>" method="POST" style="display: none;">
                                        <?php echo csrf_field(); ?>
                                    </form>
                                </div>
                            </li>
                            <?php endif; ?>
                        </ul>
                    </div>
                </div>
            </nav>
            <main class="py-4">
                <div class="container pageTitle">
                    <h2><i class="fas <?php echo e($icon ?? 'fa-file'); ?>"></i> <?php echo e($title ?? 'Page'); ?></h2>
                    <hr>
                </div>
                <?php echo $__env->yieldContent('content'); ?>
            </main>
        </div>
    </body>
</html><?php /**PATH /var/www/html/HAcp/resources/views/layouts/app.blade.php ENDPATH**/ ?>