<!-- First, extends to the CRUDBooster Layout -->
<?php
setlocale(LC_ALL, 'IND');
?>

@extends('crudbooster::admin_template')
@section('content')
        <div class='panel panel-default' >
            <div class='panel-heading'><strong>{{ $jenis->nama_surat }} dari {{ $pemohon->name }} ({{$pemohon->nik}})</strong></div>
        
                <div class='panel-body'>
                    <form method='post' action='{{CRUDBooster::mainpath("diskusi/".$id)}}' id="tolakform">
                        <input type="hidden" name="_token" value="{{ csrf_token() }}"/>
                        <input type="hidden" name="id" value="{{ $id }}"/>
                        <input type="hidden" name="rel_table" value="{{ $rel_table }}"/>
                        <input type="hidden" name="rel_id" value="{{ $rel_id }}"/>
                        <input type="hidden" name="jenis_surat_id" value="{{ $surat->jenis_surat_id }}"/>
                        
                        <div class="form-group">
                            <label for="diskusi">Diskusi</label>
                            <textarea name="lastdiskusi" form="tolakform" id="lastdiskusi" rows="20" cols="80" readonly>{{ $surat->diskusi }}</textarea>
                        </div>
                        
                        <div class="form-group">
                            <label for="diskusi">Kirim Diskusi *</label>
                            <textarea name="diskusi" form="tolakform" id="diskusi" rows="4" cols="80" ></textarea>
                        </div>
                    	
                        
                    	<div class='form-group'>
                    	    <!--<input type="submit" class='btn btn-primary' value="VERIFIKASI" style="margin-left:15px"/>-->
                            <a class='btn btn-default' href="{{ CRUDBooster::adminPath('surat_idv') }}" style="margin-left:15px"><i class="fa fa-arrow-left"></i> KEMBALI</a>

                            <input type="submit" class='btn btn-info' value="KIRIM" style="margin-left:15px"/>
                    		
                    		@if(CRUDBooster::myPrivilegeId()!=2)
                    		<input type="button" class='btn btn-danger' value="TOLAK" onclick="window.location.href='{{ CRUDBooster::adminPath('surat_idv/tolak/'.$id.'/'.$surat->jenis_surat_id.'/'.$rel_id.'/'.$rel_table) }}'" style="margin-left:15px"/>
                    		@endif
                    	</div>
                    </form>
                </div>
            
      </div>
@endsection