
<?php $__env->startSection('title','Kategorije'); ?>
<?php $__env->startSection('content'); ?>
<h2 class="m-0 text-dark"><?php echo e($item->name); ?></h2>
<?php if($errors->any()): ?>
<div class="row">
    <div class="alert alert-danger">
        <ul>
            <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <li><?php echo e($error); ?></li>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </ul>
    </div>
</div>
<?php endif; ?>
<?php echo Form::open(
    array(
        'url' => route('admin/categories.update',$item),
        'method' => 'PUT',
        'class' => 'form-horizontal',
        'id' =>'categories-form',
        'role'=>'form',
        )); ?>

<div class="box box-primary">
    <!-- form start -->
    <div class="row">
        <div class="box-body col-md-3">
            <div class="form-group">
                <?php echo Form::label('name', 'Naziv kategorije'); ?>

                <?php echo Form::text('name',$item->name,['class'=>'form-control']); ?>

            </div>
        </div>
        <div class="box-body col-md-3">
            <div class="form-group">
                <?php echo Form::label('parent_id', 'Pripadajuća kategorija'); ?>

                <?php echo Form::select('parent_id',$categories,$item->parent_id,['class'=>'form-control','role' => 'textbox']); ?>

            </div>
        </div>
        <div class="box-body col-md-3">
            <div class="form-group">
                <?php echo Form::label('status', 'Status'); ?>

                <?php echo Form::select('status',$status,$item->status,['class'=>'form-control','role' => 'checkbox']); ?>

            </div>
        </div>
    </div>
</div>
<?php echo Form::submit(Lang::get('Snimi'), array('class' => 'btn btn-success')); ?>

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

<?php $__env->stopSection(); ?>
<?php echo $__env->make('adminlte::page', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH D:\Projects\laravel\laravel-shop\resources\themes\default\views/admin/categories/edit.blade.php ENDPATH**/ ?>