@extends('header') @section('head') @parent @include('money_script') @stop @section('content')
@if (count($tasks))
@foreach ($tasks as $task) {!! Button::primary($task->present()->titledName)->small()->asLinkTo($task->present()->url) !!} @endforeach
@else
@endif @if (Auth::user()->hasPermission('admin'))
@if (count($currencies) > 1)
@foreach ($currencies as $key => $val) @endforeach
@endif
 
@endif
@if ($account->company->hasEarnedPromo()) @include('partials/discount_promo') @elseif ($showBlueVinePromo) @include('partials/bluevine_promo') @endif @if ($showWhiteLabelExpired) @include('partials/white_label_expired') @endif @if($account->account_email_settings->forward_url_for_v5)
Your account is currently forwarding all requests to v5, this installation is now disabled.
@endif @if (Auth::user()->hasPermission('admin'))
{{ trans('texts.total_revenue') }}
@if (count($paidToDate)) @foreach ($paidToDate as $item) @endforeach @else @endif
@if ($showExpenses)
{{ trans('texts.total_expenses') }}
@foreach ($expenses as $item) @endforeach
@else
{{ trans('texts.average_invoice') }}
@if (count($averageInvoice)) @foreach ($averageInvoice as $item) @endforeach @else @endif
@endif
{{ trans('texts.outstanding') }}
@if (count($balances)) @foreach ($balances as $item) @endforeach @else @endif

 

@endif

{{ trans('texts.activity') }} @if (Auth::user()->hasPermission('admin') && $invoicesSent)
@if ($invoicesSent == 1) {{ trans('texts.invoice_sent', ['count' => $invoicesSent]) }} @else {{ trans('texts.invoices_sent', ['count' => $invoicesSent]) }} @endif
@endif

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

@if (Auth::user()->hasPermission('admin')) @if ($showExpenses && count($averageInvoice))
@foreach ($averageInvoice as $item) @endforeach
@endif @endif {{ trans('texts.recent_payments') }}

@foreach ($payments as $payment) @can('view', [ENTITY_CLIENT, $payment]) @else @endcan @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)) !!}{{ 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.upcoming_invoices') }}

@foreach ($upcoming as $invoice) @if ($invoice->invoice_type_id == INVOICE_TYPE_STANDARD) @can('view', [ENTITY_CLIENT, $invoice]) @else @endcan @endif @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)) !!}{{ 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.invoices_past_due') }}

@foreach ($pastDue as $invoice) @if ($invoice->invoice_type_id == INVOICE_TYPE_STANDARD) @can('view', [ENTITY_CLIENT, $invoice]) @else @endcan @endif @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)) !!}{{ 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)) }}
@if ($hasQuotes)

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

@foreach ($upcoming as $invoice) @if ($invoice->invoice_type_id == INVOICE_TYPE_QUOTE) @endif @endforeach
{{ trans('texts.quote_number_short') }} {{ trans('texts.client') }} {{ trans('texts.valid_until') }} {{ trans('texts.amount') }}
{!! \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.expired_quotes') }}

@foreach ($pastDue as $invoice) @if ($invoice->invoice_type_id == INVOICE_TYPE_QUOTE) @endif @endforeach
{{ trans('texts.quote_number_short') }} {{ trans('texts.client') }} {{ trans('texts.valid_until') }} {{ trans('texts.amount') }}
{!! \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)) }}
@endif @stop