@php /** * @name Pagina carrello\Riepilogo * @version 1.0.0 */ @endphp

{{__t('Riepilogo carrello')}}

@php $alert_class = ' alert-hidden'; $alert_message = ''; if (session('gateway-error')){ $alert_class = ''; $alert_message = session('gateway-error'); } @endphp {!! Form::open(['url' => Request::url(), 'method' => 'post', 'id' => 'frm-cart-header', 'class' => 'cart-header-form form-horizontal', 'novalidate' => true]) !!} {!! Form::hidden('cart_id', $cart->get_id() ) !!} {!! Form::hidden('', __t('Vuoi confermare questo carrello?'), array('id' => 'cart-cart-message-confirm') ) !!} {!! Form::hidden('', __t('Vuoi confermare questo carrello con metodo bonifico?'), array('id' => 'cart-cart-message-bacs') ) !!} {!! Form::hidden('', __t('Vuoi eliminare questo carrello?'), array('id' => 'cart-cart-message-delete') ) !!} {!! Form::hidden('cart_save', '0' ) !!} @php $current_gateway = 'confirm'; if (session('gateway-success')){ $current_gateway = session('gateway-success'); } @endphp {!! Form::hidden('cart_gateway', $current_gateway ) !!} {!! Form::hidden('transaction_id', '' ) !!} @php $delivery_date_setting = call_setting('settings.cart.field_delivery_date'); $appointment_date_setting = call_setting('settings.cart.field_date_appointment'); $customer = $cart->get_customer(); foreach ($cart_fields as $key => $field) { $columns = []; if ($key == 'date') { if($delivery_date_setting != 'none'){ $field = [$field, $cart_fields['delivery_date']]; $columns = [6, 6]; } } if ($key == 'delivery_date') { continue; } if ($key == 'acceptance') { continue; } get_form_fields($field, false, true, $columns); } @endphp
{!! Form::button(__t('Salva'), ['type' => 'button', 'class' => 'btn btn-block btn-secondary btn-loader btn-save']) !!}
@php foreach ($cart_fields as $key => $field) { $columns = []; if ($key != 'acceptance') { continue; } get_form_fields($field, false, true, $columns); } @endphp @if(!direct_payments_active())
{!! Form::button(__t('Conferma'), ['type' => 'button', 'class' => 'btn btn-block btn-primary btn-loader btn-confirm']) !!}
@endif {!! Form::close() !!} @if(direct_payments_active()) @get_template_part('page.cart.parts.direct-payments', null, ['cart' => $cart]) @endif @if(is_agent()) @php $delivery_date_js = (!empty($cart->get_delivery_date())) ? $cart->get_delivery_date_formatted_js() : ''; if(!empty($delivery_date_js)){ $delivery_date_js = implode(',', $delivery_date_js); } $delivery_date_disable_js = (!empty($cart->get_invalid_delivery_dates())) ? $cart->get_delivery_date_disable_formatted_js() : []; $appointment_date_js = (!empty($cart->get_appointment_date())) ? $cart->get_appointment_date_formatted_js() : ''; if(!empty($appointment_date_js)){ $appointment_date_js = implode(',', $appointment_date_js); } @endphp @if($delivery_date_setting != 'none') @endif @if($appointment_date_setting) @endif @endif