@extends('admin.layout.master') @section('title', 'Bed Cleaning Status') @section('custom_style') @endsection @section('content') @include('flash-message')

Bed Cleaning Status

@if (count($errors) > 0)
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif {{ Form::open(['route' => ['frontdesk.bed_clean.status'], 'method' => 'get', 'class' => 'form-horizontal']) }}
{{ Form::select('floor_id', $repository->floors(), null, ['class' => 'form-control text-right', 'id' => 'warehouse_id', 'placeholder' => 'Select Floor']) }}
{{ Form::select('room_id', $repository->rooms(), null, ['class' => 'form-control', 'id' => 'room_type', 'placeholder' => 'Select Room']) }}
{{ Form::select('room_clean_status', ['1' => 'Ready', '2' => 'In Used', '3' => 'Dirty', '4' => 'Out Of order'], null, ['class' => 'form-control', 'id' => '', 'placeholder' => 'Select Type']) }}
{{ Form::close() }}
{{ Form::open(['route'=>['frontdesk.bed_clean.status.update'],'method'=>'put', 'class'=>'form-horizontal','id'=>'myform','enctype'=>'multipart/form-data']) }}
@foreach ($rooms as $room) {{-- @dd($room) --}} @endforeach
Floor Room Bed Bed Status
HK Status
{{ Form::select('', ['1' => 'Ready', '2' => 'In Used', '3' => 'Dirty', '4' => 'Out Of order'], null, ['class' => 'form-control', 'id' => 'room_status', 'placeholder' => 'Select Bed Status']) }}
  Modify
{{ $room->floor->floor_no }} {{ $room->parentRoom ? $room->parentRoom->room_number : null }}   {{ $room ? $room->room_number : null }} {{ Form::select('', ['1' => 'Ready', '2' => 'In Used', '3' => 'Dirty', '4' => 'Out Of order'], $room->bed_status, ['class' => 'form-control', 'id' => '','disabled']) }} {{ Form::select('hk_room_status[]', ['1' => 'Ready', '2' => 'In Used', '3' => 'Dirty', '4' => 'Out Of order'], $room->hk_room_status, ['class' => 'form-control showSelected', 'data-id'=>$room->id, 'id' =>'hk_room_status'. $room->id, 'required', 'placeholder' => 'Select Bed Status']) }} {{ Form::hidden('reason[]', null, ['class' => 'form-control out_of_order_reason', 'id' => 'out_of_order_reason'.$room->id,'placeholder'=>'Type Reason']) }} @if(in_array($room->bed_status, [2,3,4]) && $room->hk_room_status == 1) {{-- @if($room->bed_status == 3 && $room->hk_room_status == 1) --}} Accept @endif {{-- If Room Not Dirty --}} @if( $room->bed_status ==1 || in_array($room->hk_room_status, [2,4])) {{-- @if($room->bed_status !== 3 && $room->hk_room_status !== 3) --}}   @else {{--   --}} @endif
{{ Form::close() }}
@endsection @section('script') @endsection