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

@extends('crudbooster::admin_template')
@section('content')
  <!-- Your html goes here -->

    <?php //var_dump($row); ?>

        <div class='panel panel-default'>
            <div class='panel-heading'>{{ $jenis_surat->nama_surat }}</div>
        
                <div class='panel-body'>
                    <div >
        			  <label>Jenis</label>
        			  <p>{{ $row->jenis_produk }}</p>
        			</div>
        			<div >
        			  <label>Jumlah</label>
        			  <p>{{ $row->jumlah . '  ' . $row->satuan  }}</p>
        			</div>
        			<div >
        			  <label>Warna</label>
        			  <p>{{ $row->warna  }}</p>
        			</div>
        			<div >
        			  <label>Tanda Khusus</label>
        			  <p>{{ $row->tanda_khusus  }}</p>
        			</div>
        			<div >
        			  <label>Tujuan Pengiriman</label>
        			  <p>{{ $row->tujuan_pengiriman  }}</p>
        			</div>

                
                <form method='post' action='{{CRUDBooster::mainpath("cetak-surat-dua/".$id)}}'>
    		        <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="{{ $jenis_surat->id }}"/>
    		        
    		        <div class="form-group">
        			  <label>Nomor Surat *</label>
        			  <input type="text" name="nomor_surat" value="{{ $row->nomor  }}">
        			</div>
        			<div class="form-group">
        			  <label>Tanggal Surat *</label>
        			  <input type="date" name="tanggal" />
        			</div>
        			
        			<div class="form-group">
                      <label >Penandatangan *</label>
                      <select name="penandatangan"  class="form-control">
                          <option value="">**Pilih Pejabat/Penandatangan</option>
                            @foreach($pejabat as $pjb)
                                <option  value="{{ $pjb->id }}">{{ $pjb->nama_pejabat . ' - NIP. ' . $pjb->nip_pejabat . ' - ' . $pjb->jabatan }}</option>
                            @endforeach
                      </select>
                    </div>
    		        
        			<div class='form-group'>
        			    <!--<input type="submit" class='btn btn-primary' value="VERIFIKASI" style="margin-left:15px"/>-->
    					<input type="submit" class='btn btn-primary' value="CETAK" style="margin-left:15px"/>
    					<input type="button" class='btn btn-primary' value="KEMBALI" onclick="window.location.href='{{ CRUDBooster::adminPath('surat_masuk') }}'" style="margin-left:15px"/>
    				</div>
    			</form>
    			
    			</div>
            <div class='panel-footer'>
              
            </div>
      </div>

		

@endsection