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



  <!-- Your html goes here -->

    <?php 
        use Carbon\Carbon;
         setlocale(LC_TIME, 'id');
        //var_dump(public_path() . '/' . $surat->pdf_path); 
        
        ?>
@extends('crudbooster::admin_template')
@section('content')


    @if($idv->tag_to_sign)
    <div>
        <form method='post' action='{{CRUDBooster::mainpath("tte")}}'>
            <input type="hidden" name="_token" value="{{ csrf_token() }}"/>
            <input type="hidden" name="id" value="{{ $id }}"/>
            <input type="hidden" name="idv_id" value="{{ $idv_id }}"/>
            <div class="form-group">
    		  <label>Passphrase</label>
    		  <input autocomplete="off" type="password" name="pass" required/>
    		</div>
    		<div class='form-group'>
    				<a class='btn btn-danger'  href="https://docs.google.com/viewer?url=https://siapkk.banjarbarukota.go.id/{{ $pdf_path }}" style="margin-left:15px">PRATINJAU (Android)</a>
    				<input type="submit" class='btn btn-primary' value="TANDATANGANI - {{ $idv->tag_to_sign }}" style="margin-left:15px"/>
    				<input type="button" class='btn btn-info' value="Proses" onclick="window.location.href='{{ CRUDBooster::mainpath() }}/proses/{{ $idv->id }}'" style="margin-left:15px"/>
    				<input type="button" class='btn btn-danger' value="Tolak" onclick="window.location.href='{{ CRUDBooster::mainpath() }}/tolak/{{ $idv->id }}'" style="margin-left:15px"/>
    				<input type="button" class='btn btn-info' value="Kembali" onclick="window.location.href='{{ CRUDBooster::adminPath($batal) }}'" style="margin-left:15px"/>
    		</div>
    	</form>
	</div>
	@else
	<div>
	    <input type="button" class='btn btn-info' value="< KEMBALI" onclick="window.location.href='{{ CRUDBooster::adminPath($batal) }}'" style="margin-left:15px"/>
	    <a class='btn btn-danger'  href="https://docs.google.com/viewer?url=https://siapkk.banjarbarukota.go.id/{{ $pdf_path }}" style="margin-left:15px">PRATINJAU (Mobile)</a>
	</div>    
	@endif
    <iframe src="{{ 'https://siapkk.banjarbarukota.go.id/' .  $pdf_path }}" width="100%" height="600px">
@endsection
		

