@php /* $layout_page = shop_profile $statusOrder $statusShipping */ @endphp @extends($sc_templatePath.'.layout') @section('block_main')
{{--

{{ trans('account.my_profile') }}

--}}
@include($sc_templatePath.'.account.nav_customer')
{{ $title }}
@if (!$order)
{{ trans('account.order_detail_not_exist') }}
@else
@if (sc_config('customer_lastname')) @endif @if (sc_config('customer_phone')) @endif @if (sc_config('customer_company')) @endif @if (sc_config('customer_postcode')) @endif @if (sc_config('customer_address2')) @endif @if (sc_config('customer_country')) @endif
{{ trans('order.shipping_first_name') }}:{!! $order->first_name !!}
{{ trans('order.shipping_last_name') }}:{!! $order->last_name !!}
{{ trans('order.shipping_phone') }}:{!! $order->phone !!}
{{ trans('order.email') }}:{!! empty($order->email)?'N/A':$order->email!!}
{{ trans('order.company') }}:{!! $order->company !!}
{{ trans('order.postcode') }}:{!! $order->postcode !!}
{{ trans('order.shipping_address1') }}:{!! $order->address1 !!}
{{ trans('order.shipping_address2') }}:{!! $order->address2 !!}
{{ trans('order.country') }}:{!! $countries[$order->country] ?? $order->country !!}
{{ trans('order.order_status') }}:{{ $statusOrder[$order->status] }}
{{ trans('order.order_shipping_status') }}:{{ $statusShipping[$order->shipping_status]??'' }}
{{ trans('order.shipping_method') }}:{{ $order->shipping_method }}
{{ trans('order.payment_method') }}:{{ $order->payment_method }}
{{ trans('order.currency') }}:{{ $order->currency }}
{{ trans('order.exchange_rate') }}:{{ ($order->exchange_rate)??1 }}
@foreach ($order->details as $item) @endforeach
{{ trans('product.name') }} {{ trans('product.sku') }} {{ trans('product.price') }} {{ trans('product.quantity') }} {{ trans('product.total_price') }} {{ trans('product.tax') }}
{{ $item->name }} @php $html = ''; if($item->attribute && is_array(json_decode($item->attribute,true))){ $array = json_decode($item->attribute,true); foreach ($array as $key => $element){ $html .= '
'.$attributesGroup[$key].' : '.$element.''; } } @endphp {!! $html !!}
{{ $item->sku }} {{ $item->price }} x {{ $item->qty }} {{ sc_currency_render_symbol($item->total_price,$order->currency)}} {{ $item->tax }}
@php $dataTotal = \SCart\Core\Front\Models\ShopOrderTotal::getTotal($order->id) @endphp
@foreach ($dataTotal as $element) @if ($element['code'] =='subtotal') @endif @if ($element['code'] =='tax') @endif @if ($element['code'] =='shipping') @endif @if ($element['code'] =='discount') @endif @if ($element['code'] =='total') @endif @if ($element['code'] =='received') @endif @endforeach
{!! $element['title'] !!}:{{ sc_currency_format($element['value']) }}
{!! $element['title'] !!}:{{ sc_currency_format($element['value']) }}
{!! $element['title'] !!}:{{ sc_currency_format($element['value']) }}
{!! $element['title'] !!}(-):{{ sc_currency_format($element['value']) }}
{!! $element['title'] !!}:{{ sc_currency_format($element['value']) }}
{!! $element['title'] !!}(-):{{ sc_currency_format($element['value']) }}
{{ trans('order.balance') }}:{{ sc_currency_format($order->balance) }}
@endif
@endsection {{-- breadcrumb --}} @section('breadcrumb') @endsection {{-- //breadcrumb --}}