{!! Form::label('data[Enquiry][name]', t('Name')) !!}
{!! Form::text(
'data[Enquiry][name]',
null,
['class' => 'form-control', 'required']
) !!}
{!! Form::label('data[Enquiry][email]', t('Email')) !!}
{!! Form::email(
'data[Enquiry][email]',
null,
['class' => 'form-control']
) !!}
{!! Form::label('data[Enquiry][phone]', t('Phone')) !!}
{!! Form::text(
'data[Enquiry][phone]',
null,
['class' => 'form-control']
) !!}
{!! Form::label('data[Enquiry][category_id]', t('Enquiry Type')) !!}
{!! Form::select(
'data[Enquiry][category_id]',
$categories,
null,
['class' => 'form-control', 'required']
) !!}
{!! Form::label('data[Enquiry][people]', t('Number of people')) !!}
{!! Form::number(
'data[Enquiry][people]',
null,
[
'class' => 'form-control',
'min' => 0
]
) !!}
{!! Form::label('data[Enquiry][date]', t('Date')) !!}
{!! Form::text(
'data[Enquiry][date]',
null,
[
'class' => 'form-control datepicker', 'required',
'data-datepicker-min' => date('Y-m-d')
]
) !!}
{!! Form::label('data[Enquiry][start_time]', t('Time')) !!}
{!! Form::select(
'data[Enquiry][start_time]',
array_merge(['' => ''], array_combine(times(['step' => 15]), times(['step' => 15]))),
null,
['class' => 'form-control']
) !!}
{!! Form::label('data[Enquiry][end_time]', t('Until')) !!}
{!! Form::select(
'data[Enquiry][end_time]',
array_merge(['' => ''], array_combine(times(['step' => 15]), times(['step' => 15]))),
null,
['class' => 'form-control']
) !!}
{!! Form::label('data[Enquiry][description]', t('Notes')) !!}
{!! Form::textarea(
'data[Enquiry][description]',
null,
['class' => 'form-control']
) !!}