@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('pengunjung.update',$pengunjung->id) }}" method="post">
                    <input name="_method" type="hidden" value="PATCH">
                        {{ csrf_field() }}

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

                      




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


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


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

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

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

		<div class="form-group{{ ($errors->has('check_out')) ? $errors->first('kode_pemesanan') : '' }}" style="margin-left: 200px; width: 1000px">
		<input type="text" name="check_out" class="col-md-4 control-label" placeholder="Enter Check-Out Here" value="{{$pengunjung->check_out}}">
		{!! $errors->first('check_out','<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