@extends('header') @section('content')
{{ trans('texts.total_revenue') }}
@if (count($paidToDate)) @foreach ($paidToDate as $item) {{ Utils::formatMoney($item->value, $item->currency_id) }}
@endforeach @else {{ Utils::formatMoney(0) }} @endif
{{ 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
{{ trans('texts.outstanding') }}
@if (count($balances)) @foreach ($balances as $item) {{ Utils::formatMoney($item->value, $item->currency_id) }}
@endforeach @else {{ Utils::formatMoney(0) }} @endif

 

{{ trans('texts.notifications') }}
{{ $invoicesSent }} {{ Utils::pluralize('invoice', $invoicesSent) }} {{ trans('texts.sent') }}

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

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

@foreach ($payments as $payment) @endforeach
{{ trans('texts.invoice_number_short') }} {{ trans('texts.client') }} {{ trans('texts.payment_date') }} {{ trans('texts.amount') }}
{!! \App\Models\Invoice::calcLink($payment) !!} {!! link_to('/clients/'.$payment->client_public_id, trim($payment->client_name) ?: (trim($payment->first_name . ' ' . $payment->last_name) ?: $payment->email)) !!} {{ Utils::fromSqlDate($payment->payment_date) }} {{ Utils::formatMoney($payment->amount, $payment->currency_id ?: ($account->currency_id ?: DEFAULT_CURRENCY)) }}

{{ 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') }}
{!! \App\Models\Invoice::calcLink($invoice) !!} {!! link_to('/clients/'.$invoice->client_public_id, trim($invoice->client_name) ?: (trim($invoice->first_name . ' ' . $invoice->last_name) ?: $invoice->email)) !!} {{ Utils::fromSqlDate($invoice->due_date) }} {{ Utils::formatMoney($invoice->balance, $invoice->currency_id ?: ($account->currency_id ?: DEFAULT_CURRENCY)) }}

{{ 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') }}
{!! \App\Models\Invoice::calcLink($invoice) !!} {!! link_to('/clients/'.$invoice->client_public_id, trim($invoice->client_name) ?: (trim($invoice->first_name . ' ' . $invoice->last_name) ?: $invoice->email)) !!} {{ Utils::fromSqlDate($invoice->due_date) }} {{ Utils::formatMoney($invoice->balance, $invoice->currency_id ?: ($account->currency_id ?: DEFAULT_CURRENCY)) }}
@stop