@extends('layouts/contentNavbarLayout') @section('title', 'Dashboard') @section('vendor-style') @endsection @section('vendor-script') @endsection @section('content')

Tawazon Dashboard

{{ number_format($totalAdmins) }}

Total Admins

{{ number_format($totalEmployees) }}

Total Employees

{{ number_format($totalCoaches) }}

Total Coaches

{{ number_format($totalVendors) }}

Total Vendors

{{ number_format($totalAgents) }}

Total Agents

{{ number_format($totalCompanies) }}

Companies

{{ number_format($totalAppointments) }}

Total Appointments

{{ number_format($totalRevenue, 2) }} SAR

Total Revenue

{{ number_format($totalReviews) }}

Total Reviews

{{ number_format($totalChallenges) }}

Total Challenges

{{ number_format($totalContactUs) }}

Contact Requests

{{ number_format($totalPointsDistributed) }}

Points Distributed

Monthly Trends
Appointments Status
Recent Activities
Latest Users
@foreach($recentUsers->take(5) as $user)
{{ substr($user->name, 0, 1) }}
{{ $user->name }}
{{ $user->email }}
{{ $user->created_at->locale('en')->diffForHumans() }}
@endforeach
Recent Appointments
@foreach($recentAppointments->take(5) as $appointment)
Appointment #{{ $appointment->appointment_number }}
{{ $appointment->appointment_date->format('M d, Y') }}
@php $statusColor = [ 'booked' => 'primary', 'confirmed' => 'info', 'in_progress' => 'warning', 'completed' => 'success', 'not_attended' => 'dark', 'rescheduled' => 'secondary', 'cancelled' => 'danger', ][$appointment->status] ?? 'secondary'; @endphp {{ ucfirst(str_replace('_', ' ', $appointment->status)) }}
@endforeach
Recent Contact Requests
@foreach($recentContactUs->take(5) as $contact)
{{ substr($contact->name, 0, 1) }}
{{ $contact->name }}
{{ $contact->subject }}
{{ ucfirst($contact->status) }}
{{ $contact->created_at->diffForHumans() }}
@endforeach
Top Companies
@foreach($topCompanies->take(3) as $company)
{{ substr($company->name, 0, 1) }}
{{ $company->name }}
{{ $company->employees_count }} employees
@endforeach
Challenge Types
{{ number_format($totalPersonalChallenges) }}
Personal {{ number_format($activePersonalChallenges) }} Active
{{ number_format($totalCompanyChallenges) }}
Company {{ number_format($activeCompanyChallenges) }} Active
{{ number_format($totalDepartmentChallenges) }}
Department {{ number_format($activeDepartmentChallenges) }} Active
{{ number_format($totalGlobalChallenges) }}
Global {{ number_format($activeGlobalChallenges) }} Active
@endsection @section('page-script') @endsection