@extends('frontend.layouts.master')

@section('title','Subscription Checkout')

@section('main-content')
<div class="container py-5 text-center">
    <h2>Confirm Your Subscription</h2>

    @foreach(Helper::getAllProductFromCart() as $cart)
    @if($cart->item_type === 'subscription')
    <div class="card mt-4">
        <div class="card-body">
            <h4>{{ $cart->subscription->package_name }}</h4>
            <p>Price: ₹{{ number_format($cart->price,2) }}</p>
        </div>
    </div>
    @endif
    @endforeach

    <form method="GET" action="{{ route('checkout') }}">
        <button type="submit" class="btn btn-primary btn-lg">
            Proceed to Payment
        </button>
    </form>

</div>
@endsection