@extends('client.layouts.app') @section('title', __('client.services.upgrade_downgrade_title')) @section('content') @if(!isset($upgrades) || $upgrades->isEmpty())

{{ __('client.services.no_upgrades') }}

← {{ __('client.services.back_to_service') }}
@else
{{ __('client.services.currently_on') }}: {{ $service->product?->name ?? 'Service' }} — ${{ number_format($service->amount, 2) }}/{{ $service->billing_cycle }}
{{ __('client.services.select_new_plan') }}
@csrf @if($errors->any())
    @foreach($errors->all() as $e)
  • {{ $e }}
  • @endforeach
@endif
@foreach($upgrades as $product) @php $pr = $product->pricing->first(); $cycles = ['monthly','quarterly','semiannually','annually']; $price = null; $cycle = ''; if ($pr) { foreach ($cycles as $c) { if (isset($pr->{$c}) && (float)$pr->{$c} > 0) { $price = $pr->{$c}; $cycle = $c; break; } } } @endphp @endforeach
{{ __('common.actions.cancel') }}
@endif @endsection