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

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

                      




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


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

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

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

    

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


        <div class="form-group{{ ($errors->has('check_in')) ? $errors->first('nama') : '' }}" style="margin-left: 200px; width: 1000px" value="{{$pembayaran->check_in}}">
        


        {{ Form::text('check_in', '', array('id' => 'datepicker')) }}


        {!! $errors->first('check_in','<p class="help-block">:message</p>') !!}
        </div>

        <div class="form-group{{ ($errors->has('check_out')) ? $errors->first('nama') : '' }}" style="margin-left: 200px; width: 1000px" value="{{$pembayaran->check_out}}">
        

            {{ Form::text('check_out', '', array('id' => 'datepickers')) }}


        {!! $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