@extends('layouts.main-layout') @section('title') Edit Room | Dashboard @endsection @section('content')
Edit Room
@csrf @method('PUT')
Room Name
@error('name')
{{$errors->first('name')}}
@enderror
Description
@error('description')
{{$errors->first('description')}}
@enderror
Floor
@foreach($floors as $floor)
FloorId') == $floor->FloorId ? 'selected' : ''}} >{{$floor->FloorName}}
@endforeach
@error('room_type')
{{$errors->first('room_type')}}
@enderror
Room Type
Choose a Room Type
@foreach($roomTypes as $roomType)
RoomTypeId == $roomType->RoomTypeId || old('room_type') == $roomType->RoomTypeId ? 'selected' : ''}} >{{$roomType->RoomTypeName}}
@endforeach
@error('room_type')
{{$errors->first('room_type')}}
@enderror
Update Room
@endsection