@extends(\Auth::user()->role != 10 ? 'layout' : 'layoutfrontdesk') @section('title', 'Reservation | Edit Reservation') @section('css') @endsection @section('content') @php $hotel_id = $booking->hotel_id; $permission = \Auth::user()->permission_change_reserv; @endphp
@if (session('error_alert'))
{{ session('error_alert') }}
@endif
{{-- --}}
@method('PATCH') @csrf @php $checkreadonly = ''; $checkdisabled = ''; if (in_array($booking->status_booking,[1,2])) { $checkreadonly = 'readonly'; $checkdisabled = 'disabled'; } foreach ($booking->bookingDetails as $key_booking_detail => $booking_detail) { if (in_array($booking_detail->status_booking, [1,2])) { $checkreadonly = 'readonly'; $checkdisabled = 'disabled'; break; } } @endphp @if ($checkdisabled != '') @endif
Data Reservation
@if(Auth::user()->role == 1) @else @endif
{{-- --}}
{{-- --}}
{{-- --}}
{{-- @foreach($autocompletes as $autocomplete) @endforeach --}} @foreach($autocompletes as $autocomplete) @endforeach
@foreach($countries as $country) @endforeach
@foreach($countries as $country) @endforeach
{{-- @php $checkreadonly = ''; $checkdisabled = ''; if (in_array($booking->status_booking,[1,2])) { $checkreadonly = 'readonly'; $checkdisabled = 'disabled'; } @endphp --}} {{--
@php if(count($booking->bookingDetails) == 1){ $start_date = $booking->bookingDetails[0]->checkin ? $booking->bookingDetails[0]->checkin : $booking->start_date; $end_date = $booking->bookingDetails[0]->checkout ? $booking->bookingDetails[0]->checkout : $booking->end_date; } else{ $start_date = $booking->start_date; $end_date = $booking->end_date; } @endphp
--}} {{--
@if ($booking->start_date_old && $booking->end_date_old) *Day Use @endif
--}} {{--
expected_arrival->format('H:i') : ''}}" class="form-control input-timepicker" id="expected_arrival" {{$checkdisabled}} >
@if ($booking->start_date_old && $booking->end_date_old) *Day Use, Tanggal Asli: {{ date('Y/m/d', strtotime($booking->start_date_old)) }} - {{ date('Y/m/d', strtotime($booking->end_date_old)) }} @endif
--}} {{--
--}} {{--
Multiply:
Jenis Kamar: *
Nomor Kamar:
Rate Code: *
Arr. Code:
Harga:
@if (!in_array($booking->status_booking,[1, 2])) Block? @endif
@php $block_checkdisabled = ''; @endphp @if(count($booking->bookingDetails) > 0) @foreach($details as $idx => $values) @foreach ( $values as $id => $val ) @if ($val->array_sub == 0) @php if ($val->in_invoice != 1) { if ($val->block_kamar == 1) { $block_checkdisabled = 'disabled'; } else { $block_checkdisabled = ''; } } else { $block_checkdisabled = 'disabled'; } @endphp
@if ($block_checkdisabled == 'disabled') @endif
@if ($block_checkdisabled == 'disabled') @endif
@if ($block_checkdisabled == 'disabled') @if($val->block_kamar == 1) --}} {{-- --}} {{-- --}} {{-- @endif @else --}} {{-- @if($val->block_kamar == 1) --}} {{-- --}} {{-- --}} {{-- @endif --}} {{-- @endif
--}} {{-- --}} {{--
@php if ($val->nomor_kamar) { $total_rooms = $booking->bookingDetails->where('nomor_kamar', $val->nomor_kamar); }else { $total_rooms = $booking->bookingDetails->where('room_index', $val->room_index); } $total_room = 0; foreach ($total_rooms as $a => $b) { $total_room += $b->per_item; } @endphp
--}} {{--
--}} {{-- @if (!in_array($booking->status_booking,[1,2]))
date_now == getSystemDate() ? 'name=block_kamar['.$idx.']' : "" }} {{$val->block_kamar == 1 ? 'checked' : ''}}> @if($idx > 0) @else @endif
@else
@endif

Guest Name Room:
Billing Instruction: *
Incognito:

--}} {{-- --}} {{-- --}} {{-- @endif @endforeach @endforeach @else
--}} {{-- --}} {{--
--}} {{--
--}} {{--
@endif
--}}
@if ($log_changes->isNotEmpty())

@endif
@php $checkin_disabled = ''; $checkin_readonly = ''; $block_checkdisabled = ''; $block_checkreadonly = ''; $data_booking_details = []; $index_bd = []; @endphp @if (count($details) > 0) @foreach ($details as $idx => $values) @foreach ($values as $id => $val) @if ($val->array_sub == $tdy_array_sub[$val->array_index]) {{-- @if ($val->array_sub == 0) --}} @php $data_booking_details[] = $val; $index_bd[] = $idx; if ($val->start_date >= getSystemDate()) { // if ($val->date_now >= getSystemDate()) { if ($val->block_kamar == 1) { $block_checkdisabled = 'disabled'; $block_checkreadonly = 'readonly'; } else { $block_checkdisabled = ''; $block_checkreadonly = ''; } } else { $block_checkdisabled = 'disabled'; $block_checkreadonly = 'readonly'; } if ($val->status_booking == 1) { $checkin_disabled = 'disabled'; $checkin_readonly = 'readonly'; }else{ $checkin_disabled = ''; $checkin_readonly = ''; } if (\Auth::user()->permission_change_reserv == 1) { $checkin_disabled = 'disabled'; $checkin_readonly = 'readonly'; $block_checkdisabled = 'disabled'; $block_checkreadonly = 'readonly'; } if (in_array(\Auth::user()->role, [1])) { $checkin_disabled = ''; $checkin_readonly = ''; $block_checkdisabled = ''; $block_checkreadonly = ''; }else{ if (in_array($val->status_booking, [1,2])) { $checkin_disabled = 'disabled'; $checkin_readonly = 'readonly'; $block_checkdisabled = 'disabled'; $block_checkreadonly = 'readonly'; } } if ($val->noshowreservation == 1) { $checkin_disabled = 'disabled'; $checkin_readonly = 'readonly'; $block_checkdisabled = 'disabled'; $block_checkreadonly = 'readonly'; } // replace test $id = 0; @endphp {{-- # --}} {{-- Multiply --}} {{-- Reservation --}} {{-- Jumlah Malam --}} {{-- Expected Arrival --}} {{-- Guest Name Room --}} {{-- Jenis Kamar --}} @if ($block_checkdisabled == 'disabled') @endif {{-- --}} {{-- Pax --}} {{-- Room Availability --}} {{-- Nomor Kamar --}} {{-- Rate Code --}} {{-- Arrangement Code --}} {{-- Harga --}} {{-- Block Kamar --}} {{-- Billing Instruction --}} {{-- Incognito --}} @endif @endforeach @endforeach @endif
# Multiply Reservation * Night * Expected Arrival Guest Name Room Room Type * Pax * Room Availability Room Number Rate Code * Arr. Code * Price Block? Billing Instruction Incognito
@if (!in_array($val->status_booking,[1,2]))
@if($idx > 0) @else @endif
@else
@if($idx == 0 && $val->start_date > getSystemDate()) @endif
@endif
@php // $start_date = $val->checkin ? $val->checkin : $val->start_date; // $end_date = $val->checkout ? $val->checkout : $val->end_date; $start_date = $val->start_date; $end_date = $val->end_date; @endphp @if ($val->start_date_old && $val->end_date_old)

*Day Use, Real Date:

{{ date('d-m-Y', strtotime($val->start_date_old)) }} - {{ date('d-m-Y', strtotime($val->end_date_old)) }}

@elseif($val->early_co)

*C/I - C/O, time:

{{ date('d-m-Y H:i:s', strtotime($val->checkin_real)) }} - {{ date('d-m-Y H:i:s', strtotime($val->checkout_real)) }}

@endif
@if ($block_checkreadonly != '') @endif @if ($block_checkdisabled == 'disabled') @endif @if ($block_checkdisabled == 'disabled') @if($val->block_kamar == 1) {{-- --}} {{-- --}} @endif @else {{-- @if($val->block_kamar == 1) --}} {{-- --}} {{-- --}} {{-- @endif --}} @endif
@php // if ($val->nomor_kamar) { // $total_rooms = $booking->bookingDetails->where('nomor_kamar', $val->nomor_kamar); // }else { $total_rooms = $booking->bookingDetails->where('room_index', $val->room_index); // } $total_room = 0; foreach ($total_rooms as $a => $b) { $total_room += $b->per_item; } @endphp @if ($block_checkdisabled == 'disabled') @endif @if (!in_array($val->status_booking,[1,2])) date_now == getSystemDate() ? 'name=block_kamar['.$idx.']' : "" }} {{$val->block_kamar == 1 ? 'checked' : ''}}> @endif {{-- @if ($block_checkdisabled != '') @endif --}}
@foreach($group_lists as $group_list) @endforeach
{{--
Metode Deposit
Platform
Nama (Transfer / Credit Card)
Voucher Deposit
Nominal
@php $attr_deposit = 'readonly'; @endphp @if(count($deposits) > 0) @foreach($deposits as $key_deposit => $deposit)
jenis_deposit == 1 ? 'disabled' : '' }} {{ $deposit->jenis_deposit == 3 ? 'list="datalistTransfer'.$key_deposit.'"' : '' }} --}} {{-- > {!! $transfers !!}
--}} {{--
--}} {{-- @if($key_deposit > 0) @else --}} {{-- @if ($inhouse_booking_detail < 1 && count($deposits) < 3) @if ($key_deposit == 0) @endif @endif --}} {{-- @endif --}} {{--
@endforeach @else
{!! $transfers !!}
@if ($inhouse_booking_detail < 1 && count($deposits) < 3) @endif --}} {{-- --}} {{--
@endif
--}}
{{--
--}}
{{--
--}}
{{-- rekomendasi ukuran 1280 x 720 pixel --}}
@foreach ($booking->booking_file as $files) @endforeach
{{--
--}}
{{--
incognito == 1 ? 'checked' : ''}}>
--}}
Back
@csrf
{{-- -------------------------------------------------------------- Guest History Booking Modal -------------------------------------------------------------- --}} {{-- Modal Room Availability --}} {{-- Modal Room Availability --}} @endsection @section('js') {{-- --}} {{-- --}} {{-- --}} {{-- --}} @endsection