@extends('backend.partials.master') @section('title') {{ ___('admin.hotel_reports_726ef0') }} @endsection @section('maincontent') @include('backend.reports._filterbar') @php $laDonut = ['labels' => $byCategory->pluck('category')->all(), 'series' => $byCategory->pluck('hotels')->map(fn($v) => (int) $v)->all()]; $laTrend = ['type' => 'bar', 'labels' => $byCity->pluck('city')->all(), 'series' => [['name' => 'Hotels', 'data' => $byCity->pluck('hotels')->map(fn($v) => (int) $v)->all()]]]; @endphp
{{ ___('admin.hotels_44dbc1') }}

{{ number_format($total) }}

{{ ___('admin.total_rooms_abf5d8') }}

{{ number_format($rooms) }}

{{ ___('admin.cities_7735fd') }}

{{ number_format($cities) }}

{{ ___('admin.avg_price_night_812b9c') }}

{{ currency_symbol() }}{{ number_format($avgPrice) }}

{{ ___('admin.by_city_7a45d0') }}

@foreach($byCity as $c) {{ $c->city }}{{ $c->country }}{{ number_format($c->hotels) }}{{ number_format($c->rooms) }}{{ currency_symbol() }}{{ number_format($c->avg_price) }} @endforeach

{{ ___('admin.by_star_category_959ce6') }}

@foreach($byCategory as $c) {{ $c->category }} {{ ___('admin.star_85a7de') }}{{ number_format($c->hotels) }}{{ number_format($c->rooms) }}{{ currency_symbol() }}{{ number_format($c->avg_price) }} @endforeach
@endsection