@php /** * @name Pagina lista carrelli * @version 1.0.0 */ @endphp @extends('app') @section('content') @php $current_cart = request() ->session()->get('active-cart'); $appointment_date_setting = call_setting('settings.cart.field_date_appointment'); @endphp
@do_action('search_filters_active')
{{ __t('Data') }}
@if($appointment_date_setting)
{{ __t('Data appt.') }}
@endif
{{ __t('Cliente') }}
{{ get_default_um_description() }}
{{ __t('Totale') }}
@if (empty($carts))
{{ __t('Nessun carrello trovato') }}
@else {!! Form::open([ 'url' => $page->get_search_url(), 'method' => 'post', 'id' => 'frm-list-carts', 'class' => 'carts-list-form form-horizontal', ]) !!} {!! Form::hidden('cart_id', '0') !!} {!! Form::hidden('', __t('Vuoi eliminare questo carrello?'), ['id' => 'list-cart-message-delete']) !!} @foreach ($carts as $cart) @php $customer = $cart->get_customer(); $tooltip = __t('Seleziona carrello'); if ($cart->get_id() == $current_cart) { $tooltip = __t('Deseleziona carrello'); } @endphp
{!! $cart->get_date_formatted() !!}
@if($appointment_date_setting)
{!! ((!empty($cart->get_appointment_date())) ? ' ' . $cart->get_appointment_date_formatted() . '' : '') !!}
@endif
{{ __t('Cliente:') }}{!! $customer->get_company_name() !!}
{{ get_default_um_description(true) }}{!! $cart->get_quantity() !!}
{{ __t('Totale:') }}{!! $cart->get_amount_html(true) !!}
@endforeach {!! Form::close() !!} @endif
@endsection