2015-12-02 14:26:06 +01:00
|
|
|
@extends('emails.master')
|
|
|
|
|
2015-12-17 19:03:32 +01:00
|
|
|
@section('markup')
|
2017-01-12 14:12:02 +01:00
|
|
|
@if ($account->emailMarkupEnabled())
|
2015-12-17 19:03:32 +01:00
|
|
|
@include('emails.partials.client_view_action')
|
|
|
|
@endif
|
|
|
|
@stop
|
|
|
|
|
2015-12-02 14:26:06 +01:00
|
|
|
@section('content')
|
|
|
|
<tr>
|
|
|
|
<td bgcolor="#F4F5F5" style="border-collapse: collapse;"> </td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td style="border-collapse: collapse;">
|
2016-08-17 12:17:24 +02:00
|
|
|
<table cellpadding="10" cellspacing="0" border="0" bgcolor="#F4F5F5" width="600" align="center"
|
2016-05-05 16:46:22 +02:00
|
|
|
class="header" style="border-top-width: 6px; border-top-color: {{ $account->primary_color ?: '#2E2B2B' }}; border-top-style: solid;">
|
2015-12-02 14:26:06 +01:00
|
|
|
<tr>
|
2016-05-05 16:46:22 +02:00
|
|
|
<td class="logo" width="208" style="border-collapse: collapse; vertical-align: middle;" valign="middle">
|
2015-12-02 14:26:06 +01:00
|
|
|
@include('emails.partials.account_logo')
|
|
|
|
</td>
|
2016-05-05 16:46:22 +02:00
|
|
|
<td width="183" style="border-collapse: collapse; vertical-align: middle;" valign="middle">
|
|
|
|
<p class="left" style="line-height: 22px; margin: 0; padding: 2px 0 0;">
|
2015-12-02 14:26:06 +01:00
|
|
|
@if ($invoice->due_date)
|
2015-12-29 18:49:40 +01:00
|
|
|
<span style="font-size: 11px; color: #8f8d8e;">
|
2016-08-17 12:17:24 +02:00
|
|
|
@if ($invoice->isQuote())
|
|
|
|
{{ strtoupper(trans('texts.valid_until')) }} {{ $account->formatDate($invoice->due_date) }}
|
|
|
|
@else
|
2017-05-09 08:42:33 +02:00
|
|
|
@if ($account->hasCustomLabel('due_date'))
|
2017-10-26 21:18:56 +02:00
|
|
|
{{ $account->getLabel('due_date') }} {{ $account->formatDate($invoice->partial_due_date ?: $invoice->due_date) }}
|
2017-05-09 08:42:33 +02:00
|
|
|
@else
|
2017-10-26 21:18:56 +02:00
|
|
|
{{ utrans('texts.due_by', ['date' => $account->formatDate($invoice->partial_due_date ?: $invoice->due_date)]) }}
|
2017-05-09 08:42:33 +02:00
|
|
|
@endif
|
2016-08-17 12:17:24 +02:00
|
|
|
@endif
|
2015-12-29 18:49:40 +01:00
|
|
|
</span><br />
|
2015-12-02 14:26:06 +01:00
|
|
|
@endif
|
2016-05-05 16:46:22 +02:00
|
|
|
<span style="font-size: 18px;">
|
2015-12-02 14:26:06 +01:00
|
|
|
{{ trans("texts.{$entityType}") }} {{ $invoice->invoice_number }}
|
|
|
|
</span>
|
|
|
|
</p>
|
|
|
|
</td>
|
2016-05-05 16:46:22 +02:00
|
|
|
<td style="border-collapse: collapse; vertical-align: middle;" valign="middle">
|
|
|
|
<p class="right" style="line-height: 14px; margin: 0; padding: 0;">
|
2017-07-23 22:35:21 +02:00
|
|
|
@if (! isset($isRefund) || ! $isRefund)
|
|
|
|
<span style="font-size: 15px; color: #231F20;">
|
|
|
|
{{ trans('texts.' . $invoice->present()->balanceDueLabel) }}:
|
|
|
|
</span><br />
|
|
|
|
<span class="total" style="font-size: 26px; display: block;margin-top: 5px;">
|
|
|
|
{{ $account->formatMoney($invoice->getRequestedAmount(), $client) }}
|
|
|
|
</span>
|
|
|
|
@endif
|
2015-12-02 14:26:06 +01:00
|
|
|
</p>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="content" style="border-collapse: collapse;">
|
2016-01-07 08:08:30 +01:00
|
|
|
<div style="font-size: 18px; margin: 42px 40px 42px; padding: 0; max-width: 520px;">{!! $body !!}</div>
|
2015-12-02 14:26:06 +01:00
|
|
|
</td>
|
|
|
|
</tr>
|
2015-12-17 19:03:32 +01:00
|
|
|
@stop
|
|
|
|
|
|
|
|
@section('footer')
|
|
|
|
<p style="color: #A7A6A6; font-size: 13px; line-height: 18px; margin: 0 0 7px; padding: 0;">
|
2017-10-22 11:37:24 +02:00
|
|
|
@if (! $account->isPaid())
|
|
|
|
{!! trans('texts.ninja_email_footer', ['site' => link_to(NINJA_WEB_URL . '?utm_source=email_footer', APP_NAME)]) !!}
|
|
|
|
@else
|
|
|
|
{{ $account->present()->address }}
|
|
|
|
<br />
|
|
|
|
@if ($account->website)
|
|
|
|
<strong><a href="{{ $account->present()->website }}" style="color: #A7A6A6; text-decoration: none; font-weight: bold; font-size: 10px;">{{ $account->website }}</a></strong>
|
|
|
|
@endif
|
2015-12-17 19:03:32 +01:00
|
|
|
@endif
|
|
|
|
</p>
|
2016-08-17 12:17:24 +02:00
|
|
|
@stop
|