@php /** * @name Sidebar cambi e resi\Dettagli cambi e resi * @version 1.0.0 */ @endphp @php $info = $exchange->get_info(); @endphp @if(!empty($info)) @php $title_cart = __t('Informazioni cambio'); if($exchange->is_current('return')){ $title_cart = __t('Informazioni reso'); } $cart_total = (!empty($info->get_cart_total())) ? $info->get_cart_total()->get_amount_format(false) : 0; $exchange_total = (!empty($info->get_exchange_total())) ? $info->get_exchange_total()->get_amount_format(false) : 0; $cart_quantity = (!empty($info->get_cart_quantity())) ? $info->get_cart_quantity() : 0; $cart_status= (!empty($info->get_cart_status())) ? $info->get_cart_status() : false; $cart_progress = (!empty($info->get_cart_progress())) ? $info->get_cart_progress() : 0; $cart_preogress_status = (!empty($info->get_cart_progress_status())) ? $info->get_cart_progress_status() : 'success'; if($exchange->is_current('change')){ $cart_restock_total = (!empty($info->get_cart_restock_total())) ? $info->get_cart_restock_total()->get_amount_format(false) : 0; $exchange_restock_total = (!empty($info->get_exchange_restock_total())) ? $info->get_exchange_restock_total()->get_amount_format(false) : 0; $cart_restock_quantity = (!empty($info->get_cart_restock_quantity())) ? $info->get_cart_restock_quantity() : 0; $cart_restock_status= (!empty($info->get_cart_restock_status())) ? $info->get_cart_restock_status() : false; $cart_restock_progress = (!empty($info->get_cart_restock_progress())) ? $info->get_cart_restock_progress() : 0; $cart_restock_preogress_status = (!empty($info->get_cart_restock_progress_status())) ? $info->get_cart_restock_progress_status() : 'alert'; } @endphp
{!! $title_cart !!}
{{ __t('Imponibile massimo') }}
{!! $cart_total . '/' . $exchange_total . '' !!}
{{ get_default_um_description() }} {!! $cart_quantity !!}
@if($exchange->is_current('change'))
{{ __t('Informazioni riassortimento') }}
{{ __t('Imponibile minimo') }}
{!! $cart_restock_total . '/' . $exchange_restock_total . '' !!}
{{ get_default_um_description() }} {!! $cart_restock_quantity !!}
@endif
@endif
{!! Form::open(['url' => Request::url(), 'method' => 'post', 'id' => 'frm-exchange-action', 'class' => '', 'novalidate' => true]) !!} @if($exchange->is_current('change')) @if($exchange->is_current_type('restock')) {!! Form::button(__t('Passa a modalità Cambio'), ['type' => 'button', 'class' => 'btn btn-block btn-primary btn-loader btn-loading-no-disable btn-mod-change', 'data-bs-title' => __t('Clicca per entrare in modalità cambio'), 'data-bs-toggle' => 'tooltip', 'data-bs-placement' => 'top']) !!} @endif @if($exchange->is_current_type('change')) {!! Form::button(__t('Passa a modalità Riassortimento'), ['type' => 'button', 'class' => 'btn btn-block btn-primary btn-loader btn-loading-no-disable btn-mod-restock', 'data-bs-title' => __t('Clicca per entrare in modalità riassortimento'), 'data-bs-toggle' => 'tooltip', 'data-bs-placement' => 'top']) !!} @endif @endif {!! Form::button(__t('Disattiva'), ['type' => 'button', 'class' => 'btn btn-block btn-secondary btn-loader btn-loading-no-disable btn-disable-exchange']) !!} {!! Form::close() !!}