@extends('templates.reports') @section('content') @parent @include('global.status')

{{ $user->incomingEmails()->createdIn('year', $year)->count() }}
{{ $user->outgoingEmails()->createdIn('year', $year)->count() }}

{{ trans('dashboard.counter.emails') }}

{{ $user->policies()->createdIn('year', $year)->expiring('after', 30)->count() }}
{{ $user->policies()->createdIn('year', $year)->count() }}

{{ trans('dashboard.counter.expiring') }}

{{ $company->currency_symbol }}{{ $user->payments()->madeWithin('year', $year)->sum('amount') + 0 }}
{{ $company->currency_symbol }}{{ $user->policies()->createdIn('year', $year)->sum('premium') + 0 }}

{{ trans('dashboard.counter.paid') }}

{{ $company->currency_symbol }}{{ $user->policies()->createdIn('year', $year)->sum('premium') - $user->payments()->madeWithin('year', $year)->sum('amount') }}
{{ $company->currency_symbol }}{{ $user->payments()->madeWithin('year', $year)->sum('amount') + 0 }}

{{ trans('dashboard.counter.due') }}
{{--
{{ $user->incomingEmails->count() }}
{{ $user->outgoingEmails->count() }}
{{ trans('dashboard.counter.emails') }}
{{ $user->policies()->createdIn('year', $year)->expiring('after', 30)->count() }}
{{ $user->policies()->createdIn('year', $year)->count() }}
{{ trans('dashboard.counter.expiring') }}
{{ $company->currency_symbol }}{{ $user->payments()->madeWithin('year', $year)->sum('amount') + 0 }}
{{ $company->currency_symbol }}{{ $user->policies()->createdIn('year', $year)->sum('premium') + 0 }}
{{ trans('dashboard.counter.paid') }}
{{ $company->currency_symbol }}{{ $user->policies()->createdIn('year', $year)->sum('premium') - $user->payments()->madeWithin('year', $year)->sum('amount') + 0 }}
{{ $company->currency_symbol }}{{ $user->payments()->madeWithin('year', $year)->sum('amount') + 0 }}
{{ trans('dashboard.counter.due') }}
--}}

{{ trans('reports.graph.header.payments') }}

@endsection @section('extra_scripts') @endsection