

<?php $__env->startSection('head'); ?>
	<link href="<?php echo e(asset('/plugins/select2/select2.min.css')); ?>" rel="stylesheet" />
	<link rel="stylesheet" href="<?php echo e(asset('/plugins/datepicker/datepicker3.css')); ?>">
<?php $__env->stopSection(); ?>

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

		</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')); ?> <?php echo e(trans('general.boats')); ?></h3>
					</div>
					<div class="box-body">
						<?php echo Form::model($boat, ['method' => 'PATCH', 'url' => 'boats/'.$boat->id]); ?>

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

						<?php echo $__env->make('boats.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/select2/select2.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.date.extensions.js')); ?>"></script>
	<script src="<?php echo e(asset('/plugins/input-mask/jquery.inputmask.extensions.js')); ?>"></script>
	<script src="<?php echo e(asset('/plugins/datepicker/bootstrap-datepicker.js')); ?>"></script>
	<script type="text/javascript">
		$(function () {
			$('.datepicker').datepicker({
				autoclose: true
			});
			$("#datemask").inputmask("mm/dd/yyyy", {"placeholder": "mm/dd/yyyy"});
			$("[data-mask]").inputmask();
			
			$("select").select2({
				placeholder: "Select",
				allowClear: true
			});

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

			 $('#users').val(<?php echo $selectedUsers; ?>).trigger('change');
		});
    </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(); ?>