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

	<?php echo Form::text('employee', isset($bank_account) && $bank_account->customer ? $bank_account->customer->fiscal_reason : (isset($customer->id) ? $customer->fiscal_reason : null), ['class' => 'form-control', 'id' => 'employee', isset($bank_account) || isset($customer->id) ? 'disabled' : '']); ?>

	<?php echo Form::hidden('customer_id', isset($customer->id) ? $customer->id : null, ['id' =>  'customer_id']); ?>

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

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

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

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

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

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

	<?php if($errors->has('bank_name')): ?>
		<span class="help-block">
			<strong><?php echo e($errors->first('bank_name')); ?></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(isset($customer->id) ? asset('/companies/'.$customer->id) : asset('/bank-accounts')); ?>" type="button" class="btn btn-default btn-flat"><?php echo e(trans('general.cancel')); ?></a>
</div>
