@extends('client.layouts.dashboard') @section('title', 'Dashboard') @section('styles') @endsection @section('content') @php $trendPercent = function ($current, $previous) { if ($previous == 0) return $current > 0 ? 100 : 0; return round((($current - $previous) / $previous) * 100, 1); }; $trendClass = function ($current, $previous) { if ($current > $previous) return 'up'; if ($current < $previous) return 'down'; return 'neutral'; }; $trendIcon = function ($current, $previous) { if ($current > $previous) return 'bi-arrow-up-short'; if ($current < $previous) return 'bi-arrow-down-short'; return 'bi-dash'; }; @endphp @if($crmStats['overdue_followups'] > 0)
You have {{ $crmStats['overdue_followups'] }} follow-up tasks that are currently overdue. Please contact these leads as soon as possible.
| # | User | SMS Total / Today |
WhatsApp Total / Today |
Calls Total / Today |
Total Activity | Status |
|---|---|---|---|---|---|---|
{{ $i+1 }} |
{{ strtoupper(substr($u->name,0,1)) }}
{{ $u->name }}
{{ $u->phone }}
|
{{ $u->sms_count }} / {{ $u->sms_today }} | {{ $u->whatsapp_count }} / {{ $u->whatsapp_today }} | {{ $u->call_count }} / {{ $u->calls_today }} | {{ $u->sms_count + $u->whatsapp_count + $u->call_count }} | @if($u->is_active)Active@elseInactive@endif |
| No active users yet | ||||||
| User | Phone | Channel | Status | Time |
|---|---|---|---|---|
| {{ $msg->user->name ?? 'Unknown' }} |
{{ $msg->phone_number }}
@if($msg->contact_name)
{{ $msg->contact_name }}
@endif
|
@if($msg->channel === 'whatsapp') WA @else SMS @endif | @if($msg->status === 'sent')Sent @elseif($msg->status === 'pending')Pending @elseFailed@endif | {{ $msg->created_at ? $msg->created_at->diffForHumans() : 'N/A' }} |
| No messages yet | ||||
| Name | Status | Joined |
|---|---|---|
|
{{ $user->name }}
{{ $user->phone }}
|
@if($user->approval_status === 'approved')Approved @elseif($user->approval_status === 'pending')Pending @elseRejected@endif | {{ $user->created_at ? $user->created_at->diffForHumans() : 'N/A' }} |
| No users yet | ||