{{-- resources/views/settings/subscription.blade.php --}} @extends('layouts.app') @section('title', 'Subscription') @section('page_title', 'Subscription') @section('page_subtitle', 'Your plan and billing details') @section('content') @include('settings.partials.nav')
{{-- Current Plan --}}
{{-- Status Card --}}
Current Plan
{{ strtoupper($property->plan_slug ?? 'Starter') }}
@if($property->subscription_status === 'trialing') Trial expires {{ $property->trial_ends_at?->format('d M Y') }} ({{ $property->trial_ends_at?->diffForHumans() }}) @elseif($property->subscription_status === 'active') Active subscription @elseif($property->subscription_status === 'grace_period') Grace period expires {{ $property->grace_period_ends_at?->format('d M Y') }} @else {{ ucfirst($property->subscription_status ?? 'Unknown') }} @endif
Status
@php $subs = $property->subscription_status ?? 'unknown'; $subColor = [ 'active' => ['bg'=>'#d1fae5','color'=>'#065f46'], 'trialing' => ['bg'=>'#dbeafe','color'=>'#1e40af'], 'grace_period' => ['bg'=>'#fef3c7','color'=>'#92400e'], 'expired' => ['bg'=>'#fee2e2','color'=>'#991b1b'], 'suspended' => ['bg'=>'#f1f5f9','color'=>'#475569'], ][$subs] ?? ['bg'=>'#f1f5f9','color'=>'#475569']; @endphp {{ ucfirst(str_replace('_', ' ', $subs)) }}
@csrf
{{-- Available Plans --}}
@foreach($plans as $plan) @php $isCurrent = $property->plan_slug === $plan->slug; @endphp
@if($isCurrent)
✓ Current Plan
@endif
{{ $plan->name }}
${{ $plan->price }} /month
{{ $plan->description }}
@if(!empty($plan->features))
@foreach($plan->features as $feature)
{{ $feature }}
@endforeach
@endif @if(!$isCurrent) Upgrade → @endif
@endforeach
{{-- Right --}}
Subscription Details
Plan {{ strtoupper($property->plan_slug ?? 'Starter') }}
@if($property->trial_ends_at)
Trial Ends {{ $property->trial_ends_at->format('d M Y') }}
@endif @if($property->plan_synced_at)
Last Synced {{ $property->plan_synced_at->diffForHumans() }}
@endif
Billing and subscription management is handled through the Utsanzi portal. Click below to manage your subscription, update payment details or download invoices.
Open Utsanzi Portal
@endsection