<?php $__env->startSection('content'); ?>
<div class="content-wrapper">
	<section class="content-header">
		<h1>
		Clientes
		</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.edit')); ?> cliente</h3>
					</div>
					<div class="box-body">
						<?php echo Form::model($customer, ['method' => 'PATCH', 'url' => 'companies/'.$customer->id]); ?>

						<?php echo Form::hidden('id', $customer->id); ?>

						<?php echo $__env->make('companies.form', ['new' => false], array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
						<?php echo Form::close(); ?>

					</div>
				</div>
			</div>
		</div>

		<div class="row">
			<a class="btn btn-app btn-flat bg-green" href="<?php echo e(asset('/companies/'.$customer->id.'/bank-account/create')); ?>"><i class="fa fa-bank"></i> <?php echo e(trans('general.bank')); ?></a>
		</div>
	</section>
</div>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('foot'); ?>
<script src="<?php echo e(asset('/plugins/select2/select2.min.js')); ?>"></script>
<script src="<?php echo e(asset('plugins/jQueryUI/jquery-ui.min.js')); ?>"></script>
<script src="<?php echo e(asset('/plugins/input-mask/jquery.inputmask.js')); ?>"></script>
<script src="<?php echo e(asset('/plugins/input-mask/jquery.inputmask.extensions.js')); ?>"></script>
<script src="<?php echo e(asset('/plugins/iCheck/icheck.js')); ?>"></script>
<script type="text/javascript">
	$(function () {
		
		$("select").select2({
			placeholder: "Select",
			allowClear: true
		});

		var data = <?php echo $boats; ?>;
		$("#boats").select2({
			data: data
		});

		$('#boats').val(<?php echo $selectedBoats; ?>).trigger('change');
	});
	
	$(document).ready(function(){
		$('input').iCheck({
		checkboxClass: 'icheckbox_square-green',
		radioClass: 'iradio_square-green'
		});
	});
</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(); ?>