<head>
    <style>
        .tabelftr th, tr, td 
            { border-top:0px transparent; border-bottom:0px transparent;
              font-size:14px;       }
    </style>
</head>




<?php $__env->startSection('title'); ?>
    Dashboard
<?php $__env->stopSection(); ?>

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

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

<!-- logs activity -->
<!--<div class="container-fluid"> -->
<div class="row">
    <div class="col-lg-6 col-md-12 col-sm-12 col-xs-12"> 
        <div class="container-fluid">
            <div class="card">
                <div class="card-block">
            
                	<div style="padding:0px 1px 3px 3px ; overflow:auto; width:100%; height:490px">
                          <label style="font-size:14px">Aktivitas Terakhir</label>
                				<ul class="user-timeline user-timeline-compact"  style="font-size:13px;">
                				<?php $__currentLoopData = $UserLog; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=> $log): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                					<?php if($key==0): ?>
                						<li class="latest">
                						    <div class="user-timeline-data"><?php echo e($log->created_at); ?></div>
                							<strong><div class="user-timeline-title"><?php echo $log->title; ?></div></strong>
                							<div class="user-timeline-description"><?php echo $log->content; ?></div>
                						</li>
                					<?php else: ?>
                						<li>
                							<div class="user-timeline-data"><?php echo e($log->created_at); ?></div>
                							<strong><div class="user-timeline-title"><?php echo $log->title; ?></div></strong>
                							<div class="user-timeline-description"><?php echo $log->content; ?></div>
                						</li>	
                					<?php endif; ?>
                				<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                				</ul>
                	<!--	    </div>
                	    </div>-->
                    </div>
                </div>
            </div>
        </div>
    </div>
<!-- <a href="HTTP://url-palsu" onclick="this.href = 'HTTP://url-asli'">CONTOH</a>     -->

    <div class="col-lg-6 col-md-12 col-sm-12 col-xs-12"  id="myInfo"> 
      <div class="container-fluid" style="margin-left:-30px;margin-right:-10px;">

            <div class="card-group" style="margin-bottom:10px;">
                
              <div class="card" style="background-color:#F5F5F5;">
                <div class="text-right">
                    <span><i class="fa fa-cogs fa-2x" style="margin-top:1px;padding:10px 10px;"></i></span>
                </div>
                <div class="card-body" style="margin-top:-12px;">
                    <h6 class="text-left" style="padding:5px 15px;">Category</h6>
                    <hr style="width:90%; margin-top:-5px; margin-bottom:5px; background-color: green; height: 1px; border: 0;">
                    <h5 class="text-left" style="padding:0px 15px;"><?php echo e($category); ?></h5>
                </div>
              </div>
              
              <div class="card" style="background-color:#F5F5F5;">
                <div class="text-right">
                    <span><i class="fa fa-truck fa-2x" style="margin-top:1px;padding:10px 10px;"></i></span>
                </div>
                <div class="card-body" style="margin-top:-12px;">
                    <h6 class="text-left" style="padding:5px 15px;">Supplier</h6>
                    <hr style="width:90%; margin-top:-5px; margin-bottom:5px; background-color: orange; height: 1px; border: 0;">
                    <h5 class="text-left" style="padding:0px 15px;"><?php echo e($supplier); ?></h5>
                </div>
              </div>
              
              <div class="card" style="background-color:#F5F5F5;">
                <div class="text-right">
                    <span><i class="fa fa-cubes fa-2x" style="margin-top:1px;padding:10px 10px;"></i></span>
                </div>
                <div class="card-body" style="margin-top:-12px;">
                    <h6 class="text-left" style="padding:5px 15px;">Product</h6>
                    <hr style="width:90%; margin-top:-5px; margin-bottom:5px; background-color: blue; height: 1px; border: 0;">
                    <h5 class="text-left" style="padding:0px 15px;"><?php echo e($product); ?></h5>
                </div>
              </div>
              
            </div>
      
            
            <div class="card-group" style="margin-bottom:10px;">
                
              <div class="card" style="background-color:#F5F5F5;">
                <div class="text-right">
                    <span><i class="fa fa-users fa-2x" style="margin-top:1px;padding:10px 10px;"></i></span>
                </div>
                <div class="card-body" style="margin-top:-12px;">
                    <h6 class="text-left" style="padding:5px 15px;">Customer</h6>
                    <hr style="width:90%; margin-top:-5px; margin-bottom:5px; background-color: magenta; height: 1px; border: 0;">
                    <h5 class="text-left" style="padding:0px 15px;"><?php echo e($customer); ?></h5>
                </div>
              </div>
              
              <div class="card" style="background-color:#F5F5F5;">
                <div class="text-right">
                    <span><i class="fa fa-pencil-square-o fa-2x" style="margin-top:1px;padding:10px 10px;"></i></span>
                </div>
                <div class="card-body" style="margin-top:-12px;">
                    <h6 class="text-left" style="padding:5px 15px;">Order</h6>
                    <hr style="width:90%; margin-top:-5px; margin-bottom:5px; background-color: #40E0D0; height: 1px; border: 0;">
                    <h5 class="text-left" style="padding:0px 15px;"><?php echo e($order); ?></h5>
                </div>
              </div>
              
              <div class="card" style="background-color:#F5F5F5;">
                <div class="text-right">
                    <span><i class="fa fa-dollar fa-2x" style="margin-top:1px;padding:10px 10px;"></i></span>
                </div>
                <div class="card-body" style="margin-top:-12px;">
                    <h6 class="text-left" style="padding:5px 15px;">Faktur</h6>
                    <hr style="width:90%; margin-top:-5px; margin-bottom:5px; background-color: blue; height: 1px; border: 0;">
                    <h5 class="text-left" style="padding:0px 15px;"><?php echo e($faktur); ?></h5>
                </div>
              </div>
            </div>
            

      </div>
      
        <!--section id="infoftr" class="show">
        <div class="container-fluid" style="margin-left:-30px; margin-right:-10px;">
            <div class="card card-a">
                <div class="card-block">
            
                	<div style="padding:0px 1px 3px 3px ; overflow:auto; width:100%; height:250px">
            			<?php $__currentLoopData = $ftr; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=> $log): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        					<li style="font-size:0.80rem">
        						<?php echo e($log->sale_no.' - '.$log->get_customer->cus_name); ?>

        					</li>	
            			<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            	    </div>
                </div>
            </div>
        </div>            
        </section-->      
      
        <div class="container-fluid" style="margin-left:-30px; margin-right:-10px;">
            <div class="card card-a">
                <div class="card-block">
                	<div style="padding:0px 1px 3px 3px ; overflow:auto; width:100%; height:250px">
                	    <table class="tabelftr table-bordered" id="tblftr" width="100%">
                	        <thead>
                	            <tr>
                	                <th style="display:none"></th>
                	            </tr>
                	        </thead>
                	        <tbody></tbody>
                	    </table>
                	</div>
                </div>
            </div>
        </div>
                	
      
      
    </div>
    
</div>

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

<?php $__env->startSection('script'); ?>
<script type="text/javascript">

//refresh setiap 3menit = 300000

$(document).ready(function() {
  setInterval(function() {
    cache_clear()
  }, 10000);
});

$(function(){
    table = $('#tblftr').DataTable({
        "processing" : true,
        "lengthMenu": [[100, 25, 50, -1], [8, 25, 50, "All"]],
        "order" : [0,'DESC'],
        "dom" : "bt",
        "ajax" : {
            "url" : "<?php echo e(DIR_APP); ?>sales/faktur",
            "type" : "GET"
        }
    }); 
});  

function cache_clear() {
   table.ajax.reload(); 
   //window.location.reload(true);
}

/*
$(document).ready(function() {
    //$('#infoftr').load().fadeIn("slow");
    }, 10000);
*/

function showNotif(){
   $.ajax({
     url : "message/warning",
     type : "GET",
     dataType : "JSON",
     success : function(data){    
	    swal(data.mess_title, data.mess_text ,"info");
        }
    });
}

</script>

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


<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/myprojeq/public_html/sriayu2/resources/views/home/admin.blade.php ENDPATH**/ ?>