{!! Form::hidden(
'data[Settings][content][payment][services][' . $i . '][enabled]',
0
) !!}
{!! Form::checkbox(
'data[Settings][content][payment][services][' . $i . '][enabled]',
1,
(
isset($data->Settings->content->payment->services[$i]->enabled) &&
$data->Settings->content->payment->services[$i]->enabled ?
true : false
)
) !!}
{!! Form::label(
'data[Settings][content][single_table]',
__('Service charge %s', $i+1)
) !!}
{!! Form::label('data[Settings][content][payment][services][' . $i . '][tier]', t('Service Group')) !!}
{!! Form::select(
'data[Settings][content][payment][services][' . $i . '][tier]',
numbers(['min' => 1, 'max' => 5, 'format' => 'Group %s']),
(
isset($data->Settings->content->payment->services[$i]->tier) ?
$data->Settings->content->payment->services[$i]->tier :
null
),
['empty' => __('Every product')]
) !!}
{!! Form::label(
'data[Settings][content][payment][services][' . $i . '][service]',
t('Service %')
) !!}
{!! Form::number(
'data[Settings][content][payment][services][' . $i . '][service]',
(
isset($data->Settings->content->payment->services[$i]->service) ?
$data->Settings->content->payment->services[$i]->service : null
),
[
'min' => 0,
'step' => '0.01'
]
) !!}
{!! Form::label(
'data[Settings][content][payment][services][' . $i . '][min_service]',
t('Min Service in £')
) !!}
{!! Form::number(
'data[Settings][content][payment][services][' . $i . '][min_service]',
(
isset($data->Settings->content->payment->services[$i]->min_service) ?
$data->Settings->content->payment->services[$i]->min_service : null
),
[
'min' => 0,
'step' => '0.01'
]
) !!}
{!! Form::label(
'data[Settings][content][payment][services][' . $i . '][max_service]',
t('Max Service in £')
) !!}
{!! Form::number(
'data[Settings][content][payment][services][' . $i . '][max_service]',
(
isset($data->Settings->content->payment->services[$i]->max_service) ?
$data->Settings->content->payment->services[$i]->max_service : null
),
[
'min' => 0,
'step' => '0.01'
]
) !!}
{!! Form::label(
'data[Settings][content][payment][services][' . $i . '][label]',
t('Label')
) !!}
{!! Form::text(
'data[Settings][content][payment][services][' . $i . '][label]',
(
isset($data->Settings->content->payment->services[$i]->label) ?
$data->Settings->content->payment->services[$i]->label : null
),
[
'placeholder' => __('Service charge')
]
) !!}
@endfor