@extends(\Auth::user()->role != 10 ? 'layout' : 'layoutfrontdesk') @section('title', 'Guest Birthday List') @section('css') @endsection @section('content')
{{-- --}} {{-- --}}

@if (\Request::get('from') || \Request::get('to') || \Request::get('display')) {{-- @if(!$guests->isEmpty()) --}} @if(count($guests) > 0) @foreach($guests as $guest) @php $birth_date = new DateTime($guest->birth_date); $date_now = new DateTime(getSystemDate()); $age = $birth_date->diff($date_now)->y; @endphp @endforeach @else @endif @else @endif
Name, Title Birth Date Age Arrival Departure Room Number Address Country - City Landline/Phone Mobile Number Email Address
{{$guest->name}}{{ $guest->title ? ', '.$guest->title : '' }}
{{formatDate($guest->birth_date)}}
{{$age}}
@if (@$guest->active_booking)
    @foreach (@$guest->active_booking as $active_booking) @if (@$active_booking->bookingDetails) @foreach (@$active_booking->bookingDetails as $key_booking_detail => $booking_detail) @if ($booking_detail->array_sub === 0 || $booking_detail->array_sub_extend_stay === 0) @if ($booking_detail->extend_stay === 0) @continue @endif
  • {{ $booking_detail->start_date ? formatDate(@$booking_detail->start_date) : '' }}
  • @endif @endforeach @endif @endforeach
@endif
@if (@$guest->active_booking)
    @foreach (@$guest->active_booking as $active_booking) @if (@$active_booking->bookingDetails) @foreach (@$active_booking->bookingDetails as $key_booking_detail => $booking_detail) @if ($booking_detail->array_sub === 0 || $booking_detail->array_sub_extend_stay === 0) @if ($booking_detail->extend_stay === 0) @continue @endif
  • {{ $booking_detail->end_date ? formatDate(@$booking_detail->end_date) : '' }}
  • @endif @endforeach @endif @endforeach
@endif
@if (@$guest->active_booking)
    @foreach (@$guest->active_booking as $active_booking) @if (@$active_booking->bookingDetails) @foreach (@$active_booking->bookingDetails as $key_booking_detail => $booking_detail) @if ($booking_detail->array_sub === 0 || $booking_detail->array_sub_extend_stay === 0) @if ($booking_detail->extend_stay === 0) @continue @endif
  • {{$booking_detail->nomor_kamar}} {{$booking_detail->block_kamar == 1 ? ' ' : ''}}
  • @endif @endforeach @endif @endforeach
@endif
{{$guest->address}}
{{$guest->country}} - {{ $guest->city }}
{{$guest->phone}}
{{$guest->mobile}}
{{$guest->email}}
No Data
Please choose the date filter and display filter first!
{{-- get date --}} @php $date[0] = \Request::get('from') ? date('d-m', strtotime(\Request::get('from').'-2020')) : date('d-m', strtotime(getSystemDate())); $date[1] = \Request::get('to') ? date('d-m', strtotime(\Request::get('to').'-2020')) : date('d-m', strtotime(getSystemDate())); @endphp {{-- closing get date --}} @endsection @section('js') @endsection