@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" style="background-color: #E1E1E1 ;">
                <div class="panel-heading" style="background-color: #00A65A; color:white">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: 330px">
		<input type="text" name="nama" class="form-control" placeholder="Masukkan jenis pembayaran disini" 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: 330px">
		<input type="text" name="jenis_kamar" class="form-control" placeholder="Masukkan jenis kamar disini" 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: 330px">
        <input type="text" name="lama_menginap" class="form-control" placeholder="Masukkan lama menginap disini" 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: 330px">
		<input type="text" name="kontak" class="form-control" placeholder="Masukkan kontak disini" 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: 330px">
        <input type="text" name="jumlah_kamar" class="form-control" placeholder="Masukkan jumlah Kamar disini" 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: 330px" 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: 330px" 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: 330px">
						<input type="submit" class="btn btn-primary" value="Simpan">
						</div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>








	
  @endsection