@extends('layouts.admin') @section('title', 'Plan Details - ' . $plan->name) @section('content')

{{ $plan->name }} Plan

Edit Plan @if($plan->is_active)
@csrf
@else
@csrf
@endif
@if(session('success'))
{{ session('success') }}
@endif

Plan Overview

{{ $plan->name }}

@if($plan->is_featured) Featured Plan @endif

${{ number_format($plan->price, 2) }}

per {{ $plan->billing_cycle }}

@if($plan->billing_cycle === 'yearly')

${{ number_format($plan->price / 12, 2) }}/month when billed annually

@endif
@if($plan->is_active) Active @else Inactive @endif
{{ ucfirst($plan->billing_cycle) }}
@if($plan->stripe_price_id)

{{ $plan->stripe_price_id }}

@endif @if($plan->description)

{{ $plan->description }}

@endif

Plan Limits

{{ $plan->max_users ? number_format($plan->max_users) : 'Unlimited' }}

Maximum Users

{{ $plan->max_storage_gb ? $plan->max_storage_gb . ' GB' : 'Unlimited' }}

Storage Limit

{{ $plan->max_documents ? number_format($plan->max_documents) : 'Unlimited' }}

Document Limit

Recent Subscriptions

@forelse($plan->subscriptions->take(10) as $subscription) @empty @endforelse
Tenant Status Created Actions
{{ strtoupper(substr($subscription->tenant->name, 0, 2)) }}
{{ $subscription->tenant->name }}
{{ $subscription->tenant->domain }}
@if($subscription->status === 'active') Active @elseif($subscription->status === 'trial') Trial @else {{ ucfirst($subscription->status) }} @endif {{ $subscription->created_at->format('M d, Y') }} View Details
No subscriptions yet.
@if($plan->subscriptions->count() > 10) @endif

Statistics

Total Subscriptions {{ $stats['total_subscriptions'] }}
Active Subscriptions {{ $stats['active_subscriptions'] }}
Trial Subscriptions {{ $stats['trial_subscriptions'] }}
Monthly Revenue ${{ number_format($stats['monthly_revenue'], 2) }}
Yearly Revenue ${{ number_format($stats['yearly_revenue'], 2) }}

Plan Features

@if($plan->features)
    @foreach(is_array($plan->features) ? $plan->features : json_decode($plan->features, true) ?? [] as $feature)
  • {{ $feature }}
  • @endforeach
@else

No features defined for this plan.

@endif

Quick Actions

Edit Plan View Subscriptions View Reports @if($plan->subscriptions->count() === 0)
@csrf @method('DELETE')
@endif
@endsection