@extends('layouts.blesser.app') @section('content')
  1. {{ __('cart') }}

  2. {{ __('delivery') }}

  3. {{ __('payment') }}

{{ __('shopping cart') }} ( {{ $cart !== null ? $cart->count() : 0 }} {{ __("items") }} )

@csrf
@if($items == null)
{{ __('your cart is empty') }}
@else
    @foreach($items as $item)
  • {{ $item->product->title }}
    @csrf
    {{ $item->product->title }}
    @if(!empty($item->variant)) @foreach(json_decode($item->variant) as $key => $value)
    {{ ucfirst($key) }}
    @if(is_string($value) && Str::startsWith($value, '#'))
    @else
    {{ $value }}
    @endif
    @endforeach @endif
    @csrf
    {{ $item->quantity }}
    {{ number_format($item->price * $item->quantity) }} {{ getCurrency() }}
  • @endforeach
@endif
@endsection