@extends('templates.'.sc_store('template').'.shop_layout') @section('main') {{ $title }} @if (count($cart) ==0) Cart empty! @else No. {{ trans('product.sku') }} {{ trans('product.name') }} {{ trans('product.price') }} {{ trans('product.quantity') }} {{ trans('product.total_price') }} @foreach($cart as $item) @php $n = (isset($n)?$n:0); $n++; $product = App\Models\ShopProduct::find($item->id); @endphp {{ $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)}} @endforeach {{ 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 {!! $element['title'] !!} {{$element['text'] }} @endif @endforeach {{-- Payment method --}} {{ trans('cart.payment_method') }}: {{-- //Payment method --}} {{-- End total --}} {{ trans('cart.back_to_cart') }} {{ trans('cart.confirm') }} @endif @endsection @section('breadcrumb')