@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('view_all'))
@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
{{ trans('texts.total_revenue') }}
@if (count($paidToDate)) @foreach ($paidToDate as $item) @endforeach @else @endif
@if (count($expenses))
{{ 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
@if (Auth::user()->hasPermission('view_all'))

 

@endif

{{ trans('texts.activity') }} @if ($invoicesSent)
{{ trans_choice('texts.invoices_sent', $invoicesSent) }}
@endif

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

@if (count($expenses) && count($averageInvoice))
@foreach ($averageInvoice as $item) @endforeach
@endif {{ trans('texts.recent_payments') }}

@foreach ($payments as $payment) @can('viewByOwner', [ENTITY_CLIENT, $payment->client_user_id]) @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('viewByOwner', [ENTITY_CLIENT, $invoice->client_user_id]) @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('viewByOwner', [ENTITY_CLIENT, $invoice->client_user_id]) @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