<?php $__env->startSection('head'); ?>
	<link rel="stylesheet" href="<?php echo e(asset('plugins/jQuery/themes/smoothness/jquery-ui.min.css')); ?>">
<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>
<div class="content-wrapper">
	<section class="content-header">
		<h1>
		<?php echo e(trans('general.bank')); ?>

		</h1>
	</section>

	<section class="content">
		<div class="row">
			<div class="col-md-8 col-md-offset-2">
				<div class="box box-success">
					<div class="box-header">	
						<h3 class="box-title"><?php echo e(trans('general.nuevo')); ?> <?php echo e(trans('general.bank')); ?></h3>
					</div>
					<div class="box-body">
						<?php echo Form::open(['url' => isset($customer->id) ? 'companies/'.$customer->id.'/bank-account' : 'bank-accounts']); ?>

						<?php echo $__env->make('bank-accounts.form', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
						<?php echo Form::close(); ?>

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

<?php $__env->startSection('foot'); ?>
	<script src="<?php echo e(asset('plugins/jQueryUI/jquery-ui.min.js')); ?>"></script>
	<script type="text/javascript">
		$(function () {
			$( "#employee" ).autocomplete({
				source: "<?php echo e(asset('autocomplete/customers')); ?>",
				minLength: 1,
				select: function(event, ui) {
					$('#employee').val(ui.item.value);
					$('#customer_id').val(ui.item.id);
				}
			});
		});
    </script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make(Auth::check() && Auth::user()->role->layout == 1 ? 'layouts.admin' : 'layouts.employee', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>