{!! Form::label('data[Order][payment]', t('Type')) !!}
{!! Form::select(
'data[Order][payment]',
$payment_options,
(
isset($data->Order->payment)
?
$data->Order->payment :
(
isset($settings->content->pos_manual_bookings) &&
$settings->content->pos_manual_bookings ? 'terminal' : null
)
),
['empty' => true, 'required']
) !!}
{!! Form::label(
'data[Order][send_notification]',
t('Notify the user by email')
) !!}
{!! Form::select(
'data[Order][send_notification]',
(
isset($settings->content->pos_manual_bookings) &&
$settings->content->pos_manual_bookings ?
[
'1' => t('Yes'),
'0' => t('No')
] :
[
'0' => t('No'),
'1' => t('Yes')
]
),
'0'
) !!}
{!! Form::label('data[Order][expiration]', t('Offer expire date')) !!}
{!! Form::text(
'data[Order][expiration]',
date('Y-m-d', strtotime('+1 week')),
['class' => 'form-control datepicker']
) !!}
{{--
{!! session_flush('PaymentGateway') !!}
--}}
{!! Form::label('data[Order][description]', t('Special Notes')) !!}
{!! Form::textarea(
'data[Order][extra][notes]',
(
isset($data->Order->extra->notes) ?
$data->Order->extra->notes :
(
isset($data->Order->description) ?
$data->Order->description : null
)
),
[
'rows' => 6
]
) !!}
@if (isset($email_templates) && $email_templates)
{!! Form::label('data[Order][extra][confirmation_template]', t('Confirmation Email Template')) !!}
{!! Form::select(
'data[Order][extra][confirmation_template]',
$email_templates,
(isset($data->Order->extra->confirmation_template) ? $data->Order->extra->confirmation_template : null),
['empty' => __('Default Template')]
) !!}
@endif
@if (isset($settings->content->no_tickets) && $settings->content->no_tickets)
{!! Form::label('data[Order][no_tickets]', t('Collection / E-Ticket')) !!}
{!! Form::select(
'data[Order][no_tickets]',
[
-1 => __('E-Tickets - send with confirmation'),
1 => label($venue->id, 'collectable_in_person', __('Collectable in person'))
],
(isset($data->Order->no_tickets) ? $data->Order->no_tickets : null),
['empty' => true]
) !!}
@endif
@if (
isset($settings->content->allow_contracts) &&
$settings->content->allow_contracts
)
{!! Form::label('data[Order][contract]', __('Create Contract')) !!}
{!! Form::select(
'data[Order][contract]',
[
0 => __('No'),
1 => __('Yes')
],
(isset($data->Order->contract) ? $data->Order->contract : null)
) !!}
@endif