@extends('public.header') @section('head') @parent @stop @section('content')
@if ($message = $client->customMessage(CUSTOM_MESSAGE_DASHBOARD)) @include('invited.custom_message', ['message' => $message]) @endif

{{$client->name}}

@if ($contact->first_name || $contact->last_name) {{ $contact->first_name.' '.$contact->last_name }}
@endif @if ($client->address1) {{ $client->address1 }}
@endif @if ($client->address2) {{ $client->address2 }}
@endif @if ($client->getCityState()) {{ $client->getCityState() }}
@endif @if ($client->country) {{ $client->country->getName() }}
@endif
@if ($contact->email) {!! HTML::mailto($contact->email, $contact->email) !!}
@endif @if ($client->website) {{ $client->present()->websiteLink }}
@endif @if ($contact->phone) {{ $contact->phone }}
@endif
{{ trans('texts.total_invoiced') }}
{{ Utils::formatMoney($client->paid_to_date + $client->balance, $client->currency_id ?: $account->currency_id) }}
{{ trans('texts.paid_to_date') }}
{{ Utils::formatMoney($client->paid_to_date, $client->currency_id ?: $account->currency_id) }}
{{ trans('texts.open_balance') }}
{{ Utils::formatMoney($client->balance, $client->currency_id ?: $account->currency_id) }}
@if (!empty($account->getTokenGatewayId()))
@include('payments.paymentmethods_list')
@endif
@if ($client->hasRecurringInvoices()) {!! Button::primary(strtoupper(trans("texts.recurring")))->asLinkTo(URL::to('/client/invoices/recurring')) !!} @endif {!! Button::success(strtoupper(trans("texts.edit_details")))->asLinkTo(URL::to('/client/details'))->withAttributes(['id' => 'editDetailsButton']) !!}

{{trans('texts.invoice_from')}}
@if ($account->address1) {{ $account->address1 }}
@endif @if ($account->address2) {{ $account->address2 }}
@endif @if ($account->getCityState()) {{ $account->getCityState() }}
@endif @if ($account->country) {{ $account->country->getName() }} @endif
@if ($account->work_phone) {{ $account->work_phone }}
@endif @if ($account->website) {{ $account->website }}
@endif @if ($account->work_email) {!! HTML::mailto($account->work_email, $account->work_email) !!}
@endif

 

@stop