@extends('admin.layout.master') @section('title', 'Room Maintenance') @section('content') @include('flash-message')

Room Maintenance

@if (count($errors) > 0)
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif {{-- {{ Form::open(['route' => ['maintenance.room'], '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', '4' => 'Out Of order'], null, ['class' => 'form-control', 'id' => '', 'placeholder' => 'Select Type']) }}
{{ Form::close() }} --}}
{{ Form::open(['route'=>['maintenance.update.room.status'],'method'=>'put', 'class'=>'form-horizontal','id'=>'myform','enctype'=>'multipart/form-data']) }}
@foreach ($rooms as $data) {{-- @dd($data->indent); --}} @endforeach
Floor Room
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']) }}
Indent Request   Modify
{{ $data->room->floor->floor_no }} {{$data->room->room_number }}     {{ Form::select('hk_room_status[]', ['1' => 'Ready', '2' => 'In Used', '3' => 'Dirty', '4' => 'Out Of order'], $data->room->hk_room_status, ['class' => 'form-control showSelected', 'data-id'=>$data->id, 'id' =>'hk_room_status'. $data->id, 'required', 'placeholder' => 'Select Room Status']) }} {{-- Go For Indent --}} @if($data->indent ==null) @else @if($data->indent->status ==1) @elseif($data->indent->status ==2) @elseif($data->indent->status ==3) @else @endif @endif {{-- If Room Not Dirty --}} @if($data->room->room_clean_status !== 3 && $data->room->hk_room_status !== 3)   @endif
{{ Form::close() }}
@endsection @section('script') @endsection