@extends('header') @section('content')
@if (count($paidToDate)) @foreach ($paidToDate as $item) {{ Utils::formatMoney($item->value, $item->currency_id) }}
@endforeach @else {{ Utils::formatMoney(0) }} @endif
{{ trans('texts.in_total_revenue') }}
{{ trans('texts.average_invoice') }}
@if (count($averageInvoice)) @foreach ($averageInvoice as $item) {{ Utils::formatMoney($item->invoice_avg, $item->currency_id) }}
@endforeach @else {{ Utils::formatMoney(0) }} @endif
{{ $invoicesSent }}
{{ Utils::pluralize('invoice', $invoicesSent) }} {{ trans('texts.sent') }}

 

{{ trans('texts.notifications') }}

    @foreach ($activities as $activity)
  • {{ Utils::timestampToDateString(strtotime($activity->created_at)) }}: {!! Utils::decodeActivity($activity->message) !!}
  • @endforeach

{{ trans('texts.invoices_past_due') }}

@foreach ($pastDue as $invoice) @endforeach
{{ trans('texts.invoice_number_short') }} {{ trans('texts.client') }} {{ trans('texts.due_date') }} {{ trans('texts.balance_due') }}
{!! $invoice->getLink() !!} {{ $invoice->client->getDisplayName() }} {{ Utils::fromSqlDate($invoice->due_date) }} {{ Utils::formatMoney($invoice->balance, $invoice->client->getCurrencyId()) }}

{{ trans('texts.upcoming_invoices') }}

@foreach ($upcoming as $invoice) @endforeach
{{ trans('texts.invoice_number_short') }} {{ trans('texts.client') }} {{ trans('texts.due_date') }} {{ trans('texts.balance_due') }}
{!! $invoice->getLink() !!} {{ $invoice->client->getDisplayName() }} {{ Utils::fromSqlDate($invoice->due_date) }} {{ Utils::formatMoney($invoice->balance, $invoice->client->getCurrencyId()) }}
@stop