diff --git a/resources/views/theme/backend/adminlte/service/widget/billinghistory.blade.php b/resources/views/theme/backend/adminlte/service/widget/billinghistory.blade.php index 6bb7dcb..431d8a5 100644 --- a/resources/views/theme/backend/adminlte/service/widget/billinghistory.blade.php +++ b/resources/views/theme/backend/adminlte/service/widget/billinghistory.blade.php @@ -15,8 +15,8 @@ @foreach($o->invoiced_items_active->groupBy('invoice_id') as $oo) {{ $x->invoice_id }} - {{ ($y=$oo->where('item_type',0))->min('start_at')->format('Y-m-d') }} - {{ $y->max('stop_at')->format('Y-m-d') }} + {{ ($y=$oo->where('item_type',0))->min('start_at')?->format('Y-m-d') }} + {{ $y->max('stop_at')?->format('Y-m-d') }} {{ number_format($y->sum('total'),2) }} {{ number_format($oo->where('item_type','<>',0)->sum('total'),2) }} {{ number_format($oo->sum('total'),2) }}