        <script src="<?php echo e(asset('/js/ckeditor/ckeditor.js')); ?>" type="text/javascript" charset="utf-8" ></script>
    <!-- Text Wrapper. Contains page content -->
    <section class="content-wrapper">
        <!-- Text Header (Page header) -->
        <section class="content-header">
            <h1>
                <?php echo e($product->h1); ?>

            </h1>
            <ol class="breadcrumb">
                <li class="breadcrumb-item"><a href="/admin"><i class="fa fa-dashboard"></i> Главная</a></li>
                <li class="breadcrumb-item active"><a href="/admin/products">Товары</a></li>
                <li class="breadcrumb-item active"><?php echo e($product->h1); ?></li>
            </ol>
        </section>

        <!-- Main content -->
        <section class="content">
            <div class="row">
                <div class="col-md-12">
                    <div class="box box-solid bg-dark">
                        <div class="box-header with-border">
                            <h4 class="box-title">Форма редактирования товара</h4>
                            <h6 class="box-subtitle">Внесите соответствующие изменения и нажмите кнопку <span class="text-warning">Сохранить</span></h6>
                            <ul class="box-controls pull-right">
                                <li><a class="box-btn-close" href="#"></a></li>
                                <li><a class="box-btn-slide" href="#"></a></li>
                                <li><a class="box-btn-fullscreen" href="#"></a></li>
                            </ul>
                        </div>
                        <!-- /.box-header -->
                        <div class="box-body">
                            <div class="row">
                                <div class="col">
                                    <form id="form-save-1" class="settings" method="post" action="/admin/products">
                                        <?php echo csrf_field(); ?>
                                        <input type="text" name="status" value="edit" hidden>
                                        <input type="text" name="productID" value="<?php echo $product->id; ?>" hidden>
                                        <div class="row">
                                            <div class="col-lg-12">
                                                <div class="form-group">
                                                    <h5>Производители<span class="text-danger">*</span></h5>
                                                    <select class=" form-control" name="manufactures_id">
                                                        <?php $__currentLoopData = $manufactures; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                            <option value="<?php echo $item->id; ?>"  <?php if($item->id == $product->manufactures_id): ?> selected <?php endif; ?>>&emsp;<?php echo $item->name; ?></option>
                                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                                    </select>
                                                </div>
                                                <div class="form-group">
                                                    <h5>Тип<span class="text-danger">*</span></h5>
                                                    <select class=" form-control" name="typs_id">
                                                        <?php $__currentLoopData = $types; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                            <option value="<?php echo $item->id; ?>"  <?php if($item->id == $product->typs_id): ?> selected <?php endif; ?>>&emsp;<?php echo $item->name; ?></option>
                                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                                    </select>
                                                </div>
                                                <div class="form-group">
                                                    <h5>Наличие<span class="text-danger">*</span></h5>
                                                    <select class=" form-control" name="stocks_id">
                                                        <?php $__currentLoopData = $stocks; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                            <option value="<?php echo $item->id; ?>"  <?php if($item->id == $product->stocks_id): ?> selected <?php endif; ?>>&emsp;<?php echo $item->name; ?></option>
                                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                                    </select>
                                                </div>
                                                <div class="form-group">
                                                    <h5>Seo URL<span class="text-danger">*</span></h5>
                                                    <div class="controls">
                                                        <input type="text" name="alias" class="form-control" value="<?php echo e($product->alias); ?>">
                                                    </div>
                                                </div>
                                                <div class="form-group">
                                                    <h5>SEO Заголовок<span class="text-danger">*</span></h5>
                                                    <div class="controls">
                                                        <input type="text" name="title" class="form-control" required data-validation-required-message="This field is required" minlength="5" maxlength="90" placeholder="Оптимальная длина title варьируется от 10 до 90 символов" value="<?php echo e($product->title); ?>">
                                                    </div>
                                                </div>
                                                <div class="form-group">
                                                    <h5>SEO Описание<span class="text-danger">*</span></h5>
                                                    <div class="controls">
                                                        <input type="text" name="description" class="form-control" required data-validation-required-message="This field is required" minlength="5" maxlength="300" placeholder="Оптимальная длина description варьируется от 50 до 300 символов" value="<?php echo e($product->description); ?>">
                                                    </div>
                                                </div>
                                                <div class="form-group">
                                                    <h5>Заголовок h1<span class="text-danger">*</span></h5>
                                                    <div class="controls">
                                                        <input type="text" name="h1" class="form-control" value="<?php echo e($product->h1); ?>">
                                                    </div>
                                                </div>
                                                <div class="form-group">
                                                    <h5>Изображение<span class="text-danger">*</span></h5>
                                                    <div class="controls">
                                                        <textarea name="img" id="editor1"><img src="<?php echo e($product->img); ?>" alt="" width="300"></textarea>
                                                        <script>let editor1 = CKEDITOR.replace( 'editor1', {toolbar: [{ name: 'insert', items: [ 'Image'] },]});</script>
                                                    </div>
                                                </div>
                                                <div class="form-group">
                                                    <h5>Текст<span class="text-danger">*</span></h5>
                                                    <div class="controls">
                                                        <textarea name="text" id="editor11"><?php echo e($product->text); ?></textarea>
                                                        <script>let editor11 = CKEDITOR.replace( 'editor11' );</script>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="text-xs-right">
                                            <button type="submit" class="btn btn-info  w-100" data-id="1">Сохранить</button>
                                            <a href="/admin/products" class="btn btn-info ">Отменить</a>
                                        </div>
                                    </form>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </section>
    </section>
