{!! Form::open(array('id' => 'frmOji', 'route' => ['ic.update', $internal->id], 'class' => 'form account-form', 'method' => 'PUT', 'files' => TRUE )) !!}
<div class="row">
	<div class="col-md-12">
	<p>
			{!! Form::label('Dokumen Id', 'Dokumen Id', array('class' => 'col-md-6 control-label')) !!}
			{!! Form::text('dokumen_id', $internal->dokumen_id, array('id' => 'dokumen_id', 'class' => 'form-control', 'placeholder' => 'Identitas Dokumen')) !!}
		</p>
		<p>
			{!! Form::label('Kategori', 'Kategori', array('class' => 'col-md-6 control-label')) !!}
			{!! Form::text('kategori_id', $internal->kategori_id, array('id' => 'kategori_id', 'class' => 'form-control', 'placeholder' => 'Identitas Dokumen')) !!}
		</p>
		<p>
			{!! Form::label('Nomor', 'Nomor', array('class' => 'col-md-6 control-label')) !!}
			{!! Form::text('nomor', $internal->nomor, array('id' => 'nomor', 'class' => 'form-control', 'placeholder' => 'Nomor Dokumen')) !!}
		</p>
		<p>
			{!! Form::label('Tahun', 'Tahun', array('class' => 'col-md-6 control-label')) !!}
			{!! Form::text('tahun', $internal->tahun, array('id' => 'tahun', 'class' => 'form-control', 'placeholder' => 'Tahun Dokumen')) !!}
		</p>
		<p>
			{!! Form::label('Nama', 'Nama', array('class' => 'col-md-6 control-label')) !!}
			{!! Form::text('nama', $internal->nama, array('id' => 'nama', 'class' => 'form-control', 'placeholder' => 'Nama Dokumen')) !!}
		</p>
		<p>
			<label for="lampiran" class="col-md-12 control-label">Lampiran (<a href="{{ $internal->url_file }}">Download</a>)</label>
			{!! Form::file('lampiran', array('id' => 'lampiran', 'class' => 'form-control', 'placeholder' => 'lampiran')) !!}
			<small>Kosongkan Lampiran jika tidak ingin diubah</small>
		</p>
		<p>
			{!! Form::label('Keterangan', 'Keterangan', array('class' => 'col-md-6 control-label')) !!}
			{!! Form::text('keterangan', $internal->keterangan, array('id' => 'keterangan', 'class' => 'form-control', 'placeholder' => 'Keterangan Dokumen')) !!}
		</p>
		<p>
			{!! Form::label('Tanggal SK', 'Tanggal SK', array('class' => 'col-md-6 control-label')) !!}
			{!! Form::text('tanggal_sk', $internal->tanggal_sk, array('id' => 'tanggal_sk', 'class' => 'form-control', 'placeholder' => 'MM\DD\YYYY')) !!}
		</p>
	</div>
	{!! Form::hidden('table-list', 'datatable', array('id' => 'table-list')) !!}
</div>
<div class="row">
	<div class="col-md-12">
        <span class="pesan"></span>
        <div id="output"></div>
        <div class="progress">
            <div class="progress-bar" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100">
                <div id="statustxt">0%</div>
            </div>
        </div>
	</div>
</div>
{!! Form::close() !!}
<script src="{{ URL::asset('resources/vendor/jquery/jquery.form.js') }}"></script>
<script src="{{ URL::asset('ojisatriani/home/ajax_progress.js') }}"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.9.0/js/bootstrap-datepicker.min.js"> </script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.9.0/css/bootstrap-datepicker.min.css" />
<script>
    $(document).ready(function(){
        var date_input=$('input[name="tanggal_sk"]'); //our date input has the name "date"
        var container=$('.bootstrap-iso form').length>0 ? $('.bootstrap-iso form').parent() : "body";
        date_input.datepicker({
            format: 'mm/dd/yyyy',
            container: container,
            todayHighlight: true,
            autoclose: true,
        })
    })
</script>
