@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 ═══════════════════════════════════════ --}}
{{ number_format($databanks->total()) }} records @if($filters['search'] || $filters['state'] || $filters['city']) — filtered @endif
No databanks found
Try adjusting your search or filters.
| # | Name | Location | Keywords | Images | Status | Updated |
|---|---|---|---|---|---|---|
| {{ $bank->id }} | {{-- Name --}}
@if($bank->place_id)
{{ $bank->name ?? '—' }}
@else
{{ $bank->name ?? '—' }} @endif @if($bank->phone){{ $bank->phone }} @endif |
{{-- Location --}}
{{ $bank->city ?? '—' }} {{ $bank->state ?? '' }} |
{{-- Keywords --}}
{{ $bank->keywords ?? '—' }} | {{-- Images count --}}@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') }} | {{-- Updated --}}{{ \Carbon\Carbon::parse($bank->updated_at)->diffForHumans() }} |
Showing {{ $databanks->firstItem() }}–{{ $databanks->lastItem() }} of {{ number_format($databanks->total()) }}