{{ __('Businesses Overview') }}

Businesses Overview

Monitor business accounts and their plan activity

Back to Plans
{{ $stats['total_businesses'] }}
Total Businesses
{{ $stats['businesses_with_active_plans'] }}
With Active Plans
{{ $stats['total_employees'] }}
Total Employees
{{ $stats['total_self_payments_this_month'] }}
Self-Payments This Month
Filter Results
@forelse($businesses as $business) @php $activePlan = $business->plans->first(); $totalEmployees = $business->employees->count(); $activeEmployees = $business->employees->where('status', 'active')->count(); $selfPaymentsCount = $activePlan ? $activePlan->completedSelfPayments()->count() : 0; $selfPaymentsAmount = $activePlan ? $activePlan->completedSelfPayments()->sum('amount_paid') / 100 : 0; @endphp @empty @endforelse
Business Contact Info Active Plan Employees Self-Payments Actions
{{ $business->name }}
ID: {{ $business->id }}
{{ $business->email }}
{{ $business->phone }}
@if($activePlan)
Quantity: {{ $activePlan->plan_quantity }}
Total: ${{ number_format($activePlan->total_price / 100, 2) }}
Ends: {{ $activePlan->ends_at ? $activePlan->ends_at->format('M j, Y') : 'Ongoing' }}
@else No Active Plan @endif
{{ $activeEmployees }} active
{{ $totalEmployees }} total
@if($selfPaymentsCount > 0)
{{ $selfPaymentsCount }} payments
${{ number_format($selfPaymentsAmount, 2) }} total
@else No self-payments @endif
@if($activePlan) View Plan @endif
No businesses found.
{{ $businesses->links() }}