@extends(\Auth::user()->role != 10 ? 'layout' : 'layoutfrontdesk') @section('title', 'Room') @section('css') @endsection @section('content')
@if (!in_array(\Auth::user()->role, [10,40])) @endif
{{-- --}} {{-- /* -------------------------------------------------------------------------- */ /* KAMAR MAINTENANCE */ /* -------------------------------------------------------------------------- */ --}} @if (count($all_kamars_maintenance) > 0) @foreach ($all_kamars_maintenance as $kamars_maintenances) @foreach ($kamars_maintenances as $kamar_maintenance) @php $color_text = ''; if( ( in_array($kamar_maintenance->status, ['OD']) ) ){ $color_text = 'text-warning font-weight-bold'; }else if ( ( in_array($kamar_maintenance->status, ['VD']) ) ) { $color_text = 'text-danger font-weight-bold'; }else if ( ( in_array($kamar_maintenance->status, ['VC']) ) ){ $color_text = 'text-success font-weight-bold'; } @endphp @endforeach @endforeach @endif {{-- /* -------------------------------------------------------------------------- */ /* KAMAR NORMAL */ /* -------------------------------------------------------------------------- */ --}} @if (count($all_kamars) > 0) @foreach ($all_kamars as $kamars) @foreach ($kamars as $kamar) @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 {{----}} @endforeach @endforeach @endif
Floor Room Number Room Type Room Size Bed Size StatusStatus CleaningActions
{{$kamar_maintenance->lantai}}
{{$kamar_maintenance->no_kamar}}
@if(count($kamar_maintenance->jenisKamars)) @foreach($kamar_maintenance->jenisKamars as $jenis_kamar) -{{$jenis_kamar->nama}}
@endforeach @else - @endif
{{$kamar_maintenance->ukuran_kamar?$kamar_maintenance->ukuran_kamar:'-'}} {{$kamar_maintenance->ukuran_bed?$kamar_maintenance->ukuran_bed:'-'}}
@if ($kamar_maintenance->status == 'OOO' || $kamar_maintenance->status == 'OS') @endif {{config('custom.status_kamar.'.$kamar_maintenance->status)}} @if ($kamar_maintenance->tanggal_deadline != null && ($kamar_maintenance->status == 'OOO'||$kamar_maintenance->status == 'OS')) @if (getSystemDate() >= $kamar_maintenance->tanggal_deadline)
This room is past the deadline @endif @endif
@if (!in_array(\Auth::user()->role, [10,40])) @endif
{{$kamar->lantai}}
{{$kamar->no_kamar}}
@if(count($kamar->jenisKamars)) @foreach($kamar->jenisKamars as $jenis_kamar) -{{$jenis_kamar->nama}}
@endforeach @else - @endif
{{$kamar->ukuran_kamar?$kamar->ukuran_kamar:'-'}} {{$kamar->ukuran_bed?$kamar->ukuran_bed:'-'}}
@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
{{config('custom.status_cleaning')[$kamar->status_clean]}} @if (!in_array(\Auth::user()->role, [10,40])) @if(!$kamar->is_used) @endif @endif
@endsection @section('js') @endsection