@extends('master')
	@section('content')
	<div class="row">
	<div class="col-md-12">
		<h1>Edit Data</h1>
		</div>
		</div>

<div class="row">
<form class="" action="{{route('pengunjung.update',$pengunjung->id)}}" method="post">
<input name="_method" type="hidden" value="PATCH">
		{{csrf_field()}}
		
		<div class="form-group{{ ($errors->has('kode_pemesanan')) ? $errors->first('kode_pemesanan') : '' }}">
		<input type="text" name="kode_pemesanan" class="textfield" placeholder="Enter kode_pemesanan 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') : '' }}">
		<input type="text" name="nama" class="textfield" 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') : '' }}">
		<input type="text" name="jenis_kamar" class="textfield" 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') : '' }}">
		<input type="text" name="kontak" class="textfield" 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') : '' }}">
		<input type="text" name="check_in" class="textfield" 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') : '' }}">
		<input type="text" name="check_out" class="textfield" placeholder="Enter check_out Here" value="{{$pengunjung->check_out}}">
		{!! $errors->first('check_out','<p class="help-block">:message</p>') !!}
		</div>

		<div class="form-group">
		<input type="submit" class="btn btn-primary" value="Simpan">
		</div>



		</form>
		

</div>

		@stop