@extends('layout.base') @section('content') @php use App\Http\Controllers\StatsController; @endphp

Statistics

Kamers

@foreach ($rooms as $room)
id, $selectedRooms)) checked @endif>
@endforeach
@if ($type === StatsController::GUESTS_PER_COUNTRY) @foreach ($stats as $country) @if ($loop->last) @break @endif @endforeach
Land Boekingen Gasten Gem. gasten per boeking
{{ $country['country_name'] }} {{ $country['bookings'] }} {{ $country['guests'] }} {{ round($country['guests_per_booking'], 2) }}
TOTAAL {{ $stats ? $stats['totals']['bookings'] : 0 }} {{ $stats ? $stats['totals']['guests'] : 0 }} {{ $stats ? round($stats['totals']['guests_per_booking'], 2) : 0 }}
@elseif ($type === StatsController::NO_OF_NIGHTS)
Aantal overnachtingen
{{ $stats['nights'] }} nachten
@endif @endsection