@extends('header')
@section('head')
@parent
@include('money_script')
@stop
@section('content')
- {{ trans('texts.dashboard') }}
@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'))
@if (count($paidToDate))
@foreach ($paidToDate as $item)
{{ Utils::formatMoney($item->value, $item->currency_id) }}
@endforeach
@else
{{ Utils::formatMoney(0) }}
@endif
@if ($showExpenses)
@foreach ($expenses as $item)
{{ Utils::formatMoney($item->value, $item->currency_id) }}
@endforeach
@else
@if (count($averageInvoice))
@foreach ($averageInvoice as $item)
{{ Utils::formatMoney($item->invoice_avg, $item->currency_id) }}
@endforeach
@else
{{ Utils::formatMoney(0) }}
@endif
@endif
@if (count($balances))
@foreach ($balances as $item)
{{ Utils::formatMoney($item->value, $item->currency_id) }}
@endforeach
@else
{{ Utils::formatMoney(0) }}
@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)
{{ trans('texts.average_invoice') }}
{{ Utils::formatMoney($item->invoice_avg, $item->currency_id) }} |
@endforeach
@endif
@endif
{{ trans('texts.recent_payments') }}
{{ trans('texts.invoice_number_short') }} |
{{ trans('texts.client') }} |
{{ trans('texts.payment_date') }} |
{{ trans('texts.amount') }} |
@foreach ($payments as $payment)
{!! \App\Models\Invoice::calcLink($payment) !!} |
@can('view', [ENTITY_CLIENT, $payment])
{!! link_to('/clients/'.$payment->client_public_id, trim($payment->client_name) ?: (trim($payment->first_name . ' ' . $payment->last_name) ?: $payment->email)) !!} |
@else
{{ trim($payment->client_name) ?: (trim($payment->first_name . ' ' . $payment->last_name) ?: $payment->email) }} |
@endcan
{{ Utils::fromSqlDate($payment->payment_date) }} |
{{ Utils::formatMoney($payment->amount, $payment->currency_id ?: ($account->currency_id ?: DEFAULT_CURRENCY)) }} |
@endforeach
{{ trans('texts.upcoming_invoices') }}
{{ trans('texts.invoice_number_short') }} |
{{ trans('texts.client') }} |
{{ trans('texts.due_date') }} |
{{ trans('texts.balance_due') }} |
@foreach ($upcoming as $invoice)
@if ($invoice->invoice_type_id == INVOICE_TYPE_STANDARD)
{!! \App\Models\Invoice::calcLink($invoice) !!} |
@can('view', [ENTITY_CLIENT, $invoice])
{!! link_to('/clients/'.$invoice->client_public_id, trim($invoice->client_name) ?: (trim($invoice->first_name . ' ' . $invoice->last_name) ?: $invoice->email)) !!} |
@else
{{ trim($invoice->client_name) ?: (trim($invoice->first_name . ' ' . $invoice->last_name) ?: $invoice->email) }} |
@endcan
{{ Utils::fromSqlDate($invoice->due_date) }} |
{{ Utils::formatMoney($invoice->balance, $invoice->currency_id ?: ($account->currency_id ?: DEFAULT_CURRENCY)) }} |
@endif
@endforeach
{{ trans('texts.invoices_past_due') }}
{{ trans('texts.invoice_number_short') }} |
{{ trans('texts.client') }} |
{{ trans('texts.due_date') }} |
{{ trans('texts.balance_due') }} |
@foreach ($pastDue as $invoice)
@if ($invoice->invoice_type_id == INVOICE_TYPE_STANDARD)
{!! \App\Models\Invoice::calcLink($invoice) !!} |
@can('view', [ENTITY_CLIENT, $invoice])
{!! link_to('/clients/'.$invoice->client_public_id, trim($invoice->client_name) ?: (trim($invoice->first_name . ' ' . $invoice->last_name) ?: $invoice->email)) !!} |
@else
{{ trim($invoice->client_name) ?: (trim($invoice->first_name . ' ' . $invoice->last_name) ?: $invoice->email) }} |
@endcan
{{ Utils::fromSqlDate($invoice->due_date) }} |
{{ Utils::formatMoney($invoice->balance, $invoice->currency_id ?: ($account->currency_id ?: DEFAULT_CURRENCY)) }} |
@endif
@endforeach
@if ($hasQuotes)
{{ trans('texts.upcoming_quotes') }}
{{ trans('texts.quote_number_short') }} |
{{ trans('texts.client') }} |
{{ trans('texts.valid_until') }} |
{{ trans('texts.amount') }} |
@foreach ($upcoming as $invoice)
@if ($invoice->invoice_type_id == INVOICE_TYPE_QUOTE)
{!! \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
@endforeach
{{ trans('texts.expired_quotes') }}
{{ trans('texts.quote_number_short') }} |
{{ trans('texts.client') }} |
{{ trans('texts.valid_until') }} |
{{ trans('texts.amount') }} |
@foreach ($pastDue as $invoice)
@if ($invoice->invoice_type_id == INVOICE_TYPE_QUOTE)
{!! \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
@endforeach
@endif
@stop