@if (!isset($view_only))+ Add price tier@endif help
@if (!isset($view_only)) @endif @if (isset($view_only)) @foreach ($plan->price_tiers as $tier) @php $firstUnit = is_numeric($tier['up_to']) ? $tier['up_to'] + 1 : 0; @endphp @endforeach @else @endif
First Unit Last Unit Per Unit Flat amountAction
Total units
{{ $loop->index == 0 ? 1 : $firstUnit }}
{{ $tier['up_to'] }} ${{ $tier['unit_amount'] ?? 0 }} ${{ $tier['flat_amount'] ?? 0 }}
For the first
0
US$
US$
{{--
add_circle
--}}
For the next
2
US$
US$
{{--
add_circle
--}}