@extends('lodge.admin-layout') @section('title','Bookings & overview') @section('section-label',request('section') === 'photos' ? 'Photographs' : (request('section') === 'bookings' ? 'Bookings' : 'Overview')) @section('content') @php $section = request('section', 'overview'); $items = $bookings->getCollection(); $allCount = $bookings->total(); $pendingOnPage = $items->where('status','pending')->count(); $confirmedOnPage = $items->where('status','confirmed')->count(); $revenueOnPage = $items->where('status','confirmed')->sum('total_pence') / 100; @endphp @if($section === 'photos')
PROPERTY MEDIA

Photographs

Manage the photographs displayed on your lodge website.

← Back to overview
@if(Route::has('lodge.photos.store'))

Upload photographs

Add new images to your lodge gallery.

@csrf
@endif @if(isset($photos) && count($photos))

Gallery

{{ count($photos) }} photos
@foreach($photos as $photo)
@php $photoPath = $photo->url ?? $photo->path ?? $photo->filename ?? null; @endphp @if($photoPath)Lodge photograph@else
Image
@endif
Photo #{{ $photo->id }}@if(Route::has('lodge.photos.destroy'))
@csrf @method('DELETE')
@endif
@endforeach
@elseif(!Route::has('lodge.photos.store'))
Photo management is not installed in this version of Cresta 31.
@else
No uploaded photographs yet.
@endif @else
PROPERTY MANAGEMENT

{{ $section === 'bookings' ? 'Bookings' : 'Welcome back' }}

{{ $section === 'bookings' ? 'Review reservations and update booking statuses.' : 'Here’s what’s happening with your lodge bookings.' }}

View website ↗
Total bookings ▤
{{ number_format($allCount) }}
All reservations
Pending ◷
{{ $pendingOnPage }}
On this page
Confirmed ✓
{{ $confirmedOnPage }}
On this page
Confirmed value £
£{{ number_format($revenueOnPage,2) }}
On this page

{{ $section === 'bookings' ? 'All bookings' : 'Recent bookings' }}

Manage guest reservations and their current status.

{{ number_format($allCount) }} total
@forelse($bookings as $b)@empty@endforelse
ReferenceGuestStay datesGuestsAmountStatusUpdate
{{ $b->reference }}{{ $b->guest_name }}{{ $b->guest_email }}@if($b->guest_phone){{ $b->guest_phone }}@endif{{ $b->check_in?->format('d M Y') }}
to {{ $b->check_out?->format('d M Y') }}
{{ $b->guests }}£{{ number_format($b->total_pence/100,2) }}{{ ucfirst($b->status) }}
@csrf @method('PATCH')
No bookings yet. New reservations will appear here.
{{ $bookings->appends(request()->query())->links() }}
@if($section !== 'bookings')
▤
Manage bookingsReview and update reservations
→
▧
Lodge galleryUpload and organise photos
→
@endif @endif @endsection