@extends('layouts.rooms')
@section('content')
{{Form::model($room,['action'=>['RoomsController@postUpdate',$room->id]])}}
{{Form::label('name','Room name:')}}
{{Form::text('name')}}
{{$errors->first('name')}}
{{Form::label('rack_rate','Rack rate:')}}
{{Form::text('rack_rate')}}
{{$errors->first('rack_rate')}}
{{Form::label('property_id','Property ID:')}}
{{$room->property_id}}
{{Form::label('type','Type:')}}
{{$errors->first('type')}}
{{Form::label('parent_id','Parent Room:')}}
{{Form::select('parent_id',[null=>'']+$rooms)}}
{{$errors->first('parent_id')}}
{{Form::label('formula_type','Rate Formula:')}}
{{Form::select('formula_type',[null=>'']+$formulaTypes)}}{{Form::text('formula_value')}}
{{$errors->first('formula_type')}}
{{$errors->first('formula_value')}}
{{Form::submit('Update room')}}
{{Form::close()}}
@stop