@t('Payment fees')

@t(' if populated, they will overwrite the default site fees. If the transaction fee is set, min and max fields will be used. If they are empty this mean no min or max fee for this venue. ')

{!! Form::label( 'data[Settings][content][payment][fee]', t('Fee in %') ) !!}
{!! Form::number( 'data[Settings][content][payment][fee]', ( isset($data->Settings->content->payment->fee) ? $data->Settings->content->payment->fee : null ), [ 'min' => 0, 'step' => '0.01' ] ) !!}
{!! Form::label( 'data[Settings][content][payment][min]', t('Min fee in £') ) !!}
{!! Form::number( 'data[Settings][content][payment][min]', ( isset($data->Settings->content->payment->min) ? $data->Settings->content->payment->min : null ), [ 'min' => 0, 'step' => '0.01' ] ) !!}
{!! Form::label( 'data[Settings][content][payment][max]', t('Max fee in £') ) !!}
{!! Form::number( 'data[Settings][content][payment][max]', ( isset($data->Settings->content->payment->max) ? $data->Settings->content->payment->max : null ), [ 'min' => 0, 'step' => '0.01' ] ) !!}
{!! Form::label( 'data[Settings][vat]', t('Vat in %') ) !!}
{!! Form::number( 'data[Settings][vat]', ( isset($data->Settings->vat) ? $data->Settings->vat : null ), [ 'min' => 0, 'step' => '0.01' ] ) !!}
{!! Form::label( 'data[Settings][fixed]', t('Fixed fee') ) !!}
{!! Form::number( 'data[Settings][fixed]', ( isset($data->Settings->fixed) ? $data->Settings->fixed : null ), [ 'min' => 0, 'step' => '0.01' ] ) !!}
{!! Form::label( 'data[Settings][venue_vat]', t('Venue Vat in %') ) !!}
{!! Form::number( 'data[Settings][venue_vat]', ( isset($data->Settings->venue_vat) ? $data->Settings->venue_vat : null ), [ 'min' => 0, 'step' => '0.01' ] ) !!}
{{--

@t('Service charge')

{!! Form::label('data[Settings][content][payment][tier]', t('Service Group')) !!} {!! Form::select( 'data[Settings][content][payment][tier]', numbers(['min' => 1, 'max' => 5, 'format' => 'Group %s']), ( isset($data->Settings->content->payment->tier) ? $data->Settings->content->payment->tier : null ), ['empty' => __('Every product')] ) !!}
{!! Form::label( 'data[Settings][content][payment][service]', t('Service %') ) !!}
{!! Form::number( 'data[Settings][content][payment][service]', ( isset($data->Settings->content->payment->service) ? $data->Settings->content->payment->service : null ), [ 'min' => 0, 'step' => '0.01' ] ) !!}
{!! Form::label( 'data[Settings][content][payment][min_service]', t('Min Service in £') ) !!}
{!! Form::number( 'data[Settings][content][payment][min_service]', ( isset($data->Settings->content->payment->min_service) ? $data->Settings->content->payment->min_service : null ), [ 'min' => 0, 'step' => '0.01' ] ) !!}
{!! Form::label( 'data[Settings][content][payment][max_service]', t('Max Service in £') ) !!}
{!! Form::number( 'data[Settings][content][payment][max_service]', ( isset($data->Settings->content->payment->max_service) ? $data->Settings->content->payment->max_service : null ), [ 'min' => 0, 'step' => '0.01' ] ) !!}
--}} @include('Plugins/Payment/Views/Elements/Settings/service_fees')

@t('Tax charge')

{!! Form::label( 'data[Settings][content][payment][tax]', t('Tax %') ) !!}
{!! Form::number( 'data[Settings][content][payment][tax]', ( isset($data->Settings->content->payment->tax) ? $data->Settings->content->payment->tax : null ), [ 'min' => 0, 'step' => '0.01' ] ) !!}
{!! Form::label( 'data[Settings][content][payment][min_tax]', t('Min Tax in £') ) !!}
{!! Form::number( 'data[Settings][content][payment][min_tax]', ( isset($data->Settings->content->payment->min_tax) ? $data->Settings->content->payment->min_tax : null ), [ 'min' => 0, 'step' => '0.01' ] ) !!}
{!! Form::label( 'data[Settings][content][payment][max_tax]', t('Max Tax in £') ) !!}
{!! Form::number( 'data[Settings][content][payment][max_tax]', ( isset($data->Settings->content->payment->max_tax) ? $data->Settings->content->payment->max_tax : null ), [ 'min' => 0, 'step' => '0.01' ] ) !!}
@if (is_super_admin())

@t('Bank Card Fees')

{!! Form::radio( 'data[Settings][content][card_fee]', 1, ( !isset($data->Settings->content->card_fee) || $data->Settings->content->card_fee == 1 ? true : false ) ) !!}
{!! Form::radio( 'data[Settings][content][card_fee]', 0, ( isset($data->Settings->content->card_fee) && (int)$data->Settings->content->card_fee === 0 ? true : false ) ) !!}
@foreach ($bank_cards as $bank_card) @endforeach
@t('Card Type') @t('Fee Type') @t('Fee')
{{ $bank_card->name }} {!! Form::select( 'data[Settings][content][card_fees][' . $bank_card->id . '][type]', ['fixed' => __('Fixed'), 'percentage' => __('Percentage')], ( isset($data->Settings->content->card_fees->{$bank_card->id}->type) ? $data->Settings->content->card_fees->{$bank_card->id}->type : null ) ) !!} {!! Form::number( 'data[Settings][content][card_fees][' . $bank_card->id . '][fee]', ( isset($data->Settings->content->card_fees->{$bank_card->id}->fee) ? $data->Settings->content->card_fees->{$bank_card->id}->fee : null ), [ 'step' => '0.01' ] ) !!}
@endif