@extends('dashboard.layout') @section('title', 'Databanks') @section('meta_description', 'Browse, search and filter all hotel databank records.') @section('page_title', 'Databanks') @section('content') {{-- ══════════════════════════════════════ PAGE HEADER ═══════════════════════════════════════ --}}

Databanks

{{ number_format($databanks->total()) }} records @if($filters['search'] || $filters['state'] || $filters['city']) — filtered @endif

{{-- ══════════════════════════════════════ FILTER BAR ═══════════════════════════════════════ --}}
{{-- Search --}}
{{-- State --}}
{{-- City (populated by JS) --}}
{{-- Actions --}}
@if($filters['search'] || $filters['state'] || $filters['city']) Clear @endif
{{-- ══════════════════════════════════════ TABLE ═══════════════════════════════════════ --}}
@if($databanks->isEmpty())

No databanks found

Try adjusting your search or filters.

@else
@foreach($databanks as $bank) {{-- ID --}} {{-- Name --}} {{-- Location --}} {{-- Keywords --}} {{-- Images count --}} {{-- Updated --}} @endforeach
# Name Location Keywords Images Status Updated
{{ $bank->id }} @if($bank->place_id) {{ $bank->name ?? '—' }} @else

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

@endif @if($bank->phone)

{{ $bank->phone }}

@endif

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

{{ $bank->state ?? '' }}

{{ $bank->keywords ?? '—' }} @if($bank->images_count > 0) {{ $bank->images_count }} @else @endif @php $statusMap = [ 'pending' => 'bg-amber-100 text-amber-700 border-amber-200', 'active' => 'bg-emerald-100 text-emerald-700 border-emerald-200', 'inactive' => 'bg-gray-100 text-gray-900 border-gray-200', 'scraped' => 'bg-blue-100 text-blue-700 border-blue-200', ]; $cls = $statusMap[$bank->status ?? 'pending'] ?? 'bg-gray-100 text-gray-900 border-gray-200'; @endphp {{ ucfirst($bank->status ?? 'pending') }} {{ \Carbon\Carbon::parse($bank->updated_at)->diffForHumans() }}
{{-- Pagination --}} @if($databanks->hasPages())

Showing {{ $databanks->firstItem() }}–{{ $databanks->lastItem() }} of {{ number_format($databanks->total()) }}

{{ $databanks->links() }}
@endif @endif
@endsection @push('scripts') @endpush