@extends('dashboard.layout') @section('title', 'Dashboard') @section('page_title', 'Dashboard') @section('meta_description', 'Overview of the HotelAreaGuide data pipeline and API.') @section('content') {{-- Welcome --}}

Good {{ now()->hour < 12 ? 'morning' : (now()->hour < 18 ? 'afternoon' : 'evening') }}, {{ explode(' ', $user->name ?? 'Admin')[0] }} 👋

Here's what's happening with your data pipeline today.

{{-- Stats grid --}}

{{ number_format($stats['total_databanks']) }}

Total Databanks

{{ number_format($stats['pending_databanks']) }}

Pending Review

{{ number_format($stats['total_trackers']) }}

Scraper Trackers

{{ number_format($stats['pending_trackers']) }}

Unprocessed Trackers

{{ number_format($stats['total_cities']) }}

Cities Mapped

{{ number_format($stats['total_keywords']) }}

Scrape Keywords

{{-- Recent Databanks --}}

Recent Databanks

Last 8 updated records

View all →
@forelse($recentDatabanks as $bank) @empty @endforelse
# Name Status
{{ $bank->id }}

{{ $bank->name ?? '—' }}

@php $statusMap = [ 'pending' => ['bg-amber-50 text-amber-700 border-amber-200', 'Pending'], 'active' => ['bg-emerald-50 text-emerald-700 border-emerald-200', 'Active'], 'inactive' => ['bg-gray-100 text-gray-900 border-gray-200', 'Inactive'], ]; $s = $statusMap[$bank->status] ?? ['bg-gray-100 text-gray-900 border-gray-200', ucfirst($bank->status ?? '?')]; @endphp {{ $s[1] }}
No databanks records yet.
@endsection