@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')
@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
@endforeach
{!! Form::close() !!}
@endif
@endsection