تتبع حالة الحجز #{{ $tblBookingResort->id }}
@php $status = $tblBookingResort->state_id; $isCash = $tblBookingResort->payment_type == 'cash'; @endphp @if($isCash)
{{ $tblBookingResort->deposite_amount > 0 ? 'بانتظار العربون' : 'بانتظار القيمة كاملة' }}
@if($tblBookingResort->deposite_amount > 0 && $tblBookingResort->deposite_amount < $tblBookingResort->total_amount)
بانتظار دفع الباقي
@endif
فترة الدخول
@if($status == 7)
ملغي
@else
مكتمل
@endif @else
موافقة المضيف
دفع الزبون
@if($status == 9) بانتظار دفع الباقي @elseif($status == 3) بانتظار وقت الدخول @else تأكيد الدفع @endif
فترة الدخول
@if($status == 7)
ملغي
@else
مكتمل
@endif @endif
تفاصيل الحجز
  • تاريخ إجراء الحجز: {{ Carbon\Carbon::parse($tblBookingResort->created_on)->format('Y-m-d') }}
  • تاريخ الدخول: {{ Carbon\Carbon::parse($tblBookingResort->start_date)->format('Y-m-d') }}
  • وقت الدخول: {{ Carbon\Carbon::parse($tblBookingResort->start_time)->format('H:i') }}
  • عدد الضيوف: {{ $tblBookingResort->no_of_guest }} أفراد
  • تاريخ الخروج: {{ Carbon\Carbon::parse($tblBookingResort->end_date)->format('Y-m-d') }}
  • وقت الخروج: {{ Carbon\Carbon::parse($tblBookingResort->end_time)->format('H:i') }}
التحليل المالي للحجز
إجمالي الحجز

{{ $tblBookingResort->total_amount }} د.ل

المدفوع (عربون)

{{ $tblBookingResort->deposite_amount }} د.ل

المتبقي

{{ (float)$tblBookingResort->total_amount - (float)$tblBookingResort->deposite_amount }} د.ل


  • طريقة الدفع: {{ $tblBookingResort->payment_type }}
  • @if($tblBookingResort->deposite_amount > 0)
  • طريقة دفع المتبقي: {{ $tblBookingResort->deposit_payment_type }}
  • @endif @php // حساب الصافي والعمولات $tAmount = (float) $tblBookingResort->total_amount; $hostFee = ($tAmount * (float)($tblBookingResort->owner_percentage ?? 0)) / 100; $customerFee = ($tAmount * (float)($tblBookingResort->customer_fee_percentage ?? 0)) / 100; $netHost = $tAmount - $hostFee; @endphp
  • إجمالي عمولة المنصة (من المضيف): {{ $hostFee }} د.ل ({{ $tblBookingResort->owner_percentage }}%)
  • إجمالي عمولة المنصة (من الزبون): {{ $customerFee }} د.ل ({{ $tblBookingResort->customer_fee_percentage }}%)
  • الصافي للمضيف: {{ $netHost }} د.ل
@if($tblBookingResort->state_id == 7 || $tblBookingResort->tblCancelConfirm != null)
معلومات الإلغاء
@if($tblBookingResort->tblCancelConfirm != null)
تنبيه: يوجد طلب إلغاء قيد الانتظار لموافقة الزبون.
@endif
  • ألغي بواسطة: {{ $tblBookingResort->cancelled_by ?? 'قيد الطلب' }}
  • @if($tblBookingResort->cancelled_at)
  • تاريخ الإلغاء: {{ \Carbon\Carbon::parse($tblBookingResort->cancelled_at)->format('Y-m-d H:i') }}
  • @endif
  • سبب الإلغاء: {{ $tblBookingResort->cancelation_note ?? '-' }}
  • @if($tblBookingResort->state_id == 7)
  • القيمة المُرجعة: {{ $tblBookingResort->refund }} د.ل
  • @endif
@endif
بيانات الزبون
@if($tblBookingResort->userCreate)
{{ $tblBookingResort->userCreate->full_name }}

{{ $tblBookingResort->userCreate->country_code . $tblBookingResort->userCreate->contact_no }}


تاريخ العميل (Insights)

إجمالي الحجوزات: {{ $customerBookingsCount ?? 0 }}
@if(isset($customerInsights))
تأخر بالدفع (آلي): {{ $customerInsights['timeout'] }}
إلغاء ذاتي (من طرفه): {{ $customerInsights['cancel'] }}
@endif
@else

بيانات الزبون غير متوفرة

@endif
بيانات المضيف (صاحب العقار)
@if($tblBookingResort->details && $tblBookingResort->details->createdBy) @php $host = $tblBookingResort->details->createdBy; @endphp
{{ $host->full_name }}

{{ $host->country_code . $host->contact_no }}


تاريخ المضيف (Insights)

@if(isset($hostInsights))
تجاهل للطلبات (Timeout): {{ $hostInsights['timeout'] }}
رفض مباشر للطلبات: {{ $hostInsights['rejected'] }}
@endif
@else

بيانات المضيف غير متوفرة

@endif
الإجراءات السريعة
@if ( ($canUpdate = true && $tblBookingResort->state_id != 7 && $tblBookingResort->state_id != 5) || ($tblBookingResort->state_id != 3 && $tblBookingResort->state_id != 5 && $tblBookingResort->state_id != 7 && $tblBookingResort->tblCancelConfirm == null) ) @if ($tblBookingResort->tblCancelConfirm == null && $tblBookingResort->state_id != 3 && ($tblBookingResort->payment_type == 'cash' || $tblBookingResort->deposit_payment_type == 'cash')) {!! Form::model($tblBookingResort, ['route' => ['tblBookingResorts.update', $tblBookingResort->id], 'method' => 'patch']) !!} @if ($tblBookingResort->payment_type == 'cash') @if ($tblBookingResort->state_id == 6) @elseif ($tblBookingResort->state_id == 9) @endif @else @if ($tblBookingResort->deposite_amount > 0 && $tblBookingResort->deposit_payment_type == 'cash') @endif @endif {!! Form::close() !!} @endif @endif @if ($canCancel == true && $tblBookingResort->tblCancelConfirm == null && $tblBookingResort->state_id != 3) {!! Form::model($tblBookingResort, ['route' => ['deleteBooking', $tblBookingResort->id], 'method' => 'post']) !!}
{!! Form::close() !!} @endif @if ( ($tblBookingResort->tblCancelConfirm == null && ($canUpdate = true && !in_array($tblBookingResort->state_id, [6, 7, 5]) && $tblBookingResort->payment_type == 'cash')) || ($tblBookingResort->tblCancelConfirm == null && $tblBookingResort->state_id == 9 && $tblBookingResort->payment_type == 'cash') )
{!! Form::model($tblBookingResort, ['route' => ['deleteRequstBooking', $tblBookingResort->id], 'method' => 'post']) !!}
@if (isset($maxAmount) && $maxAmount > 0) أكبر قيمة يمكن إرجاعها: {{ $maxAmount }} @endif
{!! Form::close() !!} @endif العودة للقائمة
@include('tbl_booking_resorts.details')
@include('tbl_booking_resorts.detailsImages')
@include('tbl_booking_resorts.payment')
سجل المعاملات المالية

تتبع الحركات المالية (سحب وإيداع) المرتبطة بهذا الحجز

@if($transactions->count() > 0)
@php $typeLabels = [ 'deposit' => 'إيداع', 'withdraw' => 'سحب', 'refund_customer' => 'مرتجع للزبون', 'initial_payment' => 'رسوم توريستا (الزبون)', 'tourista_fee_host' => 'رسوم توريستا (المضيف)', 'transfer_to_host' => 'تحويل إلى المضيف', 'remaining_payment' => 'دفعة متبقية', 'commission' => 'عمولة', 'refund_tourista_fee_host' => 'مرتجع رسوم المضيف', 'refund_transfer_to_host' => 'مرتجع تحويل المضيف', 'final_payment' => 'الدفعة النهائية', ]; @endphp @foreach($transactions as $transaction) @php $displayType = $transaction->display_type ?? ($transaction->type ?? ''); $lower = mb_strtolower($displayType); $label = $typeLabels[$lower] ?? ($typeLabels[$displayType] ?? $displayType); $op = mb_strtolower($transaction->type ?? ''); $isDeposit = ($op === 'deposit' || $op === 'إيداع'); $note = $transaction->note ?? ($transaction->meta_array['note'] ?? null); @endphp
{{ $label }}
{{ $transaction->display_date }} @if($note) {{ $note }} @endif
{{ $isDeposit ? '+' : '-' }} {{ number_format(abs($transaction->amountFloat ?? ($transaction->amount / 100)), 2) }} LYD
@endforeach
@else
لا توجد معاملات مالية

لم يتم تسجيل أي معاملات سحب أو إيداع مرتبطة بهذا الحجز حتى الآن.

@endif