<?php $__env->startSection("content"); ?>
<?php
$today = date('Y-m-d');
?>
<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('warehouse.index')); ?>">Warehouse Stock Status</a></li>
		<li class="active">New Warehouse StockStatus</li>
	</ol>
	<?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">
		<div class="panel-heading ">
			<span class="glyphicon glyphicon-list"></span>
			New Stock Status
		</div>
			<div class="panel-body">
					<?php echo Form::open(array('url' => 'warehouse', 'id' => 'warehouse', 'method' => 'POST')); ?>

			<div class="form-group col-xs-6">
				<?php echo Form::label('warehouse_id', 'Warehouse', array('class'=>'control-label')); ?>

				<?php echo Form::select('warehouse_id', array(null => 'Select Warehouse...	')+$warehouse, Input::old('warehouse'), array('class' => 'form-control', 'id' => 'supplier')); ?>


				<?php echo Form::label('item_code', 'Item Code', array('class'=>'control-label')); ?>

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


				<?php echo Form::label('commodity_id', 'Product Description', array('class'=>'control-label')); ?>

				<?php echo Form::select('commodity_id', array(null => 'Select Commodity...')+$commodity, Input::old('commodity'), array('class' => 'form-control', 'id' => 'commodity')); ?>


				<?php echo Form::label('batch_number', 'Lot / Batch Number'); ?>

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


				<?php echo Form::label('batch_quantity', 'Lot / Batch Quantity'); ?>

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


				<?php echo Form::label('total_quantity', 'Total Quantity'); ?>

				<?php echo Form::text('total_quantity',Input::get('batch_quantity'),array('class' => 'form-control', 'rows' => '2', 'id'=>'total_quantity', 'readonly')); ?>


				<div class="form-group">
					<label for="expiry_date" class="control-label">Expiry date</label>
					<div class="input-group date">
						<div class="input-group-addon">
							<i class="fa fa-calendar"></i>
						</div>
						<?php echo Form::text('expiry_date', Input::old('expiry_date'),array('class' => 'form-control standard-datepicker','required'=>'required','id'=>'expiry_date')); ?>

					</div>
				</div>

				<?php echo Form::label('shelf_life', 'Shelf Life'); ?>

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


				<?php echo Form::label('created_by', 'Recorded By'); ?>

				<?php echo Form::text('created_by', Auth::user()->name,array('class' => 'form-control', 'rows' => '2', 'id'=>'requested_by', 'readonly')); ?>

<br>
<br>
				<?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>
	</div>

	<script>
		//Date picker
		$('#datepicker').datepicker({
			autoclose: true
		});
	</script>
	<?php $__env->stopSection(); ?>

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