<!--start header -->
<header>
    <div class="topbar d-flex align-items-center">
        <nav class="navbar navbar-expand gap-3">
            <div class="mobile-toggle-menu"><i class='bx bx-menu'></i>
            </div>
              <div class="top-menu ms-auto">
                <ul class="navbar-nav align-items-center gap-1">
                    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('purchase.bill.create')): ?>
                    <div class="d-flex">
                        <a href="<?php echo e(route('purchase.bill.create')); ?>" class="btn btn-sm btn-outline-primary radius-30 px-4" data-bs-toggle="tooltip" data-bs-placement="bottom" title="<?php echo e(__('purchase.add')); ?>">
                            <i class="bx bx-plus-circle mr-1"></i><?php echo e(__('purchase.purchase')); ?>

                        </a>
                    </div>
                    <?php endif; ?>

                    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('sale.invoice.create')): ?>
                    <div class="d-flex">
                        <a href="<?php echo e(route('sale.invoice.create')); ?>" class="btn btn-sm btn-outline-danger radius-30 px-4" data-bs-toggle="tooltip" data-bs-placement="bottom" title="<?php echo e(__('sale.add')); ?>">
                            <i class="bx bx-plus-circle mr-1"></i><?php echo e(__('sale.sale')); ?>

                        </a>
                    </div>
                    <?php endif; ?>

                    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('sale.invoice.create')): ?>
                    <div class="d-flex">
                        <a href="<?php echo e(route('pos.create')); ?>" class="btn btn-sm btn-success radius-30 px-4" data-bs-toggle="tooltip" data-bs-placement="bottom" title="<?php echo e(__('sale.pos')); ?>"><i class="bx bx-plus-circle mr-1"></i><?php echo e(__('sale.pos')); ?></a>
                    </div>
                    <?php endif; ?>

                    <?php if (isset($component)) { $__componentOriginal71e36bd7ebc5969bd6b7b669d0f821fe = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal71e36bd7ebc5969bd6b7b669d0f821fe = $attributes; } ?>
<?php $component = App\View\Components\HeaderShortcutMenu::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('header-shortcut-menu'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\HeaderShortcutMenu::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal71e36bd7ebc5969bd6b7b669d0f821fe)): ?>
<?php $attributes = $__attributesOriginal71e36bd7ebc5969bd6b7b669d0f821fe; ?>
<?php unset($__attributesOriginal71e36bd7ebc5969bd6b7b669d0f821fe); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal71e36bd7ebc5969bd6b7b669d0f821fe)): ?>
<?php $component = $__componentOriginal71e36bd7ebc5969bd6b7b669d0f821fe; ?>
<?php unset($__componentOriginal71e36bd7ebc5969bd6b7b669d0f821fe); ?>
<?php endif; ?>

                    <?php if (isset($component)) { $__componentOriginal7721ec5e1620444c27a724578d68d165 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal7721ec5e1620444c27a724578d68d165 = $attributes; } ?>
<?php $component = App\View\Components\FlagToggle::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('flag-toggle'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\FlagToggle::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal7721ec5e1620444c27a724578d68d165)): ?>
<?php $attributes = $__attributesOriginal7721ec5e1620444c27a724578d68d165; ?>
<?php unset($__attributesOriginal7721ec5e1620444c27a724578d68d165); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal7721ec5e1620444c27a724578d68d165)): ?>
<?php $component = $__componentOriginal7721ec5e1620444c27a724578d68d165; ?>
<?php unset($__componentOriginal7721ec5e1620444c27a724578d68d165); ?>
<?php endif; ?>

                    <li class="nav-item dark-mode d-none d-sm-flex">
                        <a class="nav-link dark-mode-icon theme-mode" data-base-url="<?php echo e(url('/')); ?>" href="javascript:;"><i class='bx bx-moon'></i>
                        </a>
                    </li>

                </ul>
            </div>
            <div class="user-box dropdown px-3">
                <a class="d-flex align-items-center nav-link dropdown-toggle gap-3 dropdown-toggle-nocaret" href="#" role="button" data-bs-toggle="dropdown" aria-expanded="false">
                    <img src="<?php echo e(url('/users/getimage/' . auth()->user()->avatar)); ?>" class="user-img" alt="user avatar">
                    <div class="user-info">
                        <p class="user-name mb-0"><?php echo e(auth()->user()->username); ?></p>
                        <p class="designattion mb-0"><?php echo e(auth()->user()->role->name); ?></p>
                    </div>
                </a>
                <ul class="dropdown-menu dropdown-menu-end">
                    <li><a class="dropdown-item d-flex align-items-center" href="<?php echo e(route('user.profile')); ?>"><i class="bx bx-user fs-5"></i><span><?php echo e(__('user.profile')); ?></span></a>
                    </li>
                    <li>
                        <div class="dropdown-divider mb-0"></div>
                    </li>
                    <li>
                        <form method="POST" action="<?php echo e(route('logout')); ?>">
                        <?php echo csrf_field(); ?>
                            <button type="submit" class="dropdown-item d-flex align-items-center"><i class="bx bx-log-out-circle"></i><?php echo e(__('auth.logout')); ?></button>
                        </form>
                    </li>
                </ul>
            </div>
        </nav>
    </div>
</header>
<!--end header -->
<?php /**PATH C:\xampp\htdocs\dt\resources\views/layouts/header.blade.php ENDPATH**/ ?>