@extends('layouts.user_type.auth') @section('home')
@include('components.alert')

Total Company

{{ $total_company }}

Subscribed company

{{ $subscribed_company }}

Expired company

{{ $expired_company }}
@if (auth()->user()->user_type == 'admin' || auth()->user()->user_type == 'super_admin')

Total User

{{ $total_user }}
@else

In Progress

{{ $openTicketsCount }}
@endif
Analytics Overview

Cron Log Monitor

{{ $cron_errors_24h ?? '4' }}


{{ $cron_errors_24h ?? '4' }} Last 24 Hrs Errors

Last Successful Run: {{ $last_cron_run ?? '5 mins ago' }}

{{-- [Cron Trend Graph Here] --}}

Visitor Tracker

{{ $visits_today ?? '352' }}


{{ $visits_today_percentage ?? '+12%' }} than yesterday

7-Day Total: {{ $visits_7_day_total ?? '2,145' }}

{{-- [Visits Trend Graph Here] --}}

Daily Contact Us

{{ $contact_us_today ?? 0 }}


{{ $contact_us_percentage ?? '+0%' }} than yesterday

7-Day Total: {{ $contact_us_7_day_total ?? 0 }}

{{-- Optional: Contact Us Trend Graph --}}
Upcoming Expirations
@forelse($subscriptions as $index => $subscription) @empty @endforelse
No. Companies Package Expire Date Days

{{ $index }}

{{ $subscription['company_name'] }}
{{ $subscription['package_name'] }}
{{ \Carbon\Carbon::parse($subscription['expires_at'])->format('d-m-Y | H:i:s') }}
{{ $subscription['days'] }}
No Data Found

No Upcoming Expirations

@include('components.pagination', ['paginator' => $subscriptions])
@endsection