	<div class="form-group<?php echo e($errors->has('user_id') ? ' has-error' : ''); ?>">
	<?php echo Form::label('user_id', trans('general.usuario')); ?>

	<?php echo Form::select('user_id', $users, null, ['class' => 'form-control']); ?>

	<?php if($errors->has('user_id')): ?>
		<span class="help-block">
			<strong><?php echo e($errors->first('user_id')); ?></strong>
		</span>
	<?php endif; ?>
</div>

<div class="form-group<?php echo e($errors->has('subject') ? ' has-error' : ''); ?>">
	<?php echo Form::label('subject', trans('general.subject')); ?>

	<?php echo Form::text('subject', isset($incidences->user_id) ? $incidences->subject : null, ['class' => 'form-control']); ?>

	<?php if($errors->has('subject')): ?>
		<span class="help-block">
			<strong><?php echo e($errors->first('subject')); ?></strong>
		</span>
	<?php endif; ?>
</div>
<div class="form-group<?php echo e($errors->has('date') ? ' has-error' : ''); ?>">
	<?php echo Form::label('date', trans('general.desde')); ?>

	<div class="input-group">
		<div class="input-group-addon">
		<i class="fa fa-calendar"></i>
		</div>
		<?php echo Form::text('date', (isset($incidences->date)) ? date('d/m/Y', strtotime($incidences->date)) : date('d/m/Y') , [ 'class' => 'form-control datepicker']); ?>

	</div>
	<?php if($errors->has('date')): ?>
		<span class="help-block">
			<strong><?php echo e($errors->first('date')); ?></strong>
		</span>
	<?php endif; ?>
</div>
<div class="form-group<?php echo e($errors->has('comments') ? ' has-error' : ''); ?>">
	<?php echo Form::label('comments', trans('general.incidence').' '.trans('general.descripcion')); ?>

	<?php echo Form::textarea('comments', isset($incidences->user_id) ? $incidences->comments : null, ['class' => 'form-control']); ?>

	<?php if($errors->has('comments')): ?>
		<span class="help-block">
			<strong><?php echo e($errors->first('comments')); ?></strong>
		</span>
	<?php endif; ?>
</div>

<div class="pull-right">
	<?php echo Form::submit(trans('general.save'), ['class' => 'btn btn-success btn-flat']); ?>

	<a href="<?php echo e(asset('/incidences')); ?>" type="button" class="btn btn-default btn-flat"><?php echo e(trans('general.cancel')); ?></a>
</div>
