@extends('layouts.app') @section('title', 'Edit Room ' . $room->no) @section('page_title', 'Edit Room ' . $room->no) @section('page_subtitle', $room->name . ' · ' . $room->type . ', Floor ' . $room->floor) @section('nav_rooms', 'bg-teal-50 text-teal-700 font-semibold') @section('content')
Back to Room {{ $room->no }} @if (session('success'))
{{ session('success') }}
@endif @if ($errors->any())

Please fix the following errors:

@endif
@csrf @method('PATCH') {{-- 1. Room Identity --}}
1

Room Identity

@error('no')

{{ $message }}

@enderror
{{-- 2. Room Type & Specs --}}
2

Room Type & Specifications

{{-- Room Type --}}
{{-- 3. Rate & Status --}}
3

Rate & Status

@error('rate')

{{ $message }}

@enderror
{{-- 4. Amenities --}}
4

Amenities

@php $savedAmenities = old('amenities', $room->amenities ?? []); $allAmenities = [ 'Free Wi-Fi', 'Air Conditioning', 'Fan (non air conditioned)', 'Flat Screen TV', 'Hot Shower', 'Mini Refrigerator', 'In-room Safe', 'Coffee/Tea Maker', 'Direct Phone', 'Bathtub', 'Balcony', 'Living Area', 'Minibar', 'Dining Area', 'Kitchenette', 'Butler Service', ]; @endphp
@foreach ($allAmenities as $amenity) @endforeach
{{-- Notes --}}
{{-- Actions --}}

Room ID #{{ $room->id }} — last updated {{ $room->updated_at->format('M j, Y g:i A') }}

Cancel
@endsection