363 lines
13 KiB
PHP
Raw Normal View History

2021-06-25 08:45:00 +03:00
@stack('company_start')
@if (!$hideCompany)
2022-06-01 10:15:55 +03:00
<table class="border-bottom-1">
<tr>
@if (!$hideCompanyLogo)
<td style="width:20%; padding: 0 0 15px 0;" valign="top">
@stack('company_logo_start')
@if (!empty($transaction->contact->logo) && !empty($transaction->contact->logo->id))
<img src="{{ Storage::url($transaction->contact->logo->id) }}" height="70" width="70" alt="{{ $transaction->contact_name }}" />
@else
<img src="{{ $logo }}" height="70" width="70" alt="{{ setting('company.name') }}" />
2021-06-27 11:14:01 +03:00
@endif
2022-06-01 10:15:55 +03:00
@stack('company_logo_end')
</td>
@endif
2021-06-27 11:14:01 +03:00
2022-06-01 10:15:55 +03:00
@if (!$hideCompanyDetails)
<td class="text" style="width: 80%; padding: 0 0 15px 0;">
@stack('company_details_start')
@if (!$hideCompanyName)
<h2 class="text-semibold text">
{{ setting('company.name') }}
</h2>
@endif
2021-06-24 13:52:49 +03:00
2022-06-01 10:15:55 +03:00
@if (!$hideCompanyAddress)
<p>{!! (setting('company.address')) !!}</p>
@endif
2021-06-24 13:52:49 +03:00
2022-06-01 10:15:55 +03:00
@if (!$hideCompanyTaxNumber)
@if (setting('company.tax_number'))
<p>
{{ trans('general.tax_number') }}: {{ setting('company.tax_number') }}
</p>
@endif
@endif
2021-06-24 13:52:49 +03:00
2022-06-01 10:15:55 +03:00
@if (!$hideCompanyPhone)
@if (setting('company.phone'))
<p>
{{ setting('company.phone') }}
</p>
@endif
2021-06-27 11:14:01 +03:00
@endif
2022-06-01 10:15:55 +03:00
@if (!$hideCompanyEmail)
<p>{{ setting('company.email') }}</p>
@endif
@stack('company_details_end')
</td>
@endif
</tr>
</table>
2021-06-25 08:45:00 +03:00
@endif
@stack('company_end')
2021-06-24 13:52:49 +03:00
2021-06-25 18:10:58 +03:00
@if (!$hideContentTitle)
<table>
<tr>
2022-06-01 10:15:55 +03:00
<td style="width: 60%; padding: 15px 0 15px 0;">
<h2 style="font-size: 12px; font-weight:600;">
2021-06-27 11:14:01 +03:00
{{ trans($textContentTitle) }}
</h2>
2021-06-25 18:10:58 +03:00
</td>
</tr>
</table>
@endif
2021-06-24 13:52:49 +03:00
2021-06-25 18:10:58 +03:00
<table>
2022-06-01 10:15:55 +03:00
@stack('number_input_start')
@if (!$hideNumber)
<tr>
<td valign="top" style="width: 30%; margin: 0px; padding: 8px 4px 0 0; font-size: 12px; font-weight:600;">
{{ trans_choice($textNumber, 1) }}:
</td>
2021-06-27 11:14:01 +03:00
2022-06-01 10:15:55 +03:00
<td valign="top" class="border-bottom-dashed-black" style="width:70%; margin: 0px; padding: 8px 0 0 0; font-size: 12px;">
{{ $transaction->number }}
</td>
</tr>
@endif
@stack('number_input_end')
2021-06-24 13:52:49 +03:00
2022-06-01 10:15:55 +03:00
@stack('paid_at_input_start')
@if (!$hidePaidAt)
<tr>
<td valign="top" style="width: 30%; margin: 0px; padding: 8px 4px 0 0; font-size: 12px; font-weight:600;">
{{ trans($textPaidAt) }}:
</td>
2021-06-27 11:14:01 +03:00
2022-06-01 10:15:55 +03:00
<td valign="top" class="border-bottom-dashed-black" style="width:70%; margin: 0px; padding: 8px 0 0 0; font-size: 12px;">
@date($transaction->paid_at)
</td>
</tr>
@endif
@stack('paid_at_input_end')
2021-06-24 13:52:49 +03:00
2022-06-01 10:15:55 +03:00
@stack('account_id_input_start')
@if (!$hideAccount)
<tr>
<td valign="top" style="width: 30%; margin: 0px; padding: 8px 4px 0 0; font-size: 12px; font-weight:600;">
{{ trans_choice($textAccount, 1) }}:
</td>
2021-06-27 11:14:01 +03:00
2022-06-01 10:15:55 +03:00
<td valign="top" class="border-bottom-dashed-black" style="width:70%; margin: 0px; padding: 8px 0 0 0; font-size: 12px;">
{{ $transaction->account->name }}
</td>
</tr>
@endif
@stack('account_id_input_end')
2021-06-24 13:52:49 +03:00
2022-06-01 10:15:55 +03:00
@stack('category_id_input_start')
@if (!$hideCategory)
<tr>
<td valign="top" style="width: 30%; margin: 0px; padding: 8px 4px 0 0; font-size: 12px; font-weight:600;">
{{ trans_choice($textCategory, 1) }}:
</td>
2021-06-27 11:14:01 +03:00
2022-06-01 10:15:55 +03:00
<td valign="top" class="border-bottom-dashed-black" style="width:70%; margin: 0px; padding: 8px 0 0 0; font-size: 12px;">
{{ $transaction->category->name }}
</td>
</tr>
@endif
@stack('category_id_input_end')
2021-06-25 08:45:00 +03:00
2022-06-01 10:15:55 +03:00
@stack('payment_method_input_start')
@if (!$hidePaymentMethods)
<tr>
<td valign="top" style="width: 30%; margin: 0px; padding: 8px 4px 0 0; font-size: 12px; font-weight:600;">
{{ trans_choice($textPaymentMethods, 1) }}:
</td>
2021-06-27 11:14:01 +03:00
2022-06-01 10:15:55 +03:00
<td valign="top" class="border-bottom-dashed-black" style="width:70%; margin: 0px; padding: 8px 0 0 0; font-size: 12px;">
{{ !empty($payment_methods[$transaction->payment_method]) ? $payment_methods[$transaction->payment_method] : trans('general.na') }}
</td>
</tr>
@endif
@stack('payment_method_input_end')
2021-06-25 08:45:00 +03:00
2022-06-01 10:15:55 +03:00
@stack('reference_input_start')
@if (!$hideReference)
<tr>
<td valign="top" style="width: 30%; margin: 0px; padding: 8px 4px 0 0; font-size: 12px; font-weight:600;">
{{ trans($textReference) }}:
</td>
2021-06-27 11:14:01 +03:00
2022-06-01 10:15:55 +03:00
<td valign="top" class="border-bottom-dashed-black" style="width:70%; margin: 0px; padding: 8px 0 0 0; font-size: 12px;">
{{ $transaction->reference }}
</td>
</tr>
@endif
@stack('reference_input_end')
2021-06-27 11:14:01 +03:00
2022-06-01 10:15:55 +03:00
@stack('description_input_start')
@if (!$hideDescription)
<tr>
<td valign="top" style="width: 30%; margin: 0px; padding: 8px 4px 0 0; font-size: 12px; font-weight:600;">
{{ trans($textDescription) }}:
</td>
2021-06-25 08:45:00 +03:00
2022-06-01 10:15:55 +03:00
<td valign="top" class="border-bottom-dashed-black" style="width:70%; margin: 0px; padding: 8px 0 0 0; font-size: 12px;">
<p style="font-size:12px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin: 0;">
{!! nl2br($transaction->description) !!}
</p>
</td>
</tr>
@endif
@stack('description_input_end')
</table>
2021-06-25 18:10:58 +03:00
2022-06-01 10:15:55 +03:00
<table class="border-top-1" style="margin-top:15px;">
<tr>
<td style="width: 60%; padding: 15px 0 15px 0;">
<h2 style="font-size: 12px; font-weight:600;">
{{ trans($textPaidBy) }}
</h2>
2021-06-25 18:10:58 +03:00
</td>
2022-06-01 10:15:55 +03:00
</tr>
</table>
2021-06-27 11:14:01 +03:00
2022-06-01 10:15:55 +03:00
<table class="border-bottom-1" style="padding-bottom:15px;">
@if (!$hideContact)
@if (! $hideContactInfo)
<tr>
2022-06-06 10:33:03 +03:00
<td style="margin: 0px; padding: 0 0 8px 0; font-size: 12px;">
2022-06-01 10:15:55 +03:00
<strong>{{ trans($textContactInfo) }}</strong><br>
2021-06-25 18:10:58 +03:00
</td>
2022-06-01 10:15:55 +03:00
</tr>
@endif
@stack('name_input_start')
@if (!$hideContactName)
<tr>
<td valign="top" style="width: 30%; margin: 0px; padding: 8px 4px 0 0; font-size: 12px; font-weight:600;">
{{ trans('general.name') }}
</td>
<td class="border-bottom-dashed-black" style="width:70%; margin: 0px; padding: 8px 0 0 0; font-size: 12px;">
{{ $transaction->contact->name }}
</td>
</tr>
@endif
@stack('name_input_end')
@stack('address_input_start')
@if (!$hideContactAddress)
<tr>
<td valign="top" style="width: 30%; margin: 0px; padding: 8px 4px 0 0; font-size: 12px; font-weight:600;">
{{ trans('general.address') }}
</td>
<td class="border-bottom-dashed-black" style="width:70%; margin: 0px; padding: 8px 0 0 0; font-size: 12px;">
{!! nl2br($transaction->contact->address) !!}
</td>
</tr>
@endif
@stack('address_input_end')
@stack('tax_number_input_start')
@if (!$hideContactTaxNumber)
<tr>
<td valign="top" style="width: 30%; margin: 0px; padding: 8px 4px 0 0; font-size: 12px; font-weight:600;">
{{ trans('general.tax_number') }}
</td>
<td class="border-bottom-dashed-black" style="width:70%; margin: 0px; padding: 8px 0 0 0; font-size: 12px;">
@if ($transaction->contact->tax_number)
{{ trans('general.tax_number') }}: {{ $transaction->contact->tax_number }}
@endif
</td>
</tr>
@endif
@stack('tax_number_input_end')
@stack('phone_input_start')
@if (!$hideContactPhone)
<tr>
<td valign="top" style="width: 30%; margin: 0px; padding: 8px 4px 0 0; font-size: 12px; font-weight:600;">
{{ trans('general.phone') }}
</td>
<td class="border-bottom-dashed-black" style="width:70%; margin: 0px; padding: 8px 0 0 0; font-size: 12px;">
@if ($transaction->contact->phone)
{{ $transaction->contact->phone }}
@endif
</td>
</tr>
@endif
@stack('phone_input_end')
@stack('email_start')
@if (!$hideContactEmail)
<tr>
<td valign="top" style="width: 30%; margin: 0px; padding: 8px 4px 0 0; font-size: 12px; font-weight:600;">
{{ trans('general.email') }}
</td>
<td class="border-bottom-dashed-black" style="width:70%; margin: 0px; padding: 8px 0 0 0; font-size: 12px;">
{{ $transaction->contact->email }}
</td>
</tr>
@endif
@stack('email_input_end')
@endif
<tr>
<td></td>
2021-06-25 18:10:58 +03:00
</tr>
</table>
2021-11-22 23:09:01 +03:00
@if (!$hideRelated)
2021-06-25 08:45:00 +03:00
@if ($transaction->document)
2022-06-01 10:15:55 +03:00
<table>
<tr>
<td style="padding:15px 0 0 0;">
<h2 style="font-size: 12px; font-weight:600; margin-bottom: 15px;">{{ trans($textRelatedTransansaction) }}</h2>
</td>
</tr>
</table>
2021-06-27 11:14:01 +03:00
2022-06-01 10:15:55 +03:00
<table class="table" cellspacing="0" cellpadding="0" style="padding:15px 0 0 0;">
<thead style="color:#424242; font-size:12px;">
<tr class="border-bottom-1">
2022-06-06 10:33:03 +03:00
<th class="item text-alignment-left text-left" style="padding:5px 0;">
2021-11-22 23:09:01 +03:00
@if (!$hideRelatedDocumentNumber)
2022-06-01 10:15:55 +03:00
<span style="font-size: 13px;">{{ trans_choice($textRelatedDocumentNumber, 1) }}</span> <br />
2021-06-27 11:14:01 +03:00
@endif
2021-11-22 23:09:01 +03:00
@if (!$hideRelatedContact)
2022-06-01 10:15:55 +03:00
<span style="font-weight:500;"> {{ trans_choice($textRelatedContact, 1) }} </span>
2021-06-27 11:14:01 +03:00
@endif
2022-06-01 10:15:55 +03:00
</th>
2021-06-27 11:14:01 +03:00
2022-06-01 10:15:55 +03:00
@if (!$hideRelatedDocumentDate)
<th class="price" style=" padding:5px 0; text-align:center;">
{{ trans($textRelatedDocumentDate) }}
</th>
@endif
2022-06-06 10:33:03 +03:00
<th class="price text-alignment-right text-right" style="padding: 5px 0;">
2021-11-22 23:09:01 +03:00
@if (!$hideRelatedDocumentAmount)
2022-06-01 10:15:55 +03:00
<span style="font-size: 13px;">{{ trans($textRelatedDocumentAmount) }}</span><br />
2021-06-27 11:14:01 +03:00
@endif
2021-11-22 23:09:01 +03:00
@if (!$hideRelatedAmount)
2022-06-01 10:15:55 +03:00
<span style="font-weight:500;">{{ trans($textRelatedAmount) }}</span>
2021-06-27 11:14:01 +03:00
@endif
2022-06-01 10:15:55 +03:00
</th>
</tr>
</thead>
2021-06-25 18:10:58 +03:00
2022-06-01 10:15:55 +03:00
<tbody>
<tr>
2022-06-06 10:33:03 +03:00
<td class="item text-alignment-left text-left" style="color:#424242; font-size:12px; padding-left:0;">
2021-11-22 23:09:01 +03:00
@if (!$hideRelatedDocumentNumber)
2022-06-01 10:15:55 +03:00
<a class="text-medium" style="border-bottom:1px solid;" href="{{ route($routeDocumentShow, $transaction->document->id) }}">
{{ $transaction->document->document_number }}
</a> <br />
2021-06-27 11:14:01 +03:00
@endif
2021-11-22 23:09:01 +03:00
@if (!$hideRelatedContact)
2022-06-01 10:15:55 +03:00
<span style="color: #6E6E6E"> {{ $transaction->document->contact_name }} </span>
2021-06-27 11:14:01 +03:00
@endif
2022-06-01 10:15:55 +03:00
</td>
2021-06-27 11:14:01 +03:00
2022-06-01 10:15:55 +03:00
@if (!$hideRelatedDocumentDate)
<td class="price" style="color:#424242; font-size:12px; text-align:center;">
@date($transaction->document->due_at)
</td>
@endif
2021-06-27 11:14:01 +03:00
2022-06-06 10:33:03 +03:00
<td class="price text-alignment-right text-right" style="color:#424242; font-size:12px; padding-right:0;">
2021-11-22 23:09:01 +03:00
@if (!$hideRelatedDocumentAmount)
2022-06-01 10:15:55 +03:00
@money($transaction->document->amount, $transaction->document->currency_code, true) <br />
2021-06-27 11:14:01 +03:00
@endif
2021-11-22 23:09:01 +03:00
@if (!$hideRelatedAmount)
2022-06-01 10:15:55 +03:00
<span style="color: #6E6E6E"> @money($transaction->amount, $transaction->currency_code, true) </span>
2021-06-27 11:14:01 +03:00
@endif
2022-06-01 10:15:55 +03:00
</td>
</tr>
</tbody>
</table>
2021-06-25 08:45:00 +03:00
@endif
@endif
2022-06-01 10:15:55 +03:00
@if (!$hideAmount)
<table style="text-align: right; margin-top:55px;">
<tr>
<td valign="center" style="width:80%; display:block; float:right; background-color: #55588B; -webkit-print-color-adjust: exact; color:#ffffff; border-radius: 5px;">
<table>
<tr>
<td valign="center" style="width: 80%; padding:0; font-size: 14px; font-weight:600; color:#ffffff;">
{{ trans($textAmount) }}:
</td>
<td valign="center" style="width: 20%; padding:0; font-size: 14px; color:#ffffff;">
@money($transaction->amount, $transaction->currency_code, true)
</td>
</tr>
</table>
</td>
</tr>
</table>
@endif