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

House Keeping Room Status

@if (count($errors) > 0)
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif {{ Form::open(['route' => ['frontdesk.room_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.room_clean.status.update'],'method'=>'put', 'class'=>'form-horizontal','id'=>'myform','enctype'=>'multipart/form-data']) }}
@foreach ($rooms as $room) @endforeach
Floor Room Room Type Room 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 Room Status']) }}
  Modify
{{ $room->floor->floor_no }} {{ $room->room_number }}   {{ $room->roomType ? $room->roomType->name : null }} {{ Form::select('', ['1' => 'Ready', '2' => 'In Used', '3' => 'Dirty', '4' => 'Out Of order'], $room->room_clean_status, ['class' => 'form-control', 'id' => 'room_clean_status'.$room->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 Room 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->room_clean_status, [2,3,4]) && $room->hk_room_status == 1) {{-- Accept --}} Accept @endif {{-- If Room Not Dirty --}} @if( $room->room_clean_status ==1 || in_array($room->hk_room_status, [2,4]))   @else {{--   --}} @endif
{{ Form::close() }}
@endsection @section('script') @endsection