<?php $__env->startSection('content'); ?>
    <?php
        $useMarket = false;
        if($settings['sales_marketer']==1 && $type=='sales'){
            $useMarket = true;
        }
    ?>
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <h1>
            <?php echo app('translator')->getFromJson('front.Add'); ?>
            <small>
                <?php if($type=='sales'): ?>
                    <?php echo app('translator')->getFromJson('front.order'); ?>
                <?php else: ?>
                    <?php echo app('translator')->getFromJson('front.purchase'); ?>
                <?php endif; ?>
            </small>
         </h1>

    </section>
    <!-- Main content -->
    <form action="<?php echo e(route('orders.store')); ?>" method="post">
        <?php echo e(csrf_field()); ?>

        <?php echo $__env->make('orders._form',['notModal'=>true], array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
    </form>

    <?php echo $__env->make('orders.calander', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
    <?php echo $__env->make('orders.dicounts_bounse', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
<?php $__env->stopSection(); ?>
<?php $__env->startPush('js'); ?>
    <?php echo $__env->make('orders.js', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
<?php $__env->stopPush(); ?>
<?php $__env->startPush('css'); ?>
    <style>
        div.dataTables_paginate {
            text-align: left;
        }
        #myModal .modal-dialog {
            width: 100%;
            height: 100%;
            margin: 0;
            padding: 0;
        }

        #myModal .modal-content {
            height: auto;
            min-height: 100%;
            border: 0 none;
            border-radius: 0;
        }
        .typeahead {
            z-index: 1051;
            direction: rtl;
        }

        .twitter-typeahead {
            width: 100%;
            height: 28px;
        }
        .tt-query {
            -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
            -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
            box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
        }

        .tt-hint {
            color: #999
        }

        .tt-menu {    /* used to be tt-dropdown-menu in older versions */
            width: 100%;
            margin-top: 2px;
            padding: 4px 0;
            background-color: #fff;
            border: 1px solid #ccc;
            border: 1px solid rgba(0, 0, 0, 0.2);
            -webkit-border-radius: 4px;
            -moz-border-radius: 4px;
            border-radius: 4px;
            -webkit-box-shadow: 0 5px 10px rgba(0,0,0,.2);
            -moz-box-shadow: 0 5px 10px rgba(0,0,0,.2);
            box-shadow: 0 5px 10px rgba(0,0,0,.2);
        }

        .tt-suggestion {
            padding: 3px 20px;
            line-height: 24px;
            direction: rtl;
        }

        .tt-suggestion.tt-cursor,.tt-suggestion:hover {
            color: #fff;
            background-color: #0097cf;

        }

        .tt-suggestion p {
            margin: 0;
        }

    </style>
<?php $__env->stopPush(); ?>

<?php echo $__env->make('layouts.app', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>