<?php $__env->startSection('title', 'محصول جدید'); ?>

<?php $__env->startSection('head'); ?>
    <link rel="stylesheet" href="<?php echo e(asset('assets/css/home.css')); ?>">
    <link rel="stylesheet" href="<?php echo e(asset('assets/css/chosen.css')); ?>">
    <link rel="stylesheet" href="<?php echo e(asset('assets/css/chosen.min.css')); ?>">
    <meta name="csrf-token" content="<?php echo e(csrf_token()); ?>">
<?php $__env->stopSection(); ?>
<?php $__env->startSection('scripts'); ?>
    <script src="<?php echo e(asset('assets/js/chosen.jquery.js')); ?>"></script>
    <script src="<?php echo e(asset('assets/js/chosen.jquery.min.js')); ?>"></script>
    <script src="<?php echo e(asset('assets/js/jss/new-product.js')); ?>"></script>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('main'); ?>
    <div style="margin-top: 30px" class="col-md-10  col-md-offset-2 col-xs-10 col-xs-offset-2">
        <br>
        <input class="edit" name="title" id="title" size="80" placeholder="عنوان محصول(بیش از ده حرف و کمتر از 60 حرف)"/>
        <input class="edit" name="price" id="price" size="80" placeholder="قیمت"/>
        <textarea  name="content" id="content"  cols="100" rows="15" placeholder="توضیحات"></textarea><br>
        <select  id="subcat" name="subcat" data-placeholder="زیر دسته محصول"   class="chosen chosen-rtl"  style="width:600px;direction: ltr">
            <?php $__empty_1 = true; $__currentLoopData = $Subcat; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $subcat): $__env->incrementLoopIndices(); $loop = $__env->getFirstLoop(); $__empty_1 = false; ?>
                <option style=""  value="<?php echo e($subcat->id); ?>"><?php echo e($subcat->name); ?></option>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getFirstLoop(); if ($__empty_1): ?>
            <?php endif; ?>
        </select><br><br>
        <!-- Large modal -->
        <button type="submit" class="btn btn-default btn-lg" name="send" id="submit"  data-toggle="modal" data-target=".bs-example-modal-lg">ثبت</button>
        <br><br><br><br>
        <div class="modal fade bs-example-modal-lg" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel">
            <div class="modal-dialog modal-lg">
                <div class="modal-content" style="padding: 10px;font-size: 16px;text-align: center"  id="ask">
                    <p id="posted"></p>
                </div>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('master', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>