|
@php
$condition = false;
if ($jenis_kamar->send_availibility === 0) {
$condition = false;
}else{
if ($jenis_kamar->change_to_date) {
$test1 = new Datetime($jenis_kamar->change_to_date);
$test2 = new Datetime(getSystemDate());
$diff = $test2->diff($test1)->format("%a");
$condition = false;
if ($diff <= 2 && $diff >= 0) {
$condition = true;
}
}
}
@endphp
{{ $jenis_kamar->nama }} {!!$condition ? ' ' : '' !!} |
{{ $jenis_kamar->room_tag }} |
{{--
@if(count($jenis_kamar->rateCodes) > 0)
@foreach($jenis_kamar->rateCodes as $ratecode)
-Rate {{$ratecode->rate_code}}: Rp. {{ribuan($ratecode->harga)}}
@endforeach
@else
-
@endif
|
--}}
{{ $jenis_kamar->kapasitas }} Pax |
@foreach($fasilitas as $fas)
@if($jenis_kamar->fasilitas!='')
@if(in_array($fas->id, json_decode($jenis_kamar->fasilitas)))
@endif
@endif
@endforeach
|
{{ config('custom.status_aktif.'.$jenis_kamar->status) }} |
{{--
--}}
@if(!count($jenis_kamar->booking_details) > 0)
@endif
|
@php ($i++)@endphp
@endforeach
@else