osb/resources/views/theme/backend/adminlte/common/account/widget/summary.blade.php

46 lines
1.5 KiB
PHP
Raw Permalink Normal View History

2021-06-29 06:36:34 +00:00
@if ($o->accounts->count() > 1)
2019-06-02 05:35:48 +00:00
<div class="col-sm-2">
2018-08-11 05:09:41 +00:00
<div class="info-box">
2021-06-29 06:36:34 +00:00
<span class="info-box-icon bg-primary elevation-1"><i class="fas fa-user"></i></span>
2019-06-02 05:35:48 +00:00
2018-08-11 05:09:41 +00:00
<div class="info-box-content">
2019-06-02 05:35:48 +00:00
<span class="info-box-text">Linked Accounts</span>
<span class="info-box-number">{{ number_format($o->accounts->count()) }}</span>
2018-08-11 05:09:41 +00:00
</div>
</div>
</div>
@endif
2018-08-20 12:15:28 +00:00
2021-06-29 06:36:34 +00:00
<div class="col-sm-2">
2018-08-11 05:09:41 +00:00
<div class="info-box">
2021-06-29 06:36:34 +00:00
<span class="info-box-icon bg-info"><i class="fas fa-clone"></i></span>
2019-06-02 05:35:48 +00:00
2018-08-11 05:09:41 +00:00
<div class="info-box-content">
2019-06-02 05:35:48 +00:00
<span class="info-box-text">Active Services</span>
<!-- @todo This should count of inactive services too -->
2021-06-29 06:36:34 +00:00
<span class="info-box-number">{{ $o->services->count() }} <small>/{{ $o->services->count() }}</small></span>
2018-08-11 05:09:41 +00:00
</div>
</div>
</div>
2018-08-20 12:15:28 +00:00
2019-06-02 05:35:48 +00:00
<div class="col-sm-2">
2018-08-11 05:09:41 +00:00
<div class="info-box">
2021-06-29 06:36:34 +00:00
<span class="info-box-icon bg-danger"><i class="fas fa-dollar-sign"></i></span>
2019-06-02 05:35:48 +00:00
2018-08-11 05:09:41 +00:00
<div class="info-box-content">
2019-06-02 05:35:48 +00:00
<span class="info-box-text">Account Balance</span>
<span class="info-box-number"><small>$</small> {{ number_format(($x=$o->invoices()->with(['items.taxes','paymentitems.payment','account'])->get()->where('due','>',0))->sum('due'),2) }}</span>
2018-08-11 05:09:41 +00:00
</div>
</div>
</div>
2018-08-20 12:15:28 +00:00
2019-06-02 05:35:48 +00:00
<div class="col-sm-2">
2018-08-11 05:09:41 +00:00
<div class="info-box">
2021-06-29 06:36:34 +00:00
<span class="info-box-icon bg-dark"><i class="fas fa-hashtag"></i></span>
2019-06-02 05:35:48 +00:00
2018-08-11 05:09:41 +00:00
<div class="info-box-content">
<span class="info-box-text">Invoices Due</span>
<span class="info-box-number">{{ $x->count() }}</span>
2018-08-11 05:09:41 +00:00
</div>
</div>
</div>