@extends('site.layouts.app') @section('title', 'Shopping Cart') @section('content')
@if (session('cart'))
@php $total = 0 @endphp @if (session('cart')) @foreach (session('cart') as $id => $details) @php $total += $details['price'] * $details['quantity'] @endphp @endforeach @endif
  Product Price Quantity Total Remove
@if (!empty($details['variant_id'])) @php $colorImage = App\Models\ProductVariant::where( 'id', $details['variant_id'], )->first(); @endphp @if ($colorImage ) {{ $details['image'] }} @endif @else {{ $details['image'] }} @endif {{ ucwords($details['name']) }} {{ $details['price'] }}
{{ $details['price'] * $details['quantity'] }}
Cart Totals
{{-- --}}
Cart Subtotal {{ $total }}
Shipping Free Shipping
Total {{ $total }}
@auth Proceed To CheckOut @endauth @guest Login @endguest
@else

No product in cart

@endif
@endsection