@extends('layouts.admin') {{trans('home.home').' | '.trans('home.crm')}} @section('content')
@foreach($monthlyStatistics as $year => $months) @foreach($months as $month => $statistics) @endforeach @endforeach
تاريخ عدد المكالمات الشهرى عدد الاجتماعات الشهرى @lang('home.budget_monthly')
{{ \Carbon\Carbon::createFromFormat('m', $month)->format('m').'/'.$year }} {{ $statistics['total_calls'] }} {{ $statistics['total_meetings'] }} {{ number_format($statistics['total_invoice_value'], 2) }}
Total for {{ $year }} {{ collect($months)->sum('total_calls') }} {{ collect($months)->sum('total_meetings') }} {{ number_format(collect($months)->sum('total_invoice_value'), 2) }}
@endsection