@extends('layouts.app') @section('title', __('hms::lang.edit_room')) @section('content') @include('hms::layouts.nav') @lang('hms::lang.edit_room') @lang('hms::lang.edit_rooms_help_text') {{-- @lang('hms::lang.edit_room') --}} {!! Form::open([ 'url' => action([\Modules\Hms\Http\Controllers\RoomController::class, 'update'], ['room' => $room_type->id]), 'method' => 'put', 'id' => 'edit_room', 'files' => true ]) !!} {!! Form::label('type', __('hms::lang.type') . ':') !!} {!! Form::text('type', $room_type->type, [ 'class' => 'form-control', 'required', 'placeholder' => __('hms::lang.type'), ]) !!} {!! Form::label('no_of_adult', __('hms::lang.max_no_of_adult') . ':') !!} {!! Form::number('no_of_adult', $room_type->no_of_adult, [ 'required', 'class' => 'form-control', 'placeholder' => __('hms::lang.no_of_adult'), 'min' => 0, ]) !!} {!! Form::label('no_of_child', __('hms::lang.max_no_of_child') . ':') !!} {!! Form::number('no_of_child', $room_type->no_of_child, [ 'class' => 'form-control', 'required', 'placeholder' => __('hms::lang.no_of_child'), ]) !!} {!! Form::label('max_occupancy', __('hms::lang.max_occupancy') . ':') !!} {!! Form::number('max_occupancy', $room_type->max_occupancy, [ 'class' => 'form-control', 'required', 'placeholder' => __('hms::lang.max_occupancy'), ]) !!} @lang('hms::lang.room_no') @lang('messages.action') @foreach ($room_type['rooms'] as $index => $room) @lang('hms::lang.room_number_unick') @endforeach @lang('messages.add') @lang('hms::lang.rooms') {!! Form::label('amenities', __('hms::lang.amenities') . ':') !!} @foreach ($amenities as $amenity) {!! Form::checkbox('amenities[]', $amenity->id , in_array($amenity->id, $existing_amenities) , [ 'class' => 'input-icheck']); !!} {{ $amenity->name }} @endforeach {!! Form::label('images', __('hms::lang.images') . ':') !!} @foreach($room_type->media as $media) {!! $media->thumbnail() !!} @endforeach {!! Form::file('images[]', ['id' => 'upload_image', 'accept' => 'image/*', 'required' => false, 'multiple' => true, 'class' => 'upload-element']); !!} {!! Form::label('description', __('hms::lang.description') . ':') !!} {!! Form::textarea('description', $room_type->description, ['class' => 'form-control', 'rows'=> 5]); !!} @lang('hms::lang.update_and_add_price') @lang('messages.update') {!! Form::close() !!} @endsection @section('javascript') @endsection
@lang('hms::lang.edit_rooms_help_text')