@extends('templates.'.sc_store('template').'.shop_layout') @section('main')

{{ $title }}

@if (count($cart) ==0)
Cart empty!
@else
@foreach($cart as $item) @php $n = (isset($n)?$n:0); $n++; $product = App\Models\ShopProduct::find($item->id); @endphp @endforeach
No. {{ trans('product.sku') }} {{ trans('product.name') }} {{ trans('product.price') }} {{ trans('product.quantity') }} {{ trans('product.total_price') }}
{{ $n }} {{ $product->sku }} {{ $product->getName() }}
{{-- Process attributes --}} @if ($item->options->count()) ( @foreach ($item->options as $keyAtt => $att) {{ $attributesGroup[$keyAtt] }}: {{ $att }} ; @endforeach )
@endif {{-- //end Process attributes --}}
{!! $product->showPrice() !!} {{$item->qty}} {{sc_currency_render($item->subtotal)}}
{{ csrf_field() }}

{{ trans('cart.shipping_address') }}:

{{ trans('cart.first_name') }}: {{ $shippingAddress['first_name'] }}
{{ trans('cart.last_name') }}: {{ $shippingAddress['last_name'] }}
{{ trans('cart.phone') }}: {{ $shippingAddress['phone'] }}
{{ trans('cart.email') }}: {{ $shippingAddress['email'] }}
{{ trans('cart.address') }}: {{ $shippingAddress['address1'].' '.$shippingAddress['address2'].','.$shippingAddress['country'] }}
{{ trans('cart.note') }}: {{ $shippingAddress['comment'] }}
{{-- Total --}}
@foreach ($dataTotal as $key => $element) @if ($element['value'] !=0) @if ($element['code']=='total') @else @endif @endif @endforeach
{!! $element['title'] !!} {{$element['text'] }}
{{-- Payment method --}}

{{ trans('cart.payment_method') }}:

{{-- //Payment method --}}
{{-- End total --}}
@endif
@endsection @section('breadcrumb') @endsection @push('scripts') @endpush