{{-- Form to Add a New Price --}}
{{-- Check if Prices Exist --}}
@if($prices->isEmpty())
No prices created for this product.
@else
Existing Prices
| # |
Price |
Actions |
Details |
@php
$groupedPrices = $prices;
@endphp
@foreach($groupedPrices as $price => $group)
| {{ $loop->iteration }} |
{{ $price }} |
|
|
{{-- Collapsible Row for Detailed Durations --}}
| # |
Duration (months) |
Price Key |
@foreach($group as $detail)
| {{ $loop->iteration }} |
{{ $detail->duration }} |
{{ $detail->stripe_price_id }} |
@endforeach
|
@endforeach
@endif