@extends(\Auth::user()->role != 10 ? 'layout' : 'layoutfrontdesk') @section('title', 'Room Type') @section('css') @endsection @section('content')
{{-- --}} @if(!$jenis_kamars->isEmpty()) @php ($i = 1) @endphp @foreach($jenis_kamars as $jenis_kamar) @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 {{-- --}} @php ($i++)@endphp @endforeach @else @endif
Name TagHargaCapacity Facility Status Actions
{{ $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
No Data
@endsection @section('js') @endsection