@extends('layouts.master') @section('content')
{{-- Left Column: Plan Info --}}

{{ $accountType->name }}

{{ $isPaid ? 'Upgrade your account plan' : 'Switch to a free plan' }}
@php $pricing_details = $accountType->pricing_details ?? []; $currencySymbol = $accountType->currency_code == 'USD' ? '$' : $accountType->currency_code; $count = count($pricing_details); $colClass = match ($count) { 1 => 'col-12', 2 => 'col-6', default => 'col-4', }; @endphp
@if ($isPaid) @foreach ($pricing_details as $index => $plan) @php $plan_key = $plan['price'] . '_' . $plan['interval'] . '_' . $plan['unit']; @endphp
@endforeach @else

Free

@endif
Plan Features
    @foreach ($accountType->p_type->description_array ?? [] as $description)
  • {{ Str::title(str_replace('-', ' ', $description)) }}
  • @endforeach @foreach ($accountType->permissions ?? [] as $permission)
  • {{ Str::title(str_replace('-', ' ', $permission->display_name)) }}
  • @endforeach
{{-- Right Column: Payment Form --}}

@if ($isPaid) {{ !empty($savedCards['cards']) && count($savedCards['cards']) > 0 ? 'Choose Payment Method' : 'Use a Credit or Debit Card' }} @else Downgrade to Free Plan @endif
@if ($isPaid)
@if (!empty($savedCards['cards']) && count($savedCards['cards']) > 0) {{-- Saved Cards --}}
Saved Cards +
@include('common.saved-card')
{{-- New Payment --}}
Pay with New Card +
@include('account.upgrade.checkout')
@else @include('account.upgrade.checkout') @endif
@else @endif
@endsection @section('after_styles') @parent @endsection @section('after_scripts') @parent @endsection