
<?php $__env->startSection('title', $category->title.' - Düzenle'); ?>

<?php echo $__env->make('product::sidebar', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>


<?php $__env->startSection('_content'); ?>

<h1 class="title clearfix"><?php echo $category->title; ?> <a href="<?php echo URL::to('component/product/deletecategory/'.$category->id); ?>" class="btn btn-danger btn-xs pull-right"><i class="fa fa-trash-o"></i> Kaldır</a></h1>

<?php echo Former::open()->method('POST')->action(URL::to('component/product/editcategory/'.$category->id)); ?>

<?php echo Former::text('title')->label('Kategori Başlığı')->placeholder('Kategori Başlığı')->required(true)->value($category->title); ?>


<div class="form-group">
<label>Üst Kategori</label>
<select class="form-control" name="parent_id">
<option value="0">** Yok **</option>
<?php foreach($parent as $c): ?>
	<option <?php if($category->parent_id == $c->id): ?> selected <?php endif; ?>  value="<?php echo $c->id; ?>"><?php echo $c->title; ?></option>
<?php endforeach; ?>
</select>
</div>



<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(); ?>