<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!-->
<html lang="en">
    <!--<![endif]-->
    <!-- BEGIN HEAD -->
    <head>
		<!-- BEGIN GLOBAL MANDATORY STYLES -->
		<link href="http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700&subset=all" rel="stylesheet" type="text/css" />
		<link href="<?php echo e(asset('/assets/global/plugins/font-awesome/css/font-awesome.min.css')); ?>" rel="stylesheet" type="text/css" />
		<link href="<?php echo e(asset('/assets/global/plugins/simple-line-icons/simple-line-icons.min.css')); ?>" rel="stylesheet" type="text/css" />
		<link href="<?php echo e(asset('/assets/global/plugins/bootstrap/css/bootstrap.min.css')); ?>" rel="stylesheet" type="text/css" />
		<link href="<?php echo e(asset('/assets/global/plugins/uniform/css/uniform.default.css')); ?>"" rel="stylesheet" type="text/css" />
		<link href="<?php echo e(asset('/assets/global/plugins/bootstrap-switch/css/bootstrap-switch.min.css')); ?>" rel="stylesheet" type="text/css" />
		<link href="http://localhost:8000/assets/global/plugins/bootstrap-sweetalert/sweetalert.css" rel="stylesheet" type="text/css" />
		
		<!-- END GLOBAL MANDATORY STYLES -->
		<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />

		<!-- BEGIN THEME GLOBAL STYLES -->
		<link href="<?php echo e(asset('/assets/global/css/components.min.css')); ?>" rel="stylesheet" id="style_components" type="text/css" />
		<link href="<?php echo e(asset('/assets/global/css/plugins.min.css')); ?>" rel="stylesheet" type="text/css" />
		<!-- END THEME GLOBAL STYLES -->

		<!-- BEGIN PAGE LEVEL STYLES -->
		<link href="<?php echo e(asset('/assets/pages/css/profile.min.css')); ?>" rel="stylesheet" type="text/css" />
		<!-- END PAGE LEVEL STYLES -->

		<!-- BEGIN THEME LAYOUT STYLES -->
		<link href="<?php echo e(asset('/assets/layouts/layout3/css/layout.min.css')); ?>" rel="stylesheet" type="text/css" />
		<link href="<?php echo e(asset('/assets/layouts/layout3/css/themes/default.min.css')); ?>" rel="stylesheet" type="text/css" id="style_color" />
		<link href="<?php echo e(asset('/assets/layouts/layout3/css/custom.min.css')); ?>" rel="stylesheet" type="text/css" />
		
		<link rel="stylesheet" href="<?php echo e(asset('/assets/apps/css/global.css')); ?>">

		<script src="<?php echo e(asset('/assets/global/plugins/jquery.min.js')); ?>" type="text/javascript"></script>
		<script src="<?php echo e(asset('/assets/global/plugins/js.cookie.min.js')); ?>" type="text/javascript"></script>
	
	</head>
	<body class="page-container-bg-solid page-header-menu-fixed"> 
		<div class="page-container" id="myContainer">
            <!-- BEGIN CONTENT -->
            <div class="page-content-wrapper">
                <!-- BEGIN PAGE HEAD-->
                <div class="page-head">
					<div class="container-fluid">
						<br/>
						<div class="row">
							<div class="col-sm-12">
								<div class="portlet light">
									<div class="row">
										<div class="col-md-12">
											<span class="font-blue-madison title"><i class="fa fa-newspaper-o"></i> Vendas</span>
											<hr>
										</div>
									</div>
									<div class="portlet-body">
										<div class="portlet light ">
											<table class="table table-striped table-hover table-light" id="table">
			                                    <thead>
			                                        <tr class="uppercase bg-blue-madison">
			                                            <th class="col-md-1 font-white">Nro.</th>
			                                            <th class="col-md-1 font-white">Dt.Fatura</th>
			                                            <th class="col-md-1 font-white">Dt.Venc.</th>
			                                            <th class="col-md-1 font-white">Dt.Pag.</th>
			                                            <th class="col-md-1 font-white">Status</th>
			                                            <th class="col-md-1 font-white">Tipo</th>
			                                            <th class="col-md-1 font-white">Valor</th>
			                                        </tr>
			                                    </thead>
			                                    <tbody> 
			                                        <?php foreach($faturas as $fatura): ?>                      
			                                            <tr>
			                                                <td><?php echo e($fatura->ordered_id); ?></td>
			                                               	<td><?php echo e(dateToBR($fatura->data_faturamento)); ?></td>
			                                               	<td><?php echo e(dateToBR($fatura->data_vencimento)); ?></td>
			                                               	<td><?php echo e(dateToBR($fatura->data_pagamento)); ?></td>
			                                               	<td><?php echo e($fatura->status); ?></td>
			                                               	<td><?php echo e($fatura->tipo); ?></td>
			                                               	<td><?php echo e(financialPrice($fatura->valor)); ?></td>
			                                            </tr>
			                                        <?php endforeach; ?>                                    
			                                    </tbody>
			                                </table>                             
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>					
                </div>
                <!-- END PAGE HEAD-->
            </div>
            <!-- END CONTENT -->
    	</div>
	</body>
</html>