@extends('layouts.app') @section('title', __('messages.add') . ' ' . __('hms::lang.rooms')) @section('content') @include('hms::layouts.nav')

@lang('messages.add')

@lang('hms::lang.add_rooms_help_text')

@component('components.widget') {!! Form::open([ 'url' => action([\Modules\Hms\Http\Controllers\RoomController::class, 'store']), 'method' => 'post', 'id' => 'create_room', 'files' => true, ]) !!}
{!! Form::label('type', __('hms::lang.type') . ':') !!} {!! Form::text('type', null, [ 'class' => 'form-control', 'required', 'placeholder' => __('hms::lang.type'), ]) !!}
{!! Form::label('no_of_adult', __('hms::lang.max_no_of_adult') . ':') !!} {!! Form::number('no_of_adult', null, [ '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', null, [ 'class' => 'form-control', 'required', 'placeholder' => __('hms::lang.no_of_child'), ]) !!}
{!! Form::label('max_occupancy', __('hms::lang.max_occupancy') . ':') !!} {!! Form::number('max_occupancy', null, [ 'class' => 'form-control', 'required', 'placeholder' => __('hms::lang.max_occupancy'), ]) !!}
@lang('hms::lang.room_no') @lang('messages.action')
{!! Form::label('amenities', __('hms::lang.amenities') . ':') !!}
@foreach ($amenities as $amenity)
@endforeach
{!! Form::label('images', __('hms::lang.images') . ':') !!} {!! Form::file('images[]', [ 'id' => 'upload_image', 'accept' => 'image/*', 'required' => false, 'multiple' => true, 'class' => 'upload-element', ]) !!}
{!! Form::label('description', __('hms::lang.description') . ':') !!} {!! Form::textarea('description', null, ['class' => 'form-control', 'rows' => 5]) !!}
{!! Form::close() !!} @endcomponent
@endsection @section('javascript') @endsection