<?php $__env->startSection('breadcrumb'); ?>
<?php $__env->startSection('breadcrumb'); ?>
<ul class="breadcrumb">
<li>
<span class="lnr lnr-home"></span> <?php echo e(trans('breadcrumb.dashboard')); ?>
</li>
</ul>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
<div class="col-sm-3">
<article class="statistic-box bg-primary">
<div>
<div class="number"><?php echo e($Settings->Currency->Symbol); ?> <?php echo e($MonthlyExpected); ?></div>
<div class="caption"><div><?php echo e(trans('stats.monthly_amount')); ?></div></div>
</div>
</article>
</div>
<div class="col-sm-3">
<article class="statistic-box bg-red">
<div>
<div class="number"><?php echo e($Settings->Currency->Symbol); ?> <?php echo e($MonthlyPaid); ?></div>
<div class="caption"><div><?php echo e(trans('stats.monthly_paids')); ?></div></div>
</div>
</article>
</div>
<div class="col-sm-3">
<article class="statistic-box bg-blue">
<div>
<div class="number"><?php echo e($DueAmount); ?></div>
<div class="caption"><div><?php echo e(trans('stats.due_amount')); ?></div></div>
</div>
</article>
</div>
<div class="col-sm-3">
<article class="statistic-box bg-green">
<div>
<div class="number"><?php echo e($TotalClient); ?></div>
<div class="caption"><div><?php echo e(trans('stats.total_client')); ?></div></div>
</div>
</article>
</div>
<div class="col-sm-8">
<div class="panel">
<div class="panel-heading">
<h5><?php echo e(trans('stats.last_year_paids')); ?></h5>
</div>
<div id="fake_users1"></div>
</div>
</div>
<div class="col-sm-4">
<div class="panel">
<div class="panel-body">
<table class="table">
<thead>
<tr>
<th><?php echo e(trans('invoices.label_billing_to')); ?></th>
<th><?php echo e(trans('invoices.label_total')); ?></th>
</tr>
</thead>
<tbody>
<?php if($Companies->count()==0): ?>
<tr>
<td colspan="5">There is no invoice that pending payment.</td>
</tr>
<?php endif; ?>
<?php foreach($Companies as $Company): ?>
<tr>
<td><a href="<?php echo e(route('invoices::view',$Company->CompanyID)); ?>" title="<?php echo e($Company->Title); ?>"><?php echo e($Company->Title); ?></a></td>
<td><?php echo e($Company->Invoices->sum("Total")); ?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="panel">
<div class="panel-body">
<table class="table">
<thead>
<tr>
<th><?php echo e(trans('invoices.label_billing_to')); ?></th>
<th><?php echo e(trans('invoices.label_total')); ?></th>
<th><?php echo e(trans('invoices.label_due_date')); ?></th>
</tr>
</thead>
<tbody>
<?php if($SoonInvoices->count()==0): ?>
<tr>
<td colspan="5">There is no invoice that pending payment.</td>
</tr>
<?php endif; ?>
<?php foreach($SoonInvoices as $Invoice): ?>
<tr>
<td><a href="<?php echo e(route('invoices::view',$Invoice->InvoiceID)); ?>" title="<?php echo e($Invoice->Company->Title); ?>"><?php echo e($Invoice->Company->Title); ?></a></td>
<td><?php echo e($Invoice->currency->Symbol); ?> <?php echo e(number_format($Invoice->Total,2)); ?></td>
<td><?php echo e($Invoice->DueDate->diffForHumans()); ?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<nav>
<?php echo e($SoonInvoices->render()); ?>
</nav>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="panel">
<div class="panel-body">
<table class="table">
<thead>
<tr>
<th><?php echo e(trans('invoices.label_billing_to')); ?></th>
<th><?php echo e(trans('invoices.label_total')); ?></th>
<th><?php echo e(trans('invoices.label_due_date')); ?></th>
</tr>
</thead>
<tbody>
<?php if($DelayedInvoices->count()==0): ?>
<tr>
<td colspan="5">There is no invoice that pending payment.</td>
</tr>
<?php endif; ?>
<?php foreach($DelayedInvoices as $Invoice): ?>
<tr>
<td><a href="<?php echo e(route('invoices::view',$Invoice->InvoiceID)); ?>" title="<?php echo e($Invoice->Company->Title); ?>"><?php echo e($Invoice->Company->Title); ?></a></td>
<td><?php echo e($Invoice->currency->Symbol); ?> <?php echo e(number_format($Invoice->Total,2)); ?></td>
<td><?php echo e($Invoice->DueDate->diffForHumans()); ?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<nav>
<?php echo e($DelayedInvoices->render()); ?>
</nav>
</div>
</div>
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>