Manage Prices for {{ $product->product_name }}

{{-- Form to Add a New Price --}}
@csrf

{{-- Check if Prices Exist --}} @if($prices->isEmpty())
No prices created for this product.
@else

Existing Prices

@php $groupedPrices = $prices; @endphp @foreach($groupedPrices as $price => $group) {{-- Collapsible Row for Detailed Durations --}} @endforeach
# Price Actions Details
{{ $loop->iteration }} {{ $price }}
@csrf
@csrf
@csrf
@foreach($group as $detail) @endforeach
# Duration (months) Price Key
{{ $loop->iteration }} {{ $detail->duration }} {{ $detail->stripe_price_id }}
@endif