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

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


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

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

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

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

<div class="form-group">
<label>Üst Kategori</label>
<select class="form-control" name="parent_id">
<option value="0">** Yok **</option>
<?php foreach($category as $c): ?>
	<option value="<?php echo $c->id; ?>"><?php echo $c->title; ?></option>
<?php endforeach; ?>
</select>
</div>




<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(); ?>