{{ __('services.upgrade_service', ['service' => $service->product->name]) }}

@if($step == 1) {{ __('services.upgrade_choose_product') }} @else {{ __('services.upgrade_choose_config') }} @endif

@if($step == 1) {{-- Show current product, we also allow config upgrades so they can use that --}}
@foreach ($service->productUpgrades() as $product)
@endforeach @else
@foreach ($upgradeProduct->upgradableConfigOptions as $configOption) @php $showPriceTag = $configOption->children->filter(fn ($value) => !$value->price(billing_period: $service->plan->billing_period, billing_unit: $service->plan->billing_unit)->is_free)->count() > 0; @endphp {{-- If the config option is a select, show the options --}} @if ($configOption->type == 'select') @foreach ($configOption->children as $configOptionValue) @endforeach @elseif($configOption->type == 'radio') @foreach ($configOption->children as $configOptionValue)
@endforeach @endif
@endforeach
@endif

{{ __('services.upgrade_summary') }}:

{{ __('services.current_plan') }}: {{ $service->product->name }}
@if($upgrade != $service->product->id)
{{ __('services.new_plan') }}: {{ $upgradeProduct ? $upgradeProduct->name : __('general.select_plan') }}
@endif {{-- Total today --}}
{{ __('services.total_today') }}: {{ $this->totalToday() }}
{{-- If the next upgradeProduct supports config upgrades, show those --}} @if($upgradeProduct && $upgradeProduct->upgradableConfigOptions()->count() > 0 && $step == 1) {{ __('services.next_step') }} @else {{ __('services.upgrade') }} @endif