@extends('frontend.layouts.app') @section('content')

{{ translate('1. My Cart')}}

{{ translate('2. Shipping info')}}

{{ translate('3. Delivery info')}}

{{ translate('4. Payment')}}

{{ translate('5. Confirmation')}}

@php $admin_products = array(); $seller_products = array(); foreach ($carts as $key => $cartItem){ if(\App\Product::find($cartItem['product_id'])->added_by == 'admin'){ array_push($admin_products, $cartItem['product_id']); } else{ $product_ids = array(); if(array_key_exists(\App\Product::find($cartItem['product_id'])->user_id, $seller_products)){ $product_ids = $seller_products[\App\Product::find($cartItem['product_id'])->user_id]; } array_push($product_ids, $cartItem['product_id']); $seller_products[\App\Product::find($cartItem['product_id'])->user_id] = $product_ids; } } @endphp @if (!empty($admin_products))
@csrf
{{ translate('Choose Delivery Type') }}
@if (\App\BusinessSetting::where('type', 'pickup_point')->first()->value == 1)
@endif
@endif
@csrf @if (!empty($seller_products)) @foreach ($seller_products as $key => $seller_product)
{{ \App\Shop::where('user_id', $key)->first()->name }} {{ translate('Products') }}
    @foreach ($seller_product as $cartItem) @php $product = \App\Product::find($cartItem); @endphp
  • {{  $product->getTranslation('name')  }} {{ $product->getTranslation('name') }}
  • @endforeach
{{ translate('Choose Delivery Type') }}
@if (\App\BusinessSetting::where('type', 'pickup_point')->first()->value == 1) @if (is_array(json_decode(\App\Shop::where('user_id', $key)->first()->pick_up_point_id)))
@endif @endif
@if (\App\BusinessSetting::where('type', 'pickup_point')->first()->value == 1) @if (is_array(json_decode(\App\Shop::where('user_id', $key)->first()->pick_up_point_id)))
@endif @endif
@endforeach @endif
@endsection @section('script') @endsection