@extends('layouts.app') @section('title','Shopping Cart | Shopora') @section('content')
@if($cart->items->isEmpty())

Space Empty

Continue shopping to find pieces that resonate with your aesthetic.

Explore Collections
@else

Shopping Cart ({{ $cart->item_count }})

{{-- Cart Items --}}
@foreach($cart->items as $item)
{{-- Image Container - Fixed smaller size on mobile --}}
@if($item->product->images && is_array($item->product->images) && count($item->product->images) > 0) {{ $item->product->name }} @else @endif
{{ $item->product->name }}

{{ $item->product->brand ?? 'Exclusive Collection' }}

Rs. {{ number_format($item->price) }}

@if($item->product->is_on_sale)
Rs. {{ number_format($item->product->price) }} -{{ $item->product->discount_percent }}%
@endif
@csrf @method('DELETE')
@csrf @method('PATCH') {{ $item->quantity }}
@endforeach
{{-- Order Summary --}}

Summary

Subtotal ({{ $cart->item_count }} Items)Rs. {{ number_format($cart->subtotal) }}
Logistics{{ $cart->subtotal >= 10000 ? 'Complimentary' : 'Rs. 299' }}
@if($cart->discount>0)
Voucher Savings- Rs. {{ number_format($cart->discount) }}
@endif

Total

Rs. {{ number_format($cart->total + ($cart->subtotal >= 10000 ? 0 : 299)) }}
@auth CHECKOUT @else CONNECT @endauth
@if($cart->coupon_code)
{{ $cart->coupon_code }} Active
@csrf @method('DELETE')
@else
@csrf
@endif
@endif
@endsection