@extends('layout.frontend.master') @section('meta-title', 'Cart - LEREVE') @push('asset-top') @endpush @section('content')

{{__('MY SHOPPING CART')}}

@if(count($cart['cart']))
  • {{ __('Product Name')}}
    {{__('Price')}}
    {{__('QTY')}}
    {{__('Subtotal')}}
  • @csrf @foreach($cart['cart'] as $key=>$row) @php @endphp
  • {{(app()->currentLocale()=='en')?$row['product']['name_en']:$row['product']['name_ar']}}

    @if($row['weight'])
    {{__('Weight')}} : {{$row['weight']}}
    @endif @if($row['variation_id'])
    @if($row['variations'])
      @foreach($row['variations'] as $variation) @php $varTitle = (app()->currentLocale()=='en') ? $variation['main']['name_en']:$variation['main']['name_ar']; @endphp @if($variation['main']['input_type']!='text') @foreach($variation['mainval'] as $k=>$v) @php $varvalTitle = (app()->currentLocale()=='en') ? $v['name_en']:$v['name_ar']; $varprice = $variation['price'][$k]; $varqty = $variation['qty'][$k]; @endphp
    • {{$varTitle}} : {{$varvalTitle}} ({{$varprice}}KWD X {{$varqty}} = {{$varprice*$varqty}}KWD)
    • @endforeach @else @php $varvalTitle = $variation['mainval']; $varprice = $variation['price']; $varqty = $variation['qty']; @endphp @if($varvalTitle)
    • {{$varTitle}} : {{$varvalTitle}} ({{$varprice}}KWD X {{$varqty}} = {{$varprice*$varqty}}KWD)
    • @endif @endif @endforeach
    @endif
    @endif
      {{--
    • {{session('deliveryType')}}
    • @if(session('deliveryType')=='Delivery')
    • {{(app()->currentLocale()=='en')?$row['area']['name_en']:$row['area']['name_ar']}}
    • {{$row['delivery_date']}}
    • {{date('h:i A', strtotime($row['slot']['start']))}} - {{date('h:i A', strtotime($row['slot']['end']))}}
    • @else @endif --}} {{--
    • {{$row['branch']['name']}}
    • --}}
    • {{$row['message']}}
    {{$row['price']}} {{__('KWD')}}
    {{$row['quantity'] * $row['price']}} {{__('KWD')}}
    @if($row['addons'])

    {{__('Add Ons')}}

      @foreach($row['addons'] as $addon)
    • {{(app()->currentLocale()=='en')?$addon['addon']['name_en']:$addon['addon']['name_ar']}}

      {{$addon['price']}} {{__('KWD')}}
      {{ $addon['qty']*$addon['price'] }} {{__('KWD')}}
    • @endforeach
    @endif
  • @endforeach

{{__('APPLY DISCOUNT CODE')}}

  • {{__('Total')}} {{$cart['cart'][0]['subtotal']}} {{__('KWD')}}
  • {{__('Discount Code')}} -{{($cart['cart'][0]['discount'])?$cart['cart'][0]['discount']:0}} {{__('KWD')}}
  • {{__('Grand Total')}} {{ (float)$cart['cart'][0]['subtotal'] - (float)$cart['cart'][0]['discount'] }} {{__('KWD')}}
@else {{__('No Product In cart')}} @endif {{__('Continue Shopping')}}
@endsection @push('asset-bottom') @endpush