{!! Form::label('data[Settings][active]', t('Booking Form Type')) !!}
{!! Form::select(
'data[Settings][active]',
[
-1 => t('Disabled'),
0 => t('Enquiry Only'),
1 => t('Booking & Enquiry'),
2 => t('Booking Only'),
3 => t('Pending Booking')
],
(isset($data->Settings->active) ? $data->Settings->active : 0)
) !!}
{!! Form::label('data[Settings][content][fee]', t('Operational cost')) !!}
{!! Form::select(
'data[Settings][content][fee]',
[
'venue' => t(
'Pay our %s%% fee (min %s per sale) yourself from your sales',
[
$paymentRules->fee,
amount($paymentRules->min)
]
),
'user' => t(
'Pass our %s%% fee (min %s per sale) onto the customer',
[
$paymentRules->fee,
amount($paymentRules->min)
]
)
],
(isset($data->Settings->content->fee) ? $data->Settings->content->fee : 'venue')
) !!}
{!! Form::label('data[Settings][content][guest_checkout]', t('Guest Checkout')) !!}
{!! Form::select(
'data[Settings][content][guest_checkout]',
[
0 => t('Disable guest checkout'),
1 => t('Enable guest checkout'),
2 => t('Force guest checkout')
],
(isset($data->Settings->content->guest_checkout) ? $data->Settings->content->guest_checkout : 0)
) !!}
{!! Form::label(
'data[Settings][payment_deadline]',
t('Payment Deadline (in days)')
) !!}
{!! Form::number(
'data[Settings][payment_deadline]',
(
isset($data->Settings->payment_deadline) ?
$data->Settings->payment_deadline : null
),
[
'placeholder' => t('on the date of the event')
]
)
!!}
{!! Form::label(
'data[Settings][content][order_report_type]',
t('Order Report Format')
) !!}
{!! Form::select(
'data[Settings][content][order_report_type]',
[
'order' => t('Group items by order'),
'category' => t('Group items by category')
],
(
isset($data->Settings->content->order_report_type) ?
$data->Settings->content->order_report_type : 'order'
)
) !!}