@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') }} {{ trans('cart.delete') }}
{{ $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() !!} {{sc_currency_render($item->subtotal)}} $item->rowId])}}">

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

@csrf {{-- --}}
@if($errors->has('first_name')) {{ $errors->first('first_name') }} @endif @if($errors->has('last_name')) {{ $errors->first('last_name') }} @endif
@if($errors->has('email')) {{ $errors->first('email') }} @endif @if($errors->has('phone')) {{ $errors->first('phone') }} @endif
@php $ct = (old('country'))?old('country'):$shippingAddress['country']; @endphp @if ($errors->has('country')) {{ $errors->first('country') }} @endif
{{-- Total --}}
@foreach ($dataTotal as $key => $element) @if ($element['value'] !=0) @if ($element['code']=='total') @else @endif @endif @endforeach
{!! $element['title'] !!} {{$element['text'] }}
{{-- Coupon --}} @if ($extensionDiscount)
{{ trans('cart.apply') }}
{{ Session::has('error_discount')?Session::get('error_discount'):'' }}
@endif {{-- //End coupon --}} {{-- Shipping method --}}

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

@if($errors->has('shippingMethod')) {{ $errors->first('shippingMethod') }} @endif
@foreach ($shippingMethod as $key => $shipping)
@endforeach
{{-- //Shipping method --}} {{-- Payment method --}}

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

@if($errors->has('paymentMethod')) {{ $errors->first('paymentMethod') }} @endif
@foreach ($paymentMethod as $key => $payment)
@endforeach
{{-- //Payment method --}}
{{-- End total --}}
@endif
@endsection @section('breadcrumb') @endsection @push('scripts') @endpush