@extends('layouts.app')
@section('content')
لوحة معالجة طلبات الحجوزات
| رقم الحجز | العقار والمضيف | الزبون | الدخول للخروج | الحالة والمؤقت | المبلغ | إجراءات |
|---|---|---|---|---|---|---|
| #{{ $booking->unique_id ?? $booking->id }} |
{{ $booking->detail->title ?? 'غير معروف' }}
{{ $booking->detail && $booking->detail->createdBy ? $booking->detail->createdBy->full_name : 'غير معروف' }}
|
{{ $booking->customer ? (trim($booking->customer->first_name . ' ' . $booking->customer->last_name) ?: $booking->customer->full_name) : 'غير معروف' }}
@if($booking->customer && $booking->customer->contact_no)
{{ $booking->customer->country_code . $booking->customer->contact_no }}
@endif
|
{{ \Carbon\Carbon::parse($booking->start_date)->format('M d') }}
إلى
{{ \Carbon\Carbon::parse($booking->end_date)->format('M d') }}
|
{{ $states[$booking->state_id] ?? 'غير معروف' }}
@if($booking->timeout_at)
@php
$timeout = \Carbon\Carbon::parse($booking->timeout_at);
$isExpired = $timeout->isPast();
@endphp
@if($isExpired)
منتهي
@else
متبقي {{ $timeout->diffForHumans(null, \Carbon\CarbonInterface::DIFF_ABSOLUTE) }}
@endif
@endif
|
{{ number_format($booking->total_amount, 2) }} LYD | |
| لا توجد طلبات لعرضها. | ||||||