@extends('layouts.layout')

@section('content')
	



<div class="container">
    <div class="row">
        <div class="col-md-8 col-md-offset-2">
            <div class="panel panel-default">
                <div class="panel-heading">Edit Data</div>

                <div class="panel-body">
                    <form class="form-horizontal" role="form" method="POST" action="{{ route('kamar.update',$kamar->id) }}" method="post">
                    <input name="_method" type="hidden" value="PATCH">
                        {{ csrf_field() }}

                        <!-- <input type="hidden" name="token" value=""> -->

                      




        <div class="form-group{{ ($errors->has('jenis_kamar')) ? $errors->first('jenis_kamar') : '' }}" style="margin-left: 200px; width: 1000px">
		<input type="text" name="jenis_kamar" class="col-md-4 control-label" placeholder="Enter Jenis Kamar Here" value="{{$kamar->jenis_kamar}}">
		{!! $errors->first('jenis_kamar','<p class="help-block">:message</p>') !!}
		</div>


        <div class="form-group{{ ($errors->has('harga_kamar')) ? $errors->first('jenis_kamar') : '' }}" style="margin-left: 200px; width: 1000px">
		<input type="text" name="harga_kamar" class="col-md-4 control-label" placeholder="Enter Harga kamar Here" value="{{$kamar->harga_kamar}}">
		{!! $errors->first('harga_kamar','<p class="help-block">:message</p>') !!}
		</div>


		<div class="form-group{{ ($errors->has('jumlah_kamar')) ? $errors->first('jenis_kamar') : '' }}" style="margin-left: 200px; width: 1000px">
		<input type="text" name="jumlah_kamar" class="col-md-4 control-label" placeholder="Enter Jumlah kamar Here" value="{{$kamar->jumlah_kamar}}">
		{!! $errors->first('jumlah_kamar','<p class="help-block">:message</p>') !!}
		</div>
                       
                        </div>

                     

                        <div class="form-group" style="margin-left: 325px; width: 1000px">
						<input type="submit" class="btn btn-primary" value="Simpan">
						</div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>








	
  @endsection