@extends('layouts.print')

@section('title')
  Transfer Cabang &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  	<a onclick="window.location='{{ route('home') }}'" class="btn btn-primary"><i class="fa fa-home"></i> Home </a>
	<a onclick="window.history.go(-2)" class="btn btn-warning"><i class="fa fa-undo"></i> Back </a> 
	<a onclick="myFunction()" class="btn btn-success"><i class="fa fa-print"></i>Print Dokumen</a>

    <script>
        function myFunction() {
          window.print();
        }
    </script>
@endsection

@section('breadcrumb')
   @parent
     <li>print transfer</li>
@endsection

@section('content')

<h4>SBO</h4>
<center>
	<h4>Transfer Cabang</h4>
</center>

<table style="width:90%">

<p>
	<tr><td width="100">Tujuan: </td><td width="650">{{ $cabang->cbg_kode.' - '.$cabang->cbg_name }}</td></tr>
	<tr><td>No.Dokumen:</td><td>{{ $mtrf->trf_no }}</td></tr>
	<tr><td>Tanggal:</td><td>{{ tanggal_indonesia($mtrf->trf_tgl, false) }}  </td></tr>	
</table>
<br>

<!-- <table class="table table-striped" style="width:90%"> -->
<table cellspacing="5" cellpadding="5" border="1" style="width:80%">

<tr>

	<th width="30" class="text-center">NO.</th>
	<th width="200">DESKRIPSI</th>
	<th width="80">NO.Seri</th>
	<th width="50" class="text-center">Hg.Retail</th>
	<th width="35" class="text-center">Qty</th>
</tr>

@foreach ($dtrf as $list)
	
	<tr>
	    <td align="center" height="15">{{ $no++ }}</td>
    	<td>{{ $list->nama_brg }}</td>
    	<td>{{ $list->no_seri }}</td>
    	<td align="center">{{ format_uang($list->trf_retail) }}</td>
    	<td align="center">{{ format_uang($list->trf_qty) }}</td>
    </tr>
	
@endforeach


<tr><td></td>
	<td></td>
	<td></td>
	<td align="center"><b>Jumlah</b></td>
	<td align="center"><b>{{ format_uang($totalqty) }}</b></td></tr>
</table>
<br>
<table style="width:80%">
    <tr><td width="100"></td><td>Admin</td>
		<td width="50"></td><td>Penerima</td>
		<td width="50"></td><td>Mengetahui</td></tr>
    
</table>

<p></p>
@endsection