<?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>
        <form method="post" action="<?php echo e(url('/panel/product/'.$Product->id)); ?>">
            <input value="<?php echo e($Product->title); ?>" class="edit" name="title" id="title" size="80" placeholder="عنوان محصول(بیش از ده حرف و کمتر از 60 حرف)"/>
            <input value="<?php echo e($Product->price); ?>" class="edit" name="price" id="price" size="80" placeholder="قیمت"/>
            <input name="_token" hidden value="<?php echo e(csrf_token()); ?>">
            <textarea   name="content" id="content"  cols="100" rows="15" placeholder="توضیحات"><?php echo e($Product->description); ?></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 -->
            <input type="submit" class="btn btn-default btn-lg" value="ویرایش" name="send" id="submit"  data-toggle="modal" data-target=".bs-example-modal-lg">

        </form>
    </div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('master', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>