@extends(\Auth::user()->role != 10 ? 'layout' : 'layoutfrontdesk') @section('title', 'Room | Edit Room') @section('content')
@csrf @method('PUT')
Data Room @if(Auth::user()->role == 1) @else @endif @if (!$multikamar->isEmpty())
@php $checkthisfirst = @$check_edited_multi[$multikamar[0]->jenis_kamar_id] ?? false; $disabledthisfirst = $checkthisfirst ? 'disabled' : null; @endphp
@if (count($multikamar) > 1) @php $countdata = 1; @endphp @foreach ($multikamar as $multi) @if ($loop->first) @continue @endif @php $checkthis = @$check_edited_multi[$multi->jenis_kamar_id] ?? false; $disabledthis = $checkthis ? 'disabled' : null; @endphp
  {{-- --}}
@php $countdata++; @endphp @endforeach @endif
{{-- Kalo data Multikamar empty --}} @else
@endif
@php $vacant_options = ''; $occupied_options = ''; $other_options = ''; $selected = ''; @endphp @foreach(config('custom.status_kamar') as $key => $val) @php if ($key == $kamar->status) { $selected = 'selected'; } else { $selected = ''; } if(explode(' ', $val)[0] == 'Vacant'){ //Vacant $vacant_options .= ''; } elseif(explode(' ', $val)[0] == 'Occupied'){ //Occupied $occupied_options .= ''; } else{ $other_options .= ''; } @endphp @endforeach

@if ($kamar->status == 'OOO' || $kamar->status == 'OS')
@else @if (!$kamar->gambarClean->isEmpty()) House Keeping Images
@foreach ($kamar->gambarClean as $gclean)
{{$gclean->nama_file}}
Open in New Tab
@endforeach
@endif
Back
@endsection @section('js') @endsection