
<?php $__env->startSection('title', $product->title); ?>

<?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',
        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 clearfix"><?php echo $product->title; ?>  <a href="<?php echo URL::to('component/product/delete/'.$product->id); ?>" class="btn btn-danger btn-xs pull-right"><i class="fa fa-trash-o"></i> Ürünü Kaldır</a></h1>

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

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

<?php echo Former::select('category_id')->options($category, $product->category_id)->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ı')->value($product->description); ?>
<button type="submit" class="btn btn-danger">Değişiklikleri Kaydet</button>

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

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