{{-- Header --}}

Invite Reviews Statistics

Track your scheduled review invite performance

@if(!$business)
Business not found. Please select a valid business.
@else {{-- Main Stats Cards --}}
{{-- Total Invites --}}

Total Invites

{{ number_format($stats['total']) }}

{{-- Sent --}}

Sent

{{ number_format($stats['sent']) }}

{{-- Scheduled/Pending --}}

Pending

{{ number_format($stats['scheduled']) }}

{{-- Failed --}}

Failed

{{ number_format($stats['failed']) }}

{{-- Secondary Stats --}}
{{-- Success Rate --}}

Success Rate

{{ $stats['success_rate'] }}%

@if($stats['success_rate'] >= 90) Excellent @elseif($stats['success_rate'] >= 70) Good @else Needs Attention @endif
{{-- Average Delay --}}

Average Delay

{{ $stats['avg_delay_hours'] }} hours

{{-- Resend Stats --}}

Resend Invites

{{ number_format($stats['resends']) }}

out of {{ number_format($stats['original_invites']) }} original

{{-- Time-Based Stats --}}

Time-Based Statistics

{{-- Today --}}

Today

Scheduled: {{ $stats['today'] }}
Sent: {{ $stats['today_sent'] }}
{{-- This Week --}}

This Week

Scheduled: {{ $stats['this_week'] }}
Sent: {{ $stats['week_sent'] }}
{{-- This Month --}}

This Month

Scheduled: {{ $stats['this_month'] }}
Sent: {{ $stats['month_sent'] }}
{{-- Invite Method Breakdown --}}

By Invite Method

QR Code

Scanned QR codes

{{ number_format($stats['by_invite_method']['qr_code']) }}

Link Sharing

Shared links

{{ number_format($stats['by_invite_method']['link_sharing']) }}

Email

Email invites

{{ number_format($stats['by_invite_method']['email']) }}

{{-- Source Breakdown (Email Source Type) --}}

Email Source Type

Manual Entry

Pasted names & emails

{{ number_format($stats['by_source']['manual']) }}

Calendar (.ics)

From calendar links

{{ number_format($stats['by_source']['ics']) }}

{{-- Recent Activity --}} @if(count($stats['recent_activity']) > 0)

Recent Activity (Last 7 Days)

@foreach($stats['recent_activity'] as $activity) @endforeach
Name Email Source Status Scheduled Sent
{{ $activity['name'] }} {{ $activity['email'] }} {{ strtoupper($activity['source']) }} @if($activity['status'] === 'sent') Sent @elseif($activity['status'] === 'scheduled') Scheduled @elseif($activity['status'] === 'failed') Failed @else {{ ucfirst($activity['status']) }} @endif {{ $activity['scheduled_at'] ?? '—' }} {{ $activity['sent_at'] ?? '—' }}
@endif {{-- Failed Invites with Errors --}} @if(count($stats['failed_with_errors']) > 0)

Recent Failures

@foreach($stats['failed_with_errors'] as $failed)

{{ $failed['email'] }}

{{ $failed['failed_at'] }}

{{ $failed['error'] }}

@endforeach
@endif @endif