@php
/**
* @name Layout autenticato
* @version 1.0.0
*/
@endphp
@get_header()
@if (is_auth())
@get_sidebar()
@endif
@if (is_auth())
@get_toolbar()
@endif
@yield('content')
@get_footer()
@if (have_search())
@get_template_part('modal.main-search')
@endif
@get_template_part('modal.product-quick-view')
@if (is_agent())
@get_template_part('modal.add-cart')
@if (is_view('customers'))
@php
$is_check_cerate_customer = false;
$current_user_attributes = get_current_user_attribute();
if(isset($current_user_attributes['can_create_customer'])){
$is_check_cerate_customer = $current_user_attributes['can_create_customer'];
}
@endphp
@if ($is_check_cerate_customer)
@get_template_part('modal.add-customer')
@endif
@endif
@endif
@if (is_view('customer'))
@get_template_part('modal.add-customer', 'destination')
@endif