@extends(Auth::check() && Auth::user()->role->layout == 1 ? 'layouts.admin' : 'layouts.employee') @section('head') @endsection @section('content')

{{trans('general.reservations')}}

@if(Auth::user()->role->role_permission('delete_reservation'))
{!! Form::open(['route' => 'busqueda', 'method' => 'GET']) !!}
{!! Form::label('boat_id', trans('general.boats')) !!}
{!! Form::select('boat_id', $barcos, null, ['class' => 'form-control']) !!} @if ($errors->has('boat_id')) {{ $errors->first('boat_id') }} @endif
{!! Form::label('date_start', trans('general.date_start')) !!}
{!! Form::text('date_start', null, ['class' => 'form-control date_start']) !!}
@if ($errors->has('date_start')) {{ $errors->first('date_start') }} @endif
{!! Form::label('schedule_id', trans('general.schedule')) !!}
{!! Form::select('schedule_id', $turno, null, ['class' => 'form-control']) !!} @if ($errors->has('schedule_id')) {{ $errors->first('schedule_id') }} @endif
{!! Form::label('status_id', trans('general.estado')) !!}
{!! Form::select('status_id', $estado, null, ['class' => 'form-control']) !!} @if ($errors->has('status_id')) {{ $errors->first('status_id') }} @endif
{!! Form::label('boat', trans('general.buscador')) !!}
{!! Form::submit(trans('general.buscar'), ['class' => 'form-control btn btn-info']) !!}
{!! Form::close() !!}
@endif
@include('alert.success') @include('alert.errorlist') @if(Auth::user()->role->role_permission('create_reservation') && Auth::user()->role->layout == 1 ) {{trans('general.nueva')}} {{trans('general.reservation')}} @endif @if(Auth::user()->role->layout == 1) @endif

{{trans('general.lista')}} {{trans('general.reservations')}}

{!! Form::open(['url' => '/reservations/search', 'method' => 'get']) !!}
{!! Form::text('term', null, ['class' => 'form-control pull-right', 'placeholder' => 'Search']) !!}
{!! Form::close() !!}
@endsection @section('foot') @endsection