@extends(\Auth::user()->role != 10 ? 'layout' : 'layoutfrontdesk') @section('title', 'Room Status') @section('css') @endsection @section('content')
@if (!$kamars->isEmpty()) @php $systemdate = date('Y-m-d', strtotime(getSystemDate())); @endphp {{-- /* -------------------------------------------------------------------------- */ /* KAMAR MAINTENANCE */ /* -------------------------------------------------------------------------- */ --}} @foreach ($kamars as $kamar) @if (in_array($kamar->status,['OS','OOO'])) @if (($kamar->tanggal_deadline != null) && ($kamar->tanggal_deadline <= $systemdate)) @php $color_text = ''; if( ( in_array($kamar->status, ['OD']) ) ){ $color_text = 'text-warning font-weight-bold'; }else if ( ( in_array($kamar->status, ['VD']) ) ) { $color_text = 'text-danger font-weight-bold'; }else if ( ( in_array($kamar->status, ['VC']) ) ){ $color_text = 'text-success font-weight-bold'; } @endphp {{-- Modal Lihat Gambar --}} {{-- /Modal Lihat Gambar --}} @endif @endif @endforeach {{-- /* -------------------------------------------------------------------------- */ /* KAMAR NORMAL */ /* -------------------------------------------------------------------------- */ --}} @foreach ($kamars as $kamar) @if (in_array($kamar->status,['OS','OOO'])) @if (($kamar->tanggal_deadline != null) && ($kamar->tanggal_deadline <= $systemdate)) @continue @endif @endif @php $color_text = ''; if( ( in_array($kamar->status, ['OD']) ) ){ $color_text = 'text-warning font-weight-bold'; }else if ( ( in_array($kamar->status, ['VD']) ) ) { $color_text = 'text-danger font-weight-bold'; }else if ( ( in_array($kamar->status, ['VC']) ) ){ $color_text = 'text-success font-weight-bold'; } @endphp {{-- Modal Lihat Gambar --}} {{-- /Modal Lihat Gambar --}} @endforeach @endif
Hotel Floor Room Number Room Type Status Actions
{{$kamar->lantai}}
{{$kamar->no_kamar}} {{-- @if (!$kamar->gambarClean->isEmpty()) @foreach ($kamar->gambarClean as $gambar) @endforeach @endif --}}
@if(count($kamar->jenisKamars)) @foreach($kamar->jenisKamars as $jenis_kamar) -{{$jenis_kamar->nama}}
@endforeach @else - @endif
@if ($kamar->status == 'OOO' || $kamar->status == 'OS') @endif {{config('custom.status_kamar.'.$kamar->status)}} @if ($kamar->tanggal_deadline != null && ($kamar->status == 'OOO' || $kamar->status == 'OS')) @if (getSystemDate() >= $kamar->tanggal_deadline)
This room is past the deadline @endif @endif {{--
@csrf
--}}
@if (count($kamar->gambarClean)>0) @endif @if (count($kamar->data_housekeep)>0) @endif @if (in_array(\Auth::user()->role, [50])) @if (in_array(@dataHotel()->opsi_change_kamar, [0,2])) @endif @else @endif
{{$kamar->lantai}}
{{$kamar->no_kamar}} {{-- @if (!$kamar->gambarClean->isEmpty()) @foreach ($kamar->gambarClean as $gambar) @endforeach @endif --}}
@if(count($kamar->jenisKamars)) @foreach($kamar->jenisKamars as $jenis_kamar) -{{$jenis_kamar->nama}}
@endforeach @else - @endif
@if ($kamar->status == 'OOO' || $kamar->status == 'OS') @endif {{config('custom.status_kamar.'.$kamar->status)}} @if ($kamar->tanggal_deadline != null && ($kamar->status == 'OOO' || $kamar->status == 'OS')) @if (getSystemDate() >= $kamar->tanggal_deadline)
This room is past the deadline @endif @endif {{--
@csrf
--}}
@if (count($kamar->gambarClean)>0) @endif @if (count($kamar->data_housekeep)>0) @endif @if (in_array(\Auth::user()->role, [50])) @if (in_array(@dataHotel()->opsi_change_kamar, [0,2])) @endif @else @endif
{{-- Modal Info Kamar --}} {{-- /Modal Info Kamar --}} {{-- Modal Ubah Status --}} {{-- /Modal Ubah Status --}} @endsection @section('js') @endsection