
<?php $__env->startSection('title', 'Yeni Ürün'); ?>

<?php echo $__env->make('product::sidebar', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>

<?php $__env->startSection('foot_hook'); ?>
@parent
<script>


    CKEDITOR.replace('description', {
        filebrowserUploadUrl: '/component/page/uploader/<?php echo Request::segment(4); ?>',
        height: '100px'
    });


</script>
<?php $__env->stopSection(); ?>

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




<?php $__env->startSection('_content'); ?>

<h1 class="title">Yeni Ürün</h1>

<?php echo Former::open_for_files()->method('POST')->action(URL::to('component/product/create')); ?>

<?php echo Former::text('title')->label('Ürün Başlığı')->placeholder('Ürün Başlığı')->required(true); ?>

<?php echo Former::select('category_id')->options($category)->label('Ürün Kategorisi'); ?>

<div class="form-group">
    <label for="title" class="control-label">Ürün Görseli</label>
    <input type="file" id="image" name="image" multiple accept="image/*">
</div>


<?php echo Former::textarea('description')->label('Ürün Açıklaması'); ?>

<button type="submit" class="btn btn-danger">Oluştur</button>


<?php echo Former::close(); ?>

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