@extends('layouts.app')
<head>
    <style>
        .tblhdr { height:35px; background-color:#6495ED; color: white; font-size: 14px;}
        
        #tblpiutang td,tr { font-size:13px; border:0px gray solid;}
        
    </style>
</head>

@section('title')

@endsection

@section('breadcrumb')
   @parent
   <li>Jurnal Transksi</li>
@endsection


@section('content')   
<div class="row">
	<div class="container-fluid">
		<div class="card">
			<div class="card-block">  

<form method="post" id="form-jurnal">
{{ csrf_field() }}

<h6>Jurnal Transaksi</h6>
<br>

<label>Tanggal</label>
<input id="tgl" type="date" class="form-control" name="tgl" value="{{ date('Y-m-d', strtotime("-1 day", strtotime(date('Y-m-d')))) }}" autofocus required>
<br>
	
<button type="button" class="btn btn-primary btn-sm pull-right" onclick="report()"><i class="fa fa-table"></i> Report </button>
		<!--a onclick="report()" class="btn btn-success btn-flat btn-sm" style="color:white;"> Report </a-->  
 


</form>

        </div>

		</div>
	</div>	
</div>


@endsection

@section('script')
<script type="text/javascript">

function report(){
    $('#form-jurnal').attr('target', '_blank').attr('action', "{{ DIR_APP }}report/jurnal").submit();       //--> open new windows
    location.reload();
}

</script>

@endsection
