<nav class="navbar navbar-default navbar-static-top">
    <div class="container">
        <div class="navbar-header">

            <!-- Collapsed Hamburger -->
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#app-navbar-collapse">
                <span class="sr-only">Toggle Navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>

            <!-- Branding Image -->
            <a class="navbar-brand" href="<?php echo e(url('/')); ?>">
                <?php echo e(config('app.name', 'Laravel')); ?>

            </a>
        </div>

        <div class="collapse navbar-collapse" id="app-navbar-collapse">
            <?php if(Auth::check()): ?>
            <ul class="nav navbar-nav">
                <li <?php echo e(in_array(Request::segment(1), ['drafts','home']) ? 'class=active' : ''); ?>>
                    <?php echo e(link_to_route('cart.index', trans('nav_menu.draft_list'), [], ['class' => 'strong text-primary'])); ?>

                </li>
                <li <?php echo e((Request::segment(1) == 'transactions') ? 'class=active' : ''); ?>>
                    <?php echo e(link_to_route('transactions.index', trans('transaction.list'))); ?>

                </li>
                <li <?php echo e((Request::segment(1) == 'reports') ? 'class=active' : ''); ?>>
                    <?php echo e(link_to_route('reports.sales.index', trans('report.sales'))); ?>

                </li>
            </ul>
            <!-- Right Side Of Navbar -->
            <ul class="nav navbar-nav navbar-right">
                <!-- Authentication Links -->
                <li>
                    <form class="" style="padding-left: 10px;" action="<?php echo e(route('cart.add')); ?>" method="POST">
                        <?php echo e(csrf_field()); ?>

                        <input type="submit" class="btn btn-default navbar-btn" name="create-cash-draft" id="cash-draft-create-button" value="<?php echo e(trans('transaction.create_cash')); ?>">
                        <input type="submit" class="btn btn-default navbar-btn" name="create-credit-draft" id="credit-draft-create-button" value="<?php echo e(trans('transaction.create_credit')); ?>">
                    </form>
                </li>
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
                        <?php echo e(trans('product.product')); ?> <span class="caret"></span>
                    </a>
                    <ul class="dropdown-menu" role="menu">
                        <li><?php echo e(link_to_route('products.index', trans('product.list'))); ?></li>
                        <li><?php echo e(link_to_route('units.index', trans('unit.product_unit'))); ?></li>
                        <li role="separator" class="divider"></li>
                        <li><?php echo e(link_to_route('products.price-list', trans('product.print_price_list'))); ?></li>
                    </ul>
                </li>
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
                        <?php echo e(Auth::user()->name); ?> <span class="caret"></span>
                    </a>

                    <ul class="dropdown-menu" role="menu">
                        <li><?php echo e(link_to_route('users.index', trans('user.list'))); ?></li>
                        <li><?php echo e(link_to_route('backups.index', trans('backup.list'))); ?></li>
                        <li><?php echo e(link_to_route('log-files.index', 'Log Files')); ?></li>
                        <li><?php echo e(link_to_route('change-password', trans('auth.change_password'))); ?></li>
                        <li role="separator" class="divider"></li>
                        <li>
                            <a href="<?php echo e(route('logout')); ?>"
                            onclick="event.preventDefault();
                            document.getElementById('logout-form').submit();">
                            Logout </a>

                            <form id="logout-form" action="<?php echo e(route('logout')); ?>" method="POST" style="display: none;">
                                <?php echo e(csrf_field()); ?>

                                <button type="submit" style="display: none;" id="logout-button" >Logout</button>
                            </form>
                        </li>
                    </ul>
                </li>
            </ul>
            <?php endif; ?>
        </div>
    </div>
</nav>
<?php /**PATH C:\Users\Deni\Downloads\Compressed\Apotek candilkuya\grosir-obat-master\resources\views/layouts/partials/top-nav.blade.php ENDPATH**/ ?>