Hide sections if there are no data
This commit is contained in:
parent
63a30a1e57
commit
47afdd2f19
|
@ -256,6 +256,7 @@
|
|||
</div>
|
||||
<div class="card-body py-1">
|
||||
<div class="row">
|
||||
@if($counters['payments']['lastMonth']->count())
|
||||
<div class="col-md-6" style="border-right:1px solid #6c757d">
|
||||
<span style="margin:auto; display:table; font-size: 18px; font-weight:700">{{__('Last month')}}:
|
||||
<i data-toggle="popover" data-trigger="hover" data-html="true"
|
||||
|
@ -281,7 +282,10 @@
|
|||
</tbody>
|
||||
</table>
|
||||
<hr style="width: 100%; height:1px; border-width:0; background-color:#6c757d; margin-top: -16px">
|
||||
</div><div class="col-md-6">
|
||||
</div>
|
||||
@endif
|
||||
@if($counters['payments']['lastMonth']->count()) <div class="col-md-6">
|
||||
@else <div class="col-md-12"> @endif
|
||||
<span style="margin:auto; display:table; font-size: 18px; font-weight:700">{{__('This month')}}:
|
||||
<i data-toggle="popover" data-trigger="hover" data-html="true"
|
||||
data-content="{{ __('Payments in this time window') }}:<br>{{$counters['payments']['thisMonth']->timeStart}} - {{$counters['payments']['thisMonth']->timeEnd}}"
|
||||
|
@ -320,6 +324,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="card-body py-1">
|
||||
@if($counters['taxPayments']['lastYear']->count())
|
||||
<span style="margin:auto; display:table; font-size: 18px; font-weight:700">{{__('Last year')}}:
|
||||
<i data-toggle="popover" data-trigger="hover" data-html="true"
|
||||
data-content="{{ __('Payments in this time window') }}:<br>{{$counters['taxPayments']['lastYear']->timeStart}} - {{$counters['taxPayments']['lastYear']->timeEnd}}"
|
||||
|
@ -348,6 +353,7 @@
|
|||
</tbody>
|
||||
</table>
|
||||
<hr style="width: 100%; height:2px; border-width:0; background-color:#6c757d; margin-top: 0px; margin-bottom: 8px">
|
||||
@endif
|
||||
<span style="margin:auto; display:table; font-size: 18px; font-weight:700">{{__('This year')}}:
|
||||
<i data-toggle="popover" data-trigger="hover" data-html="true"
|
||||
data-content="{{ __('Payments in this time window') }}:<br>{{$counters['taxPayments']['thisYear']->timeStart}} - {{$counters['taxPayments']['thisYear']->timeEnd}}"
|
||||
|
|
Loading…
Reference in a new issue