@section('title') {{ 'Dashboard - Reply reviews' }} @endsection @php use App\Services\PlanMapper; $planName = $user->subscription?->plan?->name ?? 'Starter'; $planDisplayName = plan_display_name($planName); $now = \carbon\Carbon::now(); $expire = $user->subscription?->expired_at ? \carbon\Carbon::create($user->subscription->expired_at) : null; $planExpired = $expire ? $now->greaterThanOrEqualTo($expire) : false; // Check if automation is active $automationActive = $hasActivity; // Determine plan frequency $isMonthly = PlanMapper::isPlan($planName, ['Pro Monthly', 'Multi Pro Monthly', 'Reply Monthly', 'Invite Reply Monthly']); // For new plan names (Reply, Invite Reply), check the subscription duration if (!$isMonthly && in_array($planName, ['Reply', 'Invite Reply']) && isset($user->subscription?->started_at)) { $started = \carbon\Carbon::create($user->subscription->started_at); $daysDiff = $started->diffInDays($expire); // If subscription is around 30-35 days, it's monthly. If around 365+ days, it's yearly $isMonthly = $daysDiff <= 45; // Monthly plans are typically 30-31 days, give some buffer } $planFrequency = $isMonthly ? 'Monthly' : 'Yearly'; $top3BizName = (string) (request('c') ?: ($user->businesses()->orderBy('businesses.id')->value('name') ?: 'Your Business')); @endphp

Welcome back, {{ explode(' ', $user->name)[0] }}

Here's what's happening with your review automation

Automation Active

Review Automation is Active

This month
Invites sent
{{ number_format($invitesThisMonth) }}
Email / Calendar / Link / QR
AI replies posted
{{ number_format($aiRepliesThisMonth) }}
Auto-reply enabled

Recent activity

Latest
@if(count($recentActivity) > 0)
@foreach($recentActivity as $activity) @endforeach
Business Type Recipient Status
{{ $activity['business_name'] }} {{ $activity['type'] }} {{ $activity['recipient'] }} {{ $activity['status'] }}
@else

No recent activity

Activity will appear here once you start sending invites

@endif
@if(request()->filled('pid')) @endif