@extends('layouts.app') @section('title', 'DOT Guest Statistics') @section('nav_reports', 'bg-teal-50 text-teal-700 font-semibold') @section('page_title', 'Reports') @section('page_subtitle', 'DOT Guest Statistics') @section('content') @include('reports._filter', [ 'active' => 'reports.dot-statistics', 'mode' => 'range', 'from' => $from, 'to' => $to, 'title' => 'DOT Guest Arrivals & Guest-Nights by Nationality', 'subtitle' => 'Arrivals ' . \Carbon\Carbon::parse($from)->format('M j') . ' – ' . \Carbon\Carbon::parse($to)->format('M j, Y'), ]) {{-- Summary tiles --}}

Guest Arrivals

{{ number_format($totalGuests) }}

persons · {{ number_format($totalArrivals) }} bookings

Guest-Nights

{{ number_format($totalGuestNights) }}

persons × nights

Domestic / Foreign

{{ $domesticArrivals }} / {{ $foreignArrivals }}

{{ number_format($domesticNights) }} / {{ number_format($foreignNights) }} guest-nights

Avg Length of Stay

{{ number_format($avgLos, 1) }}n

nights per arrival

{{-- By nationality --}}

By Nationality

Source markets by guest-nights · for DOT / LGU tourism reporting

@if(empty($byNationality))

No arrivals for this period.

@else
@foreach($byNationality as $nat => $n) @endforeach
Nationality Arrivals Guests Room-Nights Guest-Nights Revenue
{{ $nat }} {{ $n['domestic'] ? 'Domestic' : 'Foreign' }} {{ $n['arrivals'] }} {{ $n['guests'] }} {{ $n['room_nights'] }} {{ $n['guest_nights'] }} ₱{{ number_format($n['revenue'], 2) }}
Total {{ $totalArrivals }} {{ $totalGuests }} {{ $totalRoomNights }} {{ $totalGuestNights }}
@endif

Nationality is captured per stay at booking (defaults to Filipino) and frozen on the reservation, so a later guest-profile edit can't reclassify a filed period. Set it on the booking form for accurate figures.

@endsection