@if ($canAddDiscount) @php $isDiscountCodeAdded = !empty($addedCode); @endphp

@if (session('success'))
@svg('check', 'h-4 w-4 stroke-primary-500') {{ session('success') }}
@endif @if (session('error'))
@svg('error', 'h-4 w-4 stroke-primary-500') {{ session('error') }}
@endif @if ($isDiscountCodeAdded) @else
{{ __('Add Discount') }}
@endif
@endif
@if ($subtotal > 0)
{{ __('Subscription price') }}
@money($subtotal, $currencyCode)
@endif @if ($planPriceType === \App\Constants\PlanPriceType::USAGE_BASED_PER_UNIT->value)
{{ __('Price / ') }} {{ __($unitMeterName) }}
@money($pricePerUnit, $currencyCode)
@elseif($planPriceType === \App\Constants\PlanPriceType::USAGE_BASED_TIERED_VOLUME->value || $planPriceType === \App\Constants\PlanPriceType::USAGE_BASED_TIERED_GRADUATED->value)
{{ __('Tiered pricing') }}
@php $start = 0; $startingPhrase = __('From'); @endphp @foreach($tiers as $tier)
{{$startingPhrase}} {{ $start }} - {{ $tier[\App\Constants\PlanPriceTierConstants::UNTIL_UNIT] }} {{ __(str()->plural($unitMeterName)) }} → @money($tier[\App\Constants\PlanPriceTierConstants::PER_UNIT], $currencyCode) / {{ __($unitMeterName) }} @if ($tier[\App\Constants\PlanPriceTierConstants::FLAT_FEE] > 0) + @money($tier['flat_fee'], $currencyCode) @endif
@php $start = intval($tier[\App\Constants\PlanPriceTierConstants::UNTIL_UNIT]) + 1; @endphp @if($planPriceType === \App\Constants\PlanPriceType::USAGE_BASED_TIERED_GRADUATED->value) @php $startingPhrase = __('Next'); @endphp @endif @endforeach
@if ($planPriceType === \App\Constants\PlanPriceType::USAGE_BASED_TIERED_GRADUATED->value)

{{ __('Graduated pricing mimics the way income taxes are calculated, where you pay different rates on portions of your usage. The first tier is applied to the first units, the second tier to the next units, and so on.') }}

@endif @endif @if($discountAmount > 0)
{{ __('Discount') }}
@money($discountAmount, $currencyCode)

{{ __('Total') }}
@money($amountDue, $currencyCode)
@endif
{{ __('Due now') }}
@if ($planHasTrial && !$isTrailSkipped) @money(0, $currencyCode) @else @money($amountDue, $currencyCode) @endif