@extends('backend.subscription.layout') @section('title', __('Subscription Plans')) @section('sub_title', __('Subscription Plans')) @section('sub_icon', 'apps') @section('sub_subtitle', __('Create and manage plans, pricing, billing cycles, and feature limits.')) @section('sub_action') @can('subscription-manage') @lang('Add Plan') @endcan @endsection @section('sub_content') {{-- Stats --}}
@lang('Total Plans')
{{ $stats['total_plans'] }}
@lang('Active Plans')
{{ $stats['active_plans'] }}
@lang('Active Subscribers')
{{ number_format($stats['total_subscribers']) }}
@lang('Total Revenue')
{{ siteCurrency() }} {{ number_format($stats['total_revenue'],siteDecimalPlaces()) }}
{{-- Filter Bar --}}
@if($cycleFilter) @lang('Clear Filter') @endif
{{-- Plans Table --}}
@can('subscription-manage') @endcan @forelse($plans as $plan) @can('subscription-manage') @endcan @empty @endforelse
@lang('Plan') @lang('Pricing') @lang('Features') @lang('Subscribers') @lang('Status')@lang('Actions')
{{ $plan->name }}
@if($plan->is_featured || $plan->plan_badge)
@if($plan->is_featured) @lang('Featured') @endif @if($plan->plan_badge) {{ $plan->plan_badge }} @endif
@endif
@if($plan->prices->isEmpty()) @lang('No pricing set') @else
@foreach($plan->prices as $price)
{{ $price->billing_cycle->label() }} @if($price->isFree()) @lang('Free') @else {{ siteCurrency('code') }} {{ number_format($price->price,siteDecimalPlaces()) }} @endif
@endforeach
@if($plan->trial_days > 0)
{{ $plan->trial_days }}-@lang('day trial')
@endif @endif
{{ $plan->features->count() }} @lang('features')
{{ number_format($plan->active_subscriptions_count) }}
{{ number_format($plan->subscriptions_count) }} @lang('total')
{{ $plan->status ? __('Active') : __('Disabled') }}
@lang('Edit')
@csrf
@csrf @method('DELETE')
@can('subscription-manage') @else @endcan
@endsection