1 line
2.1 KiB
PHP
1 line
2.1 KiB
PHP
@extends('lodge.admin-layout')@section('title','Dashboard')@section('section','Dashboard')@section('content')<div class="page-heading"><div><div class="eyebrow">LODGE OVERVIEW</div><h1>Dashboard</h1><p>Welcome back. Here is what is happening at Cresta 31.</p></div><a class="btn primary" href="{{ route('lodge.admin') }}">Manage bookings →</a></div><div class="stat-grid"><div class="stat"><span>Total bookings</span><strong>{{ $total }}</strong><small>All-time requests</small></div><div class="stat"><span>Pending requests</span><strong>{{ $pending }}</strong><small>Awaiting review</small></div><div class="stat"><span>Confirmed stays</span><strong>{{ $confirmed }}</strong><small>Approved bookings</small></div><div class="stat"><span>Gallery photos</span><strong>{{ $photoCount }}</strong><small>Uploaded images</small></div></div><div class="panel"><div class="panel-head"><div><h2>Recent bookings</h2><p>Latest booking requests</p></div><a class="text-link" href="{{ route('lodge.admin') }}">View all →</a></div><div class="table-scroll"><table><thead><tr><th>Reference</th><th>Guest</th><th>Stay</th><th>Status</th><th>Total</th></tr></thead><tbody>@forelse($recent as $b)<tr><td><strong>{{ $b->reference }}</strong></td><td>{{ $b->guest_name }}</td><td>{{ $b->check_in->format('d M') }} – {{ $b->check_out->format('d M Y') }}</td><td><span class="badge {{ $b->status }}">{{ ucfirst($b->status) }}</span></td><td>£{{ number_format($b->total_pence / 100,2) }}</td></tr>@empty<tr><td colspan="5" class="empty">No bookings yet.</td></tr>@endforelse</tbody></table></div></div><div class="quick-grid"><a class="quick" href="{{ route('lodge.admin') }}"><span>▤</span><strong>Manage bookings</strong><small>Review and update guest reservations →</small></a><a class="quick" href="{{ route('admin.photos') }}"><span>▧</span><strong>Manage photographs</strong><small>Upload and organise lodge images →</small></a><a class="quick" href="{{ route('home') }}" target="_blank"><span>↗</span><strong>Visit public website</strong><small>Open Cresta 31 in a new tab →</small></a></div>@endsection |