@version(2)
@load('./css/booking.css')
@load('./lang')
@php
$hm_names = [
'hold' => $lang->hb_status_hold,
'pending' => $lang->hb_status_pending,
'confirmed' => $lang->hb_status_confirmed,
'cancelled' => $lang->hb_status_cancelled,
'noshow' => $lang->hb_status_noshow,
'done' => $lang->hb_status_done,
'expired' => $lang->hb_status_expired,
];
@endphp
MY BOOKING
{{ $lang->hb_my_bookings }}
@if ($is_member)
@if ($rsv_config->credit_enabled === 'Y' || $my_grade || count($my_coupons))
@if ($my_grade)
{{ $lang->hb_grade }}
{{ $my_grade->title }}
@endif
@if ($rsv_config->credit_enabled === 'Y')
{{ $lang->hb_credit_balance }}
{{ number_format((int)$credit_balance) }}
@endif
{{ $lang->hb_my_coupons }}
{{ count($my_coupons) }}
@if (count($my_coupons))
@foreach ($my_coupons as $mine)
-
{{ $mine->coupon->title }}
@if($mine->coupon->discount_type === 'percent'){{ (int)$mine->coupon->discount_value }}%@else{{ number_format((int)$mine->coupon->discount_value) }}@endif
@if ($mine->coupon->use_end)~ {{ zdate($mine->coupon->use_end, $lang->hb_date_format) }}@endif
@endforeach
@endif
@if (count($credit_logs))
@foreach ($credit_logs as $log)
-
{{ zdate($log->regdate, $lang->hb_date_format) }}
{{ $lang->{'reservation_credit_' . $log->type} ?? $log->type }}
{{ (int)$log->amount > 0 ? '+' : '' }}{{ number_format((int)$log->amount) }}
@endforeach
@endif
@endif
@if (empty($bookings))
{{ $lang->reservation_no_bookings }}
@else
@endif
@else
{{ $lang->hb_guest_lookup_note }}
@endif