akaunting/resources/views/widgets/total_profit.blade.php
2020-02-09 15:23:11 +03:00

32 lines
1.4 KiB
PHP

<div id="widget-{{ $class->model->id }}" class="{{ $class->model->settings->width }}">
<div class="card bg-gradient-success card-stats">
@include($class->views['header'], ['header_class' => 'border-bottom-0'])
<div class="card-body">
<div class="row">
<div class="col">
<h5 class="text-uppercase text-white mb-0">{{ $class->model->name }}</h5>
<span class="font-weight-bold text-white mb-0">{{ $totals['grand'] }}</span>
</div>
<div class="col-auto">
<div class="icon icon-shape bg-white text-success rounded-circle shadow">
<i class="fa fa-heart"></i>
</div>
</div>
</div>
<p class="mt-3 mb-0 text-sm cursor-default">
<span class="text-white">{{ trans('general.upcoming') }}</span>
<el-tooltip
content="{{ trans('widgets.open_profit') }}: {{ $totals['open'] }} / {{ trans('widgets.overdue_profit') }}: {{ $totals['overdue'] }}"
effect="dark"
:open-delay="100"
placement="top">
<span class="text-white font-weight-bold float-right">{{ $totals['open'] }} / {{ $totals['overdue'] }}</span>
</el-tooltip>
</p>
</div>
</div>
</div>