@extends('layouts.dashboard') @section('title', 'Dashboard') @section('page-title', 'Dashboard') @section('content') @php $isSuperAdmin = $adminInfo['is_superadmin'] ?? false; @endphp
{{ number_format($totalUsers) }}
Total Users
{{ number_format($totalCalls) }}
Total Calls
{{ number_format($totalSms) }}
Total SMS
{{ number_format($totalWhatsApp ?? 0) }}
WhatsApp
{{ number_format($totalSmsSent) }}
SMS Sent
{{ number_format($totalWhatsAppSent ?? 0) }}
WhatsApp Sent
{{ number_format($totalPromotions ?? 0) }}
Promotions
{{ number_format($activeUsers ?? 0) }}
Active Users
Calls & SMS (Last 7 Days)
Call Types
Recent Calls
View All
@forelse($recentCalls as $call) @empty @endforelse
User Phone Type Time
{{ $call->user->name ?? 'N/A' }} {{ $call->phone_number }} @if($call->contact_name)
{{ $call->contact_name }}
@endif
{{ ucfirst($call->call_type) }} {{ $call->call_time->diffForHumans() }}
No recent calls
Recent Messages
View All
@forelse($recentSms as $sms) @empty @endforelse
Channel Phone Status Time
@if(($sms->channel ?? 'sms') == 'whatsapp') @else @endif {{ $sms->phone_number }} @if($sms->contact_name)
{{ $sms->contact_name }}
@endif
{{ ucfirst($sms->status) }} {{ $sms->sent_at?->diffForHumans() ?? 'N/A' }}
No recent messages
Recent User Logins
View All
@forelse($recentLogins as $login) @empty @endforelse
User Device ID IP Address Time
{{ $login->user->name ?? 'N/A' }} {{ Str::limit($login->device_id, 20) }} {{ $login->ip_address ?? 'N/A' }} {{ $login->created_at->diffForHumans() }}
No recent logins
@endsection @push('scripts') @endpush