<?php $__env->startSection("content"); ?>
<div>
	<ol class="breadcrumb">
	  <li><a href="<?php echo e(URL::route('user.home')); ?>"><?php echo trans('messages.home'); ?></a></li>
       <li><a href="<?php echo e(URL::route('storeunit.index')); ?>">Store Sections</a></li>
	 	  <li class="active">New Store Section</li>
	</ol>
</div>
<?php if(Session::has('message')): ?>
	<div class="alert alert-info"><?php echo trans(Session::get('message')); ?></div>
<?php endif; ?>
<?php if($errors->all()): ?>
                <div class="alert alert-danger">
                    <?php echo HTML::ul($errors->all()); ?>

                </div>
<?php endif; ?>
<div class="panel panel-default" style="width:50%">
	<div class="panel-heading ">
		<span class="glyphicon glyphicon-th-large"></span> Update Store Section
	</div>
	<div class="panel-body">

								 <?php echo Form::model($storeunit, array('route' => array('storeunit.update', $storeunit->id), 'method' => 'PUT', 'id' => 'form-edit-storeunit')); ?>

			            <?php echo Form::open(array('url' => 'storeunit', 'id' => 'form-storeunit', 'method' => 'POST')); ?>


									<div class="form-group">
											<?php echo Form::label('name', 'Store Section'); ?>

											<?php echo Form::text('name', Input::old('name'), array('class' => 'form-control', 'rows' => '2')); ?>

									</div>
									<!-- <div class="form-group">
											<?php echo Form::label('width', 'Width'); ?>

											<?php echo Form::text('width', Input::old('width'),array('placeholder' => 'Meters','class' => 'form-control', 'rows' => '2')); ?>

									</div> -->
									<!-- <div class="form-group">
										 <?php echo Form::label('length', 'Length'); ?>

										 <?php echo Form::textarea('length', Input::old('length'), array('placeholder' => 'Meters','class' => 'form-control', 'rows' => '2')); ?>

								 </div>
									<div class="form-group">
										 <?php echo Form::label('height', 'Height'); ?>

										 <?php echo Form::text('height', Input::old('height'), array('placeholder' => 'Meters','class' => 'form-control', 'rows' => '2')); ?>

								 </div> -->

								 <div class="form-group">
									 <?php echo Form::label('capacity', 'Capacity'); ?>

									 <?php echo Form::text('capacity', Input::old('capacity'),array('placeholder' => 'capacity','class' => 'form-control', 'rows' => '2')); ?>

								 </div>

									<div class="form-group">
											<?php echo Form::label('min_temp', 'Minimum Storage Temperature'); ?>

											<?php echo Form::text('min_temp', Input::old('min_temp'), array('placeholder' => '°C','class' => 'form-control', 'rows' => '2')); ?>

									</div>
									<div class="form-group">
											<?php echo Form::label('max_temp', 'Maximum Storage Temperature'); ?>

											<?php echo Form::text('max_temp', Input::old('max_temp'),array('placeholder' => '°C','class' => 'form-control', 'rows' => '2')); ?>

									</div>

            <div class="form-group actions-row">
                    <?php echo Form::button("<span class='glyphicon glyphicon-save'></span> ".trans('messages.save'),
                        array('class' => 'btn btn-primary', 'onclick' => 'submit()')); ?>

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


		<?php Session::put('SOURCE_URL', URL::full());?>
	</div>

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

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