@extends('admin.layout.main') @section('content')
طلبات حجز جديدة
@foreach ($bookings->where('created_at', '>=', date('Y-m-d').' 00:00:00')->where('created_at', '<=', date('Y-m-d').' 23:59:59') as $section) @if($section->hotel_info && $section->room_info) @endif @endforeach
# الفندق الغرفة تاريخ الحجز تاريخ الوصول تاريخ المغادرة
{{$loop->iteration}} {{$section->hotel_info->title}} {{$section->room_info->name}} {{date('Y-m-d', strtotime($section->created_at))}} {{$section->arr_date}} {{$section->leave_date}}

طلبات حجز قادمة
@foreach ($bookings as $section) @if($section->hotel_info && $section->room_info && (strtotime($section->arr_date) - ($section->hotel_info->cancel_booking * 3600 * 24)) >= strtotime(date('Y-m-d'))) @endif @endforeach
# الفندق الغرفة تاريخ الحجز تاريخ الوصول تاريخ المغادرة
{{$loop->iteration}} {{$section->hotel_info->title}} {{$section->room_info->name}} {{date('Y-m-d', strtotime($section->created_at))}} {{$section->arr_date}} {{$section->leave_date}}

تنبيهات المغادرة
@foreach ($bookings as $section) @if($section->hotel_info && $section->room_info && (strtotime($section->leave_date) - (3600 * 24)) >= strtotime(date('Y-m-d'))) @endif @endforeach
# الفندق الغرفة تاريخ الحجز تاريخ الوصول تاريخ المغادرة
{{$loop->iteration}} {{$section->hotel_info->title}} {{$section->room_info->name}} {{date('Y-m-d', strtotime($section->created_at))}} {{$section->arr_date}} {{$section->leave_date}}
@endsection