@extends('layouts.admin') @section('title', 'Plans Management') @section('content')

Plans Management

Create New Plan
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif
Total Plans
{{ $stats['total_plans'] }}
Active Plans
{{ $stats['active_plans'] }}
Total Subscriptions
{{ $stats['total_subscriptions'] }}
Monthly Revenue
${{ number_format($stats['monthly_revenue'], 2) }}

All Plans

@forelse($plans as $plan) @empty @endforelse
Plan Price Billing Cycle Subscriptions Status Actions
{{ $plan->name }}
{{ Str::limit($plan->description, 50) }}
@if($plan->is_featured) Featured @endif
${{ number_format($plan->price, 2) }}
@if($plan->billing_cycle === 'yearly')
${{ number_format($plan->price / 12, 2) }}/month
@endif
{{ ucfirst($plan->billing_cycle) }}
{{ $plan->subscriptions_count }}
subscriptions
@if($plan->is_active) Active @else Inactive @endif
@if($plan->is_active)
@csrf
@else
@csrf
@endif @if($plan->subscriptions_count == 0)
@csrf @method('DELETE')
@endif

No plans found

Get started by creating your first plan.

Create Plan
@if($plans->hasPages())
{{ $plans->links() }}
@endif
@endsection