{{ __('Business Plan Reports & Analytics') }}

Reports & Analytics

Analyze self-payment trends and business plan performance

Back to Plans
Update Report
@if($selfPaymentTrends->count() > 0)

Self-Payment Trends

map(fn($date) => \Carbon\Carbon::parse($date)->format('M j')))' data-counts='@json($selfPaymentTrends->pluck('count'))' data-amounts='@json($selfPaymentTrends->pluck('total_amount')->map(fn($amount) => $amount / 100))'>
@endif
@php $totalPayments = $selfPaymentTrends->sum('count'); $totalRevenue = $selfPaymentTrends->sum('total_amount') / 100; $avgPaymentPerDay = $selfPaymentTrends->count() > 0 ? $totalPayments / $selfPaymentTrends->count() : 0; $avgRevenuePerDay = $selfPaymentTrends->count() > 0 ? $totalRevenue / $selfPaymentTrends->count() : 0; @endphp
{{ $totalPayments }}
Total Self-Payments
{{ number_format($avgPaymentPerDay, 1) }} per day avg
${{ number_format($totalRevenue, 2) }}
Total Revenue
${{ number_format($avgRevenuePerDay, 2) }} per day avg
{{ $topBusinesses->count() }}
Active Businesses
With self-payments
{{ $planChanges->count() }}
Plan Adjustments
Quantity decreases
@if($topBusinesses->count() > 0)

Top Businesses by Self-Payments

@foreach($topBusinesses as $index => $business) @endforeach
Rank Business Self-Payments Revenue Impact Actions
#{{ $index + 1 }}
{{ $business->name }}
{{ $business->email }}
{{ $business->self_payments_count }} payments ${{ number_format($business->self_payments_count * 20, 2) }} @if($business->plans->first()) View Plan @endif
@endif @if($planChanges->count() > 0)

Recent Plan Quantity Changes

@foreach($planChanges->take(10) as $change)

{{ $change->description }}

{{ $change->businessPlan->business->name }} - {{ $change->created_at->format('M j, Y g:i A') }}

@if($change->old_values && $change->new_values)
Changed from {{ $change->old_values['plan_quantity'] ?? 'N/A' }} to {{ $change->new_values['plan_quantity'] ?? 'N/A' }}
@endif
View Plan
@endforeach
@endif @if($selfPaymentTrends->count() === 0 && $topBusinesses->count() === 0)

No data available

No self-payment data found for the selected date range.

@endif
@if($selfPaymentTrends->count() > 0) @endif