<?php $attributes ??= new \Illuminate\View\ComponentAttributeBag;

$__newAttributes = [];
$__propNames = \Illuminate\View\ComponentAttributeBag::extractPropNames(([
    'title' => 'Dashboard — LiteraHub',
]));

foreach ($attributes->all() as $__key => $__value) {
    if (in_array($__key, $__propNames)) {
        $$__key = $$__key ?? $__value;
    } else {
        $__newAttributes[$__key] = $__value;
    }
}

$attributes = new \Illuminate\View\ComponentAttributeBag($__newAttributes);

unset($__propNames);
unset($__newAttributes);

foreach (array_filter(([
    'title' => 'Dashboard — LiteraHub',
]), 'is_string', ARRAY_FILTER_USE_KEY) as $__key => $__value) {
    $$__key = $$__key ?? $__value;
}

$__defined_vars = get_defined_vars();

foreach ($attributes->all() as $__key => $__value) {
    if (array_key_exists($__key, $__defined_vars)) unset($$__key);
}

unset($__defined_vars, $__key, $__value); ?>

<?php if (isset($component)) { $__componentOriginal5863877a5171c196453bfa0bd807e410 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal5863877a5171c196453bfa0bd807e410 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.layouts.app','data' => ['title' => $title]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('layouts.app'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['title' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($title)]); ?>
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>


    <div class="app-shell">

        <header class="app-header">

            <div class="app-header__inner">

                <div class="app-header__start">

                    <button
                        type="button"
                        class="icon-button mobile-menu-button"
                        aria-label="Open navigation"
                        aria-controls="mobile-navigation"
                        aria-expanded="false"
                        data-nav-toggle
                    >
                        <svg
                            width="22"
                            height="22"
                            viewBox="0 0 24 24"
                            fill="none"
                            stroke="currentColor"
                            stroke-width="2"
                        >
                            <path d="M4 6h16"></path>
                            <path d="M4 12h16"></path>
                            <path d="M4 18h16"></path>
                        </svg>
                    </button>

                    <a
                        href="<?php echo e(route('dashboard')); ?>"
                        class="brand"
                    >
                        LiteraHub
                    </a>

                </div>

                <div class="desktop-navigation">
                    <?php if (isset($component)) { $__componentOriginal861eb04f5a7ccecb159b777162a33ded = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal861eb04f5a7ccecb159b777162a33ded = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.navigation.dashboard','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('navigation.dashboard'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>

<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal861eb04f5a7ccecb159b777162a33ded)): ?>
<?php $attributes = $__attributesOriginal861eb04f5a7ccecb159b777162a33ded; ?>
<?php unset($__attributesOriginal861eb04f5a7ccecb159b777162a33ded); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal861eb04f5a7ccecb159b777162a33ded)): ?>
<?php $component = $__componentOriginal861eb04f5a7ccecb159b777162a33ded; ?>
<?php unset($__componentOriginal861eb04f5a7ccecb159b777162a33ded); ?>
<?php endif; ?>
                </div>

                <div class="app-header__actions">

    <button
        type="button"
        class="icon-button"
        aria-label="Toggle theme"
        onclick="LiteraHub.toggleTheme()"
    >
        <svg
            width="20"
            height="20"
            viewBox="0 0 24 24"
            fill="none"
            stroke="currentColor"
            stroke-width="2"
        >
            <circle cx="12" cy="12" r="4"></circle>
            <path d="M12 2v2"></path>
            <path d="M12 20v2"></path>
            <path d="M4.93 4.93l1.41 1.41"></path>
            <path d="M17.66 17.66l1.41 1.41"></path>
            <path d="M2 12h2"></path>
            <path d="M20 12h2"></path>
        </svg>
    </button>

    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(auth()->guard()->check()): ?>

        <div class="user-summary">

            <span class="user-avatar">
                <?php echo e(strtoupper(
                    substr(
                        auth()->user()->name,
                        0,
                        1
                    )
                )); ?>

            </span>

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

            </span>

        </div>

    <?php else: ?>

        <a
            href="<?php echo e(route('login')); ?>"
            class="button button-secondary button-small"
        >
            Login
        </a>

        <a
            href="<?php echo e(route('register')); ?>"
            class="button button-small"
        >
            Get Started
        </a>

    <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>

</div>

            </div>

        </header>

        
        <div
            class="mobile-nav-backdrop"
            data-nav-backdrop
        ></div>

        <aside
            id="mobile-navigation"
            class="mobile-nav"
            data-mobile-nav
        >

            <div class="mobile-nav__header">

                <a
                    href="<?php echo e(route('dashboard')); ?>"
                    class="brand"
                >
                    LiteraHub
                </a>

                <button
                    type="button"
                    class="icon-button"
                    aria-label="Close navigation"
                    data-nav-close
                >
                    ✕
                </button>

            </div>

            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(auth()->guard()->check()): ?>

    <div class="mobile-nav__user">

        <span class="user-avatar user-avatar--large">
            <?php echo e(strtoupper(
                substr(
                    auth()->user()->name,
                    0,
                    1
                )
            )); ?>

        </span>

        <div>

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

            </strong>

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

            </small>

        </div>

    </div>

<?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>

            <div class="mobile-nav__links">

                <?php if (isset($component)) { $__componentOriginal861eb04f5a7ccecb159b777162a33ded = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal861eb04f5a7ccecb159b777162a33ded = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.navigation.dashboard','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('navigation.dashboard'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>

<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal861eb04f5a7ccecb159b777162a33ded)): ?>
<?php $attributes = $__attributesOriginal861eb04f5a7ccecb159b777162a33ded; ?>
<?php unset($__attributesOriginal861eb04f5a7ccecb159b777162a33ded); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal861eb04f5a7ccecb159b777162a33ded)): ?>
<?php $component = $__componentOriginal861eb04f5a7ccecb159b777162a33ded; ?>
<?php unset($__componentOriginal861eb04f5a7ccecb159b777162a33ded); ?>
<?php endif; ?>

            </div>

            <div class="mobile-nav__footer">

                <button
                    type="button"
                    class="button button-secondary button-block"
                    onclick="LiteraHub.toggleTheme()"
                >
                    Change Theme
                </button>

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

                    <button
                        type="submit"
                        class="button button-ghost button-block"
                    >
                        Sign Out
                    </button>

                </form>

            </div>

        </aside>

        <main class="app-main">

            <div class="container">

                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(session('success')): ?>

                    <div
                        class="alert alert-success"
                        data-auto-dismiss="5000"
                    >
                        <?php echo e(session('success')); ?>

                    </div>

                <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>

                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(session('error')): ?>

                    <div class="alert alert-error">
                        <?php echo e(session('error')); ?>

                    </div>

                <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>

                <?php echo e($slot); ?>


            </div>

        </main>

    </div>

 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal5863877a5171c196453bfa0bd807e410)): ?>
<?php $attributes = $__attributesOriginal5863877a5171c196453bfa0bd807e410; ?>
<?php unset($__attributesOriginal5863877a5171c196453bfa0bd807e410); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal5863877a5171c196453bfa0bd807e410)): ?>
<?php $component = $__componentOriginal5863877a5171c196453bfa0bd807e410; ?>
<?php unset($__componentOriginal5863877a5171c196453bfa0bd807e410); ?>
<?php endif; ?><?php /**PATH C:\Users\Surface pro 4\OneDrive\Desktop\DevOps\literture\literahub\resources\views/components/layouts/dashboard.blade.php ENDPATH**/ ?>