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

Student Cart

{{-- Alerts --}} @if ($errors->any())
@endif @if (session('success'))
{{ session('success') }}
@endif
{{-- Student Details --}}
Registered Student Details
{{-- Cart Items --}}
Cart Items
@if (!$cart || $cart->items->count() === 0)
Your cart is empty

Please go to store and add items to your cart.

Go To Store
@else
@foreach ($cart->items as $index => $item) @endforeach
# Item Type Price Qty Total Action
{{ $index + 1 }}
{{ $item->name }}
@if($item->description) {{ $item->description }} @endif
@if ($item->item_type === 'compulsary') Compulsary @elseif ($item->item_type === 'addon') Add On @else {{ ucfirst($item->item_type) }} @endif ₹{{ number_format($item->unit_price, 2) }} {{ $item->quantity }} ₹{{ number_format($item->line_total, 2) }} @if($item->item_type === 'addon')
@else Locked @endif
Only add-ons can be removed from your cart.
@endif
Order Summary
Subtotal ₹{{ number_format($cart->subtotal ?? 0, 2) }}

Total ₹{{ number_format($cart->total ?? 0, 2) }}
{{-- Payment --}} @if($cart && $cart->items->count() > 0)
@csrf
@endif
@endsection