@extends('pdf.layouts.app') @section('title', 'Accommodation Rooms Report') @section('styles') @endsection @section('content')
@php $rows = collect($rows ?? []); $filters = $filters ?? []; $summary = $summary ?? [ 'adult_count' => 0, 'childreen_count' => 0, 'no_fee_children_count' => 0, ]; @endphp @if($rows->count() > 0)
{{ __('Filters') }}: @if(!empty($filters['accommodation_id'])) {{ __('Accommodation ID') }}: {{ $filters['accommodation_id'] }} @endif @if(!empty($filters['check_in']) || !empty($filters['check_out'])) {{ __('Period') }}: {{ $filters['check_in'] ?? '-' }} {{ !empty($filters['check_out']) ? ' - '.$filters['check_out'] : '' }} @endif
{{ __('Summary') }}: {{ __('Adults') }}: {{ $summary['adult_count'] ?? 0 }} | {{ __('Children') }}: {{ $summary['childreen_count'] ?? 0 }} | {{ __('No Fee Children') }}: {{ $summary['no_fee_children_count'] ?? 0 }}
@foreach($rows as $index => $row) @endforeach
# {{ __('Profile Number') }} {{ __('Check In') }} {{ __('Check Out') }} {{ __('Nights') }} {{ __('Adults') }} {{ __('Children') }} {{ __('No Fee Children') }} {{ __('Bed Type') }} {{ __('Room Type') }} {{ __('Room View') }} {{ __('Invoice Number') }} {{ __('Hotel') }} {{ __('Country') }} {{ __('City') }}
{{ $index + 1 }} {{ $row['profile_number'] ?? '' }} {{ $row['check_in'] ?? '' }} {{ $row['check_out'] ?? '' }} {{ $row['nights_count'] ?? '' }} {{ $row['adult_count'] ?? 0 }} {{ $row['childreen_count'] ?? 0 }} {{ $row['no_fee_children_count'] ?? 0 }} {{ $row['bed_type'] ?? '' }} {{ $row['room_type_name'] ?? '' }} {{ $row['room_view_name'] ?? '' }} {{ $row['invoice_serial_num'] ?? '' }} {{ $row['hotel_name'] ?? '' }} {{ $row['hotel_country_name'] ?? '' }} {{ $row['hotel_city_name'] ?? '' }}
@else

{{ __('No data available for this report.') }}

@endif
@endsection