@extends('layouts.master') @section('title', 'Cart') @section('content')
@include('cart.style')

PRODUCTS / PACKAGES

@forelse ($carts as $cart)
{{ $loop->iteration }}. {{ $cart->service->name }} - {{ $cart->service->gender->name ?? 'Unisex' }}
Number of Sessions: {{ $cart->quantity }}
@if ($cart->service->discount_price && $cart->service->discount_price < $cart-> service->price) Rs. {{ number_format($cart->service->price) }} Rs. {{ number_format($cart->service->discount_price * $cart->quantity) }} @else Rs. {{ number_format($cart->service->price * $cart->quantity) }} @endif
@csrf @method('DELETE')
@empty

No items in your cart.

@endforelse
@auth
User ID: {{ auth()->id() }}
@endauth

PAYMENT SUMMARY

@php $subtotal = $carts->sum(function($c) { $price = $c->service->discount_price ?? $c->service->price; return $price * $c->quantity; }); @endphp

Items Total Rs. {{ number_format($subtotal) }}

Taxes @ 9% SGST All inclusive

Taxes @ 9% CGST All inclusive


Total Payable Rs. {{ number_format($subtotal) }}

COUPONS

View available coupons (0)
@endsection @section('script') @endsection