@extends('web.layouts.container') @section('content')
{{__('main.my_cart')}}

{{__('main.my_cart')}}

@if(count($carts)) @foreach($carts as $cart) @php /** @var TYPE_NAME $cart */ /**get selected product image*/ $colors = json_decode($cart->colors, true); $colors = array_keys($colors); $imageIndex = array_search($cart->color, $colors); $image = json_decode($cart->images, true)[$imageIndex]; @endphp @endforeach {{--
--}} {{-- {{__('products.no_products')}}--}} {{-- {{__('products.products')}}--}} {{--
--}} @else
{{__('products.no_products')}} {{__('products.products')}}
@endif
{{__('products.products')}} ({{count($carts) ? count($carts) : 0}}) {{__('products.colors')}} {{__('products.details')}} {{__('products.quantity')}} {{__('products.total_price')}}
{{$cart->name}}
{{stripText($cart->description, 50)}}
{{$cart->amount}}
@if($cart->discount) {{-- {{__('products.sar')}} {{$cart->price}}--}}
{{__('products.sar')}} {{$cart->amount*$cart->discount}}
@else
{{__('products.sar')}} {{$cart->amount*$cart->price}}
@endif @if($cart->discount) - {{round((($cart->price-$cart->discount)*100)/$cart->price)}} % @endif
{{__('products.no_products')}} {{__('products.products')}}
{{__('products.swipe_to_see_more')}}
@if(count($carts)) @foreach($carts as $cart) @php /** @var TYPE_NAME $cart */ /**get selected product image*/ $colors = json_decode($cart->colors, true); $colors = array_keys($colors); $imageIndex = array_search($cart->color, $colors); $image = json_decode($cart->images, true)[$imageIndex]; @endphp

{{__('products.product_name')}}

{{$cart->name}}

{{__('products.colors')}}

{{__('products.details')}}

{{stripText($cart->description, 50)}}

{{__('products.quantity')}}

{{$cart->amount}}

{{__('products.total_price')}}

@if($cart->discount) {{-- {{__('products.sar')}} {{$cart->price}}--}}
{{__('products.sar')}} {{$cart->amount*$cart->discount}}
@else
{{__('products.sar')}} {{$cart->amount*$cart->price}}
@endif @if($cart->discount) - {{round((($cart->price-$cart->discount)*100)/$cart->price)}} % @endif

{{__('products.delete')}}

@endforeach
{{__('products.no_products')}} {{__('products.products')}}
@else
{{__('products.no_products')}} {{__('products.products')}}
@endif
@if(count($carts))
{{__('products.total')}}:
{{__('products.sar')}} {{round($total)}}
{{__('products.discount')}}:
{{__('products.sar')}}
@if(isset($settings['show_added_value']))
{{__('products.added_value')}}:
{{__('products.sar')}} {{round($totalAddedValue)}}
@endif
{{__('products.shipping_value')}}:
{{-- SAR 150.35 --}} {{__('products.sar')}} {{round($shippingValue)}}
{{__('products.sum_total')}}:

{{__('products.sar')}} {{round($totalWithAddedAndShippingValue)}}

@endif
@endsection @section('inner_js') @endsection