@extends('admin.master') @section('title','Dashboard') @section('content')
{{-- Header --}}

Dashboard

Quick overview of your system

{{-- Quick actions --}}
{{-- Stats cards --}}
Total Users
{{ $totalUsers }}
Uploaded Apps
{{ $totalApps }}
Headlines
{{ $totalHeadlines }}
System Infos
{{ $totalSystemInfo }}
{{-- Main content --}}
{{-- System Info Preview --}}
Company Info
@if($systemInfo)
@if($systemInfo->logo) @else
@endif
{{ $systemInfo->company_name ?? 'N/A' }}
{{ $systemInfo->address ?? 'No address' }}
{{ $systemInfo->phone ?? '-' }}
{{ $systemInfo->whatsapp_number ?? '-' }}
{{ $systemInfo->footer_copey_right ?? '-' }}
@else
No system info added
Add company settings to show here.
Add System Info
@endif
{{-- Latest Apps --}}
Latest Apps
View all
@forelse($latestApps as $app)
{{ $app->app_name ?? 'Untitled App' }}
{{ $app->created_at?->format('d M Y') }}
@if($app->apk_file) @endif
@empty
No apps uploaded yet
@endforelse
{{-- Latest Headlines --}}
Latest Headlines
View all
@forelse($latestHeadlines as $h)
{{ \Illuminate\Support\Str::limit(strip_tags($h->top_headlines), 60) }}
{{ \Illuminate\Support\Str::limit(strip_tags($h->body_headlines), 70) }}
@empty
No headlines added yet
@endforelse
{{-- Latest Users table --}}
Latest Users
@forelse($latestUsers as $i => $u) @empty @endforelse
# Name Email Joined
{{ $i + 1 }} {{ $u->name }} {{ $u->email }} {{ $u->created_at?->format('d M Y') }}
No users found
@endsection