<head>
    <style>
        #tblisi th { border-bottom:1px black solid; }
    </style>
</head>



<?php $__env->startSection('title'); ?>
    Cetak DO Keluar Barang &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  	<a onclick="window.location='<?php echo e(route('home')); ?>'" class="btn btn-primary"><i class="fa fa-home"></i> Home </a>
	<a onclick="window.history.go(-1)" 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>
    <!--a onclick="printmatrix()" class="btn btn-success"><i class="fa fa-print"></i>Print Faktur</a-->
    
    <script>
        function myFunction() {
          window.print();
        }
    </script>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('breadcrumb'); ?>
   ##parent-placeholder-6e5ce570b4af9c70279294e1a958333ab1037c86##
     <li>print do</li>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>

<center>
	<h4>DO Keluar Barang</h4>
</center>

<table style="margin-left:-10px;margin-right:-10px; width:100%" id='tblheader'>

	<tr><td width="400" style="font-size:18px"><b>Sukses Wijaya Adikarya</b></td><td class="text-right" width="400" style="font-size:18px"><?php echo e(tanggal_indonesia($mdo->out_tgl, false)); ?></td></tr>
	<tr><td style="font-size:18px"></td><td style="font-size:18px"><b>NO. DO: <?php echo e($mdo->out_no); ?></b></td></tr>
	<tr><td style="font-size:18px">Pengirim: <?php echo e($gdg->nama.' ['.$gdg->kode.']'); ?></td><td style="font-size:18px"></td></tr>	
	<tr><td style="font-size:18px">Tujuan: <?php echo e($mdo->tujuan); ?></td></tr>
	<tr><td>Ket : <?php echo e($mdo->deskripsi); ?></td></tr>
</table>
<br>

<table cellspacing="5" cellpadding="5"  style="width:100%;margin-left:-10px;margin-right:-10px" id="tblisi">

<tr border="1">
	<th width="200">DESKRIPSI</th>
	<th width="50" class="text-right">---QTY---</th>
	<th width="10"></th>
	<th width="200" class="text-left">NOTES</th>
</tr>

<?php $__currentLoopData = $dt; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $list): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
	
	<tr>
	    <td height="15" align="left" style="font-size:18px"><?php echo e($list->product_name); ?></td>
    	<td align="right" style="font-size:18px"><?php echo e(format_uang($list->qty).' '.$list->satuan); ?></td>
    	<td></td>
    	<td align="left" style="font-size:15px"><?php echo e($list->deskripsi); ?></td>
    </tr>

<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>


</table>

<!--hr> <!--style="width:96%; margin-top:5px; margin-bottom:5px; background-color: black; height: 1px; border:1;"-->



<table style="width:80%">
    <tr>
        <td width="50"></td><td>Penerima</td>
		<td width="250"></td><td>Hormat Kami</td>
	</tr>
	<tr>
		<td>&nbsp;</td><td></td>
	    <td>&nbsp;</td><td></td>	
	</tr>
	<tr>
		<td>&nbsp;</td><td></td>
	    <td>&nbsp;</td><td></td>	
	</tr>
	<tr>
        <td width="50"></td><td>Cap & Nama Jelas</td>
		<td width="250"></td><td>Admin</td>		
    </tr>
</table>

<p></p>
<?php $__env->stopSection(); ?>


<script type="text/javascript">
    
    function printmatrix(){
        
        var idsl = $('#idsale').val();
        
        var ua = navigator.userAgent.toLowerCase();
        var isAndroid = ua.indexOf("android") > -1; //&& ua.indexOf("mobile");
                	
        if(isAndroid) {
            var tpdevice='android';
        }else{
            var tpdevice='pclaptop';
        }
            
        $.ajax({
            url : "<?php echo e(DIR_APP); ?>sales/"+idsl+"/printfaktur_matrix",
            type : "GET",
            dataType : "JSON",
            success : function(data){
                if(tpdevice=='android'){
                    window.location.href=data.data;
                }else{
                	var socket = new WebSocket("ws://127.0.0.1:40213/");        /* harus dijalankan dulu dari rawbt.bat */
                    socket.bufferType = "arraybuffer";
                    socket.onerror = function(error) {
                	    alert("Error");
                    };			
                	socket.onopen = function() {
                		socket.send(data.data);
                		socket.close(1000, "Work complete");
                	};                    
                }
                    
                //ocation.reload();
        
            },
            error : function(){
                alert("error print...");
            }
        });
    }

</script>

<?php echo $__env->make('layouts.print', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/u345793601/domains/my-projeq.com/public_html/swa/resources/views/keluar/faktur.blade.php ENDPATH**/ ?>