@extends('su-admin.layout.master') @section('content') @php if (!isset($_GET['tab'])) { $tab = ''; } else { $tab = $_GET['tab']; } $payments_sort = $payments->get_payments_sort(); $languages = LaravelLocalization::getLocalesOrder(); $bacs_widget = get_setting('settings', 'bacs', 'payments'); $stripe_widget = get_setting('settings', 'stripe', 'payments'); $paypal_widget = get_setting('settings', 'paypal', 'payments'); $sections = [ 'label' => 'Etichetta', ]; @endphp
@if (session()->has('message')) @endif

Pagamenti

{!! Form::open(['url' => Request::url(), 'method' => 'post', 'class' => 'form-horizontal', 'id' => 'payments-form']) !!}
    @foreach ($payments_sort as $payment_index => $payment) @php $payment_class = $payments->get_payment($payment); @endphp
  • {!! Form::checkbox($payment, '1', $payment_class->get_status(), ['class' => 'form-check-input', 'id' => $payment]) !!} {!! Form::label($payment, $payment_class->get_label()) !!} {!! Form::hidden('payments_sort[]', $payment) !!}
  • @endforeach
{!! Form::hidden('id', 'payments', ['class' => 'form-section-id'] ) !!} {!! Form::submit('Salva', ['class' => 'btn btn-primary btn-fw'] ) !!}
{!! Form::close() !!}
@php $payment_bacs = $payments->get_payment('bacs'); @endphp {!! Form::open(['url' => Request::url(), 'method' => 'post', 'class' => 'form-horizontal', 'id' => 'bacs-form']) !!}

Dati bancari


{!! Form::label('iban', 'Iban', ['class' => 'form-label'] ) !!}
{!! Form::text('iban', $payment_bacs->get_iban(), ['class' => 'form-control', 'required' => 'required']) !!}
{!! Form::label('recipient', 'Intestatario', ['class' => 'form-label'] ) !!}
{!! Form::text('recipient', $payment_bacs->get_recipient(), ['class' => 'form-control']) !!}
{!! Form::label('bank', 'Banca', ['class' => 'form-label'] ) !!}
{!! Form::text('bank', $payment_bacs->get_bank(), ['class' => 'form-control']) !!}

Visualizzazione


{!! Form::label('button_color', 'Colore pulsante', ['class' => 'form-label'] ) !!}
{!! Form::select( 'button_color', ['default' => 'Default', 'black' => 'Black'], $payment_bacs->get_button_color(), ['class' => 'form-select'], ) !!}
@php $bacs_text_list = [ 'text' => 'Label', 'button' => 'Pulsante', 'message' => 'Messaggio' ]; @endphp @foreach ($bacs_text_list as $bacs_text_key => $bacs_text)

{{ $bacs_text }}


@foreach($languages as $localeCode => $properties)

@php switch ($bacs_text_key) { case 'text': $bacs_text_value = $payment_bacs->get_text($localeCode); break; case 'button': $bacs_text_value = $payment_bacs->get_button($localeCode); break; case 'message': $bacs_text_value = $payment_bacs->get_message($localeCode); break; default: $bacs_text_value = ''; break; } @endphp
{!! Form::label($bacs_text_key . '_' . $localeCode, 'Valore', ['class' => 'input-group-text', 'style' => 'width:60px'] ) !!} @if($bacs_text_key == 'message') {!! Form::textarea($bacs_text_key . '_' . $localeCode, $bacs_text_value, ['class' => 'form-control']) !!} @else {!! Form::text($bacs_text_key . '_' . $localeCode, $bacs_text_value, ['class' => 'form-control']) !!} @endif
@endforeach
@endforeach
{!! Form::hidden('id', 'bacs', ['class' => 'form-section-id'] ) !!} {!! Form::submit('Salva', ['class' => 'btn btn-primary btn-fw'] ) !!}
{!! Form::close() !!}
@php $payment_paypal = $payments->get_payment('paypal'); @endphp {!! Form::open(['url' => Request::url(), 'method' => 'post', 'class' => 'form-horizontal', 'id' => 'paypal-form']) !!}

Credenziali


{!! Form::label('client_secret', 'Secret', ['class' => 'form-label'] ) !!}
{!! Form::text('client_secret', $payment_paypal->get_client_secret(), ['class' => 'form-control', 'required' => 'required']) !!}
{!! Form::label('client_id', 'Client Id', ['class' => 'form-label'] ) !!}
{!! Form::text('client_id', $payment_paypal->get_client_id(), ['class' => 'form-control', 'required' => 'required']) !!}

Metodi pagamento attivi


@php $founding = $payment_paypal->get_list_founding(); @endphp @foreach ($founding as $founding_key => $founding_label)
{!! Form::checkbox('founding_' . $founding_key, '1', $payment_paypal->is_enabled_founding($founding_key), [ 'class' => 'form-check-input', 'id' => 'founding_' . $founding_key, ]) !!} {!! Form::label('founding_' . $founding_key, $founding_label) !!}
@endforeach

Visualizzazione


{!! Form::label('button_layout', 'Layout pulsante', ['class' => 'form-label'] ) !!}
{!! Form::select( 'button_layout', ['vertical' => 'Verticale', 'horizontal' => 'Orizzontale'], $payment_paypal->get_button_layout(), ['class' => 'form-select'], ) !!}
{!! Form::label('button_label', 'Testo pulsante', ['class' => 'form-label'] ) !!}
{!! Form::select( 'button_label', ['checkout' => 'Checkout', 'paypal' => 'PayPal', 'buynow' => 'PayPal Buy Now', 'pay' => 'Pay Whit PayPal'], $payment_paypal->get_button_label(), ['class' => 'form-select'], ) !!}
{!! Form::label('button_color', 'Colore pulsante', ['class' => 'form-label'] ) !!}
{!! Form::select( 'button_color', ['gold' => 'Gold', 'black' => 'Black', 'blue' => 'Blue', 'silver' => 'Silver', 'white' => 'White'], $payment_paypal->get_button_color(), ['class' => 'form-select'], ) !!}
{!! Form::label('button_shape', 'Forma pulsante', ['class' => 'form-label'] ) !!}
{!! Form::select( 'button_shape', ['pill' => 'Pill', 'rect' => 'Rectangle'], $payment_paypal->get_button_shape(), ['class' => 'form-select'], ) !!}
@php $paypal_text_list = [ 'text' => 'Label', ]; @endphp @foreach ($paypal_text_list as $paypal_text_key => $paypal_text)

{{ $paypal_text }}


@foreach($languages as $localeCode => $properties)

@php switch ($paypal_text_key) { case 'text': $paypal_text_value = $payment_paypal->get_text($localeCode); break; default: $paypal_text_value = ''; break; } @endphp
{!! Form::label($paypal_text_key . '_' . $localeCode, 'Valore', ['class' => 'input-group-text', 'style' => 'width:60px'] ) !!} {!! Form::text($paypal_text_key . '_' . $localeCode, $paypal_text_value, ['class' => 'form-control']) !!}
@endforeach
@endforeach
{!! Form::hidden('id', 'paypal', ['class' => 'form-section-id'] ) !!} {!! Form::submit('Salva', ['class' => 'btn btn-primary btn-fw'] ) !!}
{!! Form::close() !!}
@php $payment_stripe = $payments->get_payment('stripe'); @endphp {!! Form::open(['url' => Request::url(), 'method' => 'post', 'class' => 'form-horizontal', 'id' => 'stripe-form']) !!}

Credenziali


{!! Form::label('secret_key', 'Secret key', ['class' => 'form-label'] ) !!}
{!! Form::text('secret_key', $payment_stripe->get_secret_key(), ['class' => 'form-control', 'required' => 'required']) !!}
{!! Form::label('public_key', 'Public key', ['class' => 'form-label'] ) !!}
{!! Form::text('public_key', $payment_stripe->get_public_key(), ['class' => 'form-control', 'required' => 'required']) !!}

Visualizzazione


{!! Form::label('button_color', 'Colore pulsante', ['class' => 'form-label'] ) !!}
{!! Form::select( 'button_color', ['default' => 'Default', 'black' => 'Black'], $payment_stripe->get_button_color(), ['class' => 'form-select'], ) !!}
@php $stripe_text_list = [ 'text' => 'Label', 'button' => 'Pulsante' ]; @endphp @foreach ($stripe_text_list as $stripe_text_key => $stripe_text)

{{ $stripe_text }}


@foreach($languages as $localeCode => $properties)

@php switch ($stripe_text_key) { case 'text': $stripe_text_value = $payment_stripe->get_text($localeCode); break; case 'button': $stripe_text_value = $payment_stripe->get_button($localeCode); break; default: $stripe_text_value = ''; break; } @endphp
{!! Form::label($stripe_text_key . '_' . $localeCode, 'Valore', ['class' => 'input-group-text', 'style' => 'width:60px'] ) !!} @if($stripe_text_key == 'message') {!! Form::textarea($stripe_text_key . '_' . $localeCode, $stripe_text_value, ['class' => 'form-control']) !!} @else {!! Form::text($stripe_text_key . '_' . $localeCode, $stripe_text_value, ['class' => 'form-control']) !!} @endif
@endforeach
@endforeach
{!! Form::hidden('id', 'stripe', ['class' => 'form-section-id'] ) !!} {!! Form::submit('Salva', ['class' => 'btn btn-primary btn-fw'] ) !!}
{!! Form::close() !!}
@endsection