diff --git a/resources/views/theme/backend/adminlte/a/cost/home.blade.php b/resources/views/theme/backend/adminlte/a/cost/home.blade.php
index a179f1e..970ebf9 100644
--- a/resources/views/theme/backend/adminlte/a/cost/home.blade.php
+++ b/resources/views/theme/backend/adminlte/a/cost/home.blade.php
@@ -46,11 +46,11 @@
{{ $o->broadbands->max('end_at')->format('Y-m-d') }} |
${{ number_format($a=$o->broadbands->sum('base'),2) }} |
${{ number_format($o->broadbands->sum('excess'),2) }} |
- ${{ number_format($o->broadbands->sum('cost'),2) }} |
+ ${{ number_format($x=$o->broadbands->sum('cost'),2) }} |
${{ number_format($b=$o->broadbands->sum('service.billing_monthly_price'),2) }} |
${{ number_format($b-$a,2) }} |
- @php($cost += $a)
+ @php($cost += $x)
@php($charge += $b)
@foreach ($o->broadbands->groupBy('service_broadband_id') as $oo)
@@ -77,11 +77,11 @@
{{ $o->phones->max('end_at')->format('Y-m-d') }} |
${{ number_format($a=$o->phones->sum('base'),2) }} |
${{ number_format($o->phones->sum('excess'),2) }} |
- ${{ number_format($o->phones->sum('cost'),2) }} |
+ ${{ number_format($x=$o->phones->sum('cost'),2) }} |
${{ number_format($b=$o->phones->sum('service.billing_monthly_price'),2) }} |
${{ number_format($b-$a,2) }} |
- @php($cost += $a)
+ @php($cost += $x)
@php($charge += $b)
@foreach ($o->phones->groupBy('service_phone_id') as $oo)
@@ -104,17 +104,16 @@
Generic |
|
|
- {{ $o->generics->min('start_at')->format('Y-m-d') }} |
- {{ $o->generics->max('end_at')->format('Y-m-d') }} |
+ {{ ($x=$o->generics)->count() ? $x->min('start_at')->format('Y-m-d') : '-' }} |
+ {{ $x->count() ? $x->max('end_at')->format('Y-m-d') : '-' }} |
${{ number_format($a=$o->generics->sum('base'),2) }} |
${{ number_format($o->generics->sum('excess'),2) }} |
- ${{ number_format($o->generics->sum('cost'),2) }} |
+ ${{ number_format($x=$o->generics->sum('cost'),2) }} |
$0.00 |
${{ number_format(0-$a,2) }} |
- @php($cost += $a)
- @php($charge += $b)
+ @php($cost += $x)
@foreach ($o->generics->groupBy('service_generic_id') as $oo)