<div class="headers">
    <script>
        $('#inventory').css('left', 0);

        {{--Create a Page to view a List of Sold Out Items.--}}
        function viewSoldOutItems(){
            var route_link = '/sold-out-items';

            $('#edit_dialog_content').html('<div style="text-align: center; margin: 20px 0 20px 0;"><img src="{{asset('images/loads/loader.gif')}}" border=0></div>')
                .load(encodeURI(route_link))
                .dialog({
                    modal: true,
                    width: 700,
                    title: "View Sold Out Items List",
                    open: function() {
                        $(this).parent().css({'top': 50});
                    }
                });
        }
    </script>
    <div class="control_headers" id="control_headers">
        <div class="dropdown" >
            <a href="{{url('manage-inventory')}}" class="guestDetails_links inner">Manage Inventory</a>
        </div>
        <div class="dropdown" >
            <a href="{{url('daily-sales')}}" class="guestDetails_links inner">Daily Sales </a>
        </div>
        <div class="dropdown" >
            <a onclick="viewSoldOutItems()" href="#" class="guestDetails_links inner">Sold Out Items </a>
        </div>
        <div class="dropdown">
            <a href="{{url('purchase-orders')}}" class="guestDetails_links inner">Purchase Orders</a>
        </div>
        @if(auth()->user()->admin == 1)
            <div class="dropdown" >
                <a href="{{url('inventory-analysis')}}" class="guestDetails_links inner">Inventory Analysis</a>
            </div>
            <div class="dropdown" >
                <a href="{{url('loaded-inventory-analysis')}}" class="guestDetails_links inner">Loaded Inventory Analysis</a>
            </div>
            <div class="dropdown">
                <a href="#" class="guestDetails_links inner">Old Inventory</a>
                <div class="dropdown-content">
                    <a href="{{url('stock-dash-old')}}">Graphical Analysis </a>
                    <a href="{{url('daily-sales-old')}}">Daily Sales</a>
                    <a href="{{url('manage-inventory-old')}}">Manage Inventory</a>
                    <a href="{{url('inventory-analysis-old')}}">Inventory Analysis </a>
                    <a href="{{url('loaded-inventory-analysis-old')}}">Loaded Inventory Analysis</a>
                </div>
            </div>
            <div class="dropdown" >
                <a href="{{url('comparative-inventory-analysis')}}" class="guestDetails_links inner">Comparative Inventory Analysis</a>
            </div>
        @endif
    </div>
</div>

