2021-06-25 08:45:00 +03:00
|
|
|
@stack('company_start')
|
|
|
|
@if (!$hideCompany)
|
2021-06-25 18:10:58 +03:00
|
|
|
<table class="border-bottom-1">
|
|
|
|
<tr>
|
2021-06-27 11:14:01 +03:00
|
|
|
@if (!$hideCompanyLogo)
|
|
|
|
<td style="width:5%;" valign="top">
|
|
|
|
@stack('company_logo_start')
|
2021-06-28 18:38:56 +03:00
|
|
|
@if (!empty($transaction->contact->logo) && !empty($transaction->contact->logo->id))
|
|
|
|
<img src="{{ Storage::url($transaction->contact->logo->id) }}" height="128" width="128" alt="{{ $transaction->contact_name }}" />
|
2021-06-25 08:45:00 +03:00
|
|
|
@else
|
2021-06-25 18:10:58 +03:00
|
|
|
<img src="{{ $logo }}" alt="{{ setting('company.name') }}" />
|
2021-06-25 08:45:00 +03:00
|
|
|
@endif
|
2021-06-27 11:14:01 +03:00
|
|
|
@stack('company_logo_end')
|
|
|
|
</td>
|
|
|
|
@endif
|
|
|
|
|
|
|
|
@if (!$hideCompanyDetails)
|
|
|
|
<td style="width: 60%;">
|
|
|
|
@stack('company_details_start')
|
2021-06-25 08:45:00 +03:00
|
|
|
@if (!$hideCompanyName)
|
2021-06-25 18:10:58 +03:00
|
|
|
<h2 class="mb-1" style="font-size: 16px;">
|
2021-06-25 08:45:00 +03:00
|
|
|
{{ setting('company.name') }}
|
|
|
|
</h2>
|
|
|
|
@endif
|
2021-06-24 13:52:49 +03:00
|
|
|
|
2021-06-27 11:14:01 +03:00
|
|
|
@if (!$hideCompanyAddress)
|
|
|
|
<p style="margin:0; padding:0; font-size:14px;">{!! nl2br(setting('company.address')) !!}</p>
|
|
|
|
@endif
|
2021-06-24 13:52:49 +03:00
|
|
|
|
2021-06-27 11:14:01 +03:00
|
|
|
@if (!$hideCompanyTaxNumber)
|
|
|
|
<p style="margin:0; padding:0; font-size:14px;">
|
|
|
|
@if (setting('company.tax_number'))
|
|
|
|
{{ trans('general.tax_number') }}: {{ setting('company.tax_number') }}
|
|
|
|
@endif
|
|
|
|
</p>
|
|
|
|
@endif
|
2021-06-24 13:52:49 +03:00
|
|
|
|
2021-06-27 11:14:01 +03:00
|
|
|
@if (!$hideCompanyPhone)
|
|
|
|
<p style="margin:0; padding:0; font-size:14px;">
|
|
|
|
@if (setting('company.phone'))
|
|
|
|
{{ setting('company.phone') }}
|
|
|
|
@endif
|
|
|
|
</p>
|
|
|
|
@endif
|
2021-06-24 13:52:49 +03:00
|
|
|
|
2021-06-27 11:14:01 +03:00
|
|
|
@if (!$hideCompanyEmail)
|
|
|
|
<p style="margin:0; padding:0; font-size:14px;">{{ setting('company.email') }}</p>
|
|
|
|
@endif
|
|
|
|
@stack('company_details_end')
|
|
|
|
</td>
|
|
|
|
@endif
|
2021-06-25 18:10:58 +03:00
|
|
|
</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>
|
|
|
|
<td style="padding-bottom: 0; padding-top: 32px;">
|
2021-06-27 11:14:01 +03:00
|
|
|
<h2 class="text-center text-uppercase" style="font-size: 16px;">
|
|
|
|
{{ 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>
|
|
|
|
<tr>
|
|
|
|
<td style="width: 70%; padding-top:0; padding-bottom:0;">
|
|
|
|
<table>
|
2021-06-28 22:10:55 +03:00
|
|
|
@stack('paid_at_input_start')
|
2021-06-25 18:10:58 +03:00
|
|
|
@if (!$hidePaidAt)
|
|
|
|
<tr>
|
2021-06-27 11:14:01 +03:00
|
|
|
<td style="width: 20%; padding-bottom:3px; font-size:14px; font-weight: bold;">
|
|
|
|
{{ trans($textPaidAt) }}:
|
|
|
|
</td>
|
|
|
|
|
|
|
|
<td class="border-bottom-1" style="width:80%; padding-bottom:3px; font-size:14px;">
|
|
|
|
@date($transaction->paid_at)
|
|
|
|
</td>
|
2021-06-25 18:10:58 +03:00
|
|
|
</tr>
|
|
|
|
@endif
|
2021-06-28 22:10:55 +03:00
|
|
|
@stack('paid_at_input_end')
|
2021-06-24 13:52:49 +03:00
|
|
|
|
2021-06-28 22:10:55 +03:00
|
|
|
@stack('account_id_input_start')
|
2021-06-25 18:10:58 +03:00
|
|
|
@if (!$hideAccount)
|
|
|
|
<tr>
|
2021-06-27 11:14:01 +03:00
|
|
|
<td style="width: 20%; padding-bottom:3px; font-size:14px; font-weight: bold;">
|
|
|
|
{{ trans_choice($textAccount, 1) }}:
|
|
|
|
</td>
|
|
|
|
|
|
|
|
<td class="border-bottom-1" style="width:80%; padding-bottom:3px; font-size:14px;">
|
|
|
|
{{ $transaction->account->name }}
|
|
|
|
</td>
|
2021-06-25 18:10:58 +03:00
|
|
|
</tr>
|
|
|
|
@endif
|
2021-06-28 22:10:55 +03:00
|
|
|
@stack('account_id_input_end')
|
2021-06-24 13:52:49 +03:00
|
|
|
|
2021-06-28 22:10:55 +03:00
|
|
|
@stack('category_id_input_start')
|
2021-06-25 18:10:58 +03:00
|
|
|
@if (!$hideCategory)
|
|
|
|
<tr>
|
2021-06-27 11:14:01 +03:00
|
|
|
<td style="width: 20%; padding-bottom:3px; font-size:14px; font-weight: bold;">
|
|
|
|
{{ trans_choice($textCategory, 1) }}:
|
|
|
|
</td>
|
|
|
|
|
|
|
|
<td class="border-bottom-1" style="width:80%; padding-bottom:3px; font-size:14px;">
|
|
|
|
{{ $transaction->category->name }}
|
|
|
|
</td>
|
2021-06-25 18:10:58 +03:00
|
|
|
</tr>
|
|
|
|
@endif
|
2021-06-28 22:10:55 +03:00
|
|
|
@stack('category_id_input_end')
|
2021-06-24 13:52:49 +03:00
|
|
|
|
2021-06-28 22:10:55 +03:00
|
|
|
@stack('payment_method_input_start')
|
2021-06-25 18:10:58 +03:00
|
|
|
@if (!$hidePaymentMethods)
|
|
|
|
<tr>
|
2021-06-27 11:14:01 +03:00
|
|
|
<td style="width: 20%; padding-bottom:3px; font-size:14px; font-weight: bold;">
|
|
|
|
{{ trans_choice($textPaymentMethods, 1) }}:
|
|
|
|
</td>
|
|
|
|
|
|
|
|
<td class="border-bottom-1" style="width:80%; padding-bottom:3px; font-size:14px;">
|
2021-07-07 11:15:01 +03:00
|
|
|
{{ !empty($payment_methods[$transaction->payment_method]) ? $payment_methods[$transaction->payment_method] : trans('general.na') }}
|
2021-06-27 11:14:01 +03:00
|
|
|
</td>
|
2021-06-25 18:10:58 +03:00
|
|
|
</tr>
|
|
|
|
@endif
|
2021-06-28 22:10:55 +03:00
|
|
|
@stack('payment_method_input_end')
|
2021-06-25 08:45:00 +03:00
|
|
|
|
2021-06-28 22:10:55 +03:00
|
|
|
@stack('reference_input_start')
|
2021-06-25 18:10:58 +03:00
|
|
|
@if (!$hideReference)
|
|
|
|
<tr>
|
2021-06-27 11:14:01 +03:00
|
|
|
<td style="width: 20%; padding-bottom:3px; font-size:14px; font-weight: bold;">
|
|
|
|
{{ trans($textReference) }}:
|
|
|
|
</td>
|
|
|
|
|
|
|
|
<td class="border-bottom-1" style="width:80%; padding-bottom:3px; font-size:14px;">
|
|
|
|
{{ $transaction->reference }}
|
|
|
|
</td>
|
2021-06-25 18:10:58 +03:00
|
|
|
</tr>
|
|
|
|
@endif
|
2021-06-28 22:10:55 +03:00
|
|
|
@stack('reference_input_end')
|
2021-06-25 08:45:00 +03:00
|
|
|
|
2021-06-28 22:10:55 +03:00
|
|
|
@stack('description_input_start')
|
2021-06-25 18:10:58 +03:00
|
|
|
@if (!$hideDescription)
|
|
|
|
<tr>
|
2021-06-27 11:14:01 +03:00
|
|
|
<td style="width: 20%; padding-bottom:3px; font-size:14px; font-weight: bold;">
|
|
|
|
{{ trans($textDescription) }}:
|
|
|
|
</td>
|
|
|
|
|
2021-06-25 18:10:58 +03:00
|
|
|
<td style="width:80%; padding-bottom:3px; font-size:14px;">
|
2021-06-27 11:14:01 +03:00
|
|
|
<p style="font-size:14px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin: 0;">
|
|
|
|
{!! nl2br($transaction->description) !!}
|
|
|
|
</p>
|
2021-06-25 18:10:58 +03:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
@endif
|
2021-06-28 22:10:55 +03:00
|
|
|
@stack('description_input_end')
|
2021-06-27 11:14:01 +03:00
|
|
|
|
2021-06-25 18:10:58 +03:00
|
|
|
@if (!$hideContact)
|
|
|
|
<tr>
|
|
|
|
<td style="padding-top:45px; padding-bottom:0;">
|
2021-06-27 11:14:01 +03:00
|
|
|
<h2 style="font-size: 16px;">
|
2021-06-28 12:32:15 +03:00
|
|
|
{{ trans($textPaidBy) }}
|
2021-06-27 11:14:01 +03:00
|
|
|
</h2>
|
2021-06-25 18:10:58 +03:00
|
|
|
</td>
|
|
|
|
</tr>
|
2021-06-25 08:45:00 +03:00
|
|
|
|
2021-06-27 11:14:01 +03:00
|
|
|
@if ($hideContactInfo)
|
|
|
|
<tr>
|
|
|
|
<td style="padding-bottom:5px; padding-top:0; font-size:14px;">
|
|
|
|
<strong>{{ trans($textContactInfo) }}</strong><br>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
@endif
|
2021-06-25 18:10:58 +03:00
|
|
|
|
2021-06-27 11:14:01 +03:00
|
|
|
@stack('name_input_start')
|
|
|
|
@if (!$hideContactName)
|
|
|
|
<tr>
|
|
|
|
<td style="padding-bottom:5px; padding-top:0; font-size:14px;">
|
|
|
|
<strong>{{ $transaction->contact->name }}</strong><br>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
@endif
|
|
|
|
@stack('name_input_end')
|
2021-06-25 18:10:58 +03:00
|
|
|
|
2021-06-27 11:14:01 +03:00
|
|
|
@stack('address_input_start')
|
|
|
|
@if (!$hideContactAddress)
|
|
|
|
<tr>
|
|
|
|
<td style="padding-bottom:5px; padding-top:0; font-size:14px;">
|
|
|
|
<p style="margin:0; padding:0; font-size:14px;">
|
|
|
|
{!! nl2br($transaction->contact->address) !!}
|
|
|
|
</p>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
@endif
|
|
|
|
@stack('address_input_end')
|
2021-06-25 18:10:58 +03:00
|
|
|
|
2021-06-27 11:14:01 +03:00
|
|
|
@stack('tax_number_input_start')
|
|
|
|
@if (!$hideContactTaxNumber)
|
|
|
|
<tr>
|
|
|
|
<td style="padding-bottom:5px; padding-top:0; font-size:14px;">
|
|
|
|
<p style="margin:0; padding:0; font-size:14px;">
|
|
|
|
@if ($transaction->contact->tax_number)
|
|
|
|
{{ trans('general.tax_number') }}: {{ $transaction->contact->tax_number }}
|
|
|
|
@endif
|
|
|
|
</p>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
@endif
|
|
|
|
@stack('tax_number_input_end')
|
2021-06-25 18:10:58 +03:00
|
|
|
|
2021-06-27 11:14:01 +03:00
|
|
|
@stack('phone_input_start')
|
|
|
|
@if (!$hideContactPhone)
|
|
|
|
<tr>
|
|
|
|
<td style="padding-bottom:0; padding-top:0; font-size:14px;">
|
|
|
|
<p style="margin:0; padding:0; font-size:14px;">
|
|
|
|
@if ($transaction->contact->phone)
|
|
|
|
{{ $transaction->contact->phone }}
|
|
|
|
@endif
|
|
|
|
</p>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
@endif
|
|
|
|
@stack('phone_input_end')
|
|
|
|
|
|
|
|
@stack('email_start')
|
|
|
|
@if (!$hideContactEmail)
|
|
|
|
<tr>
|
|
|
|
<td style="padding-bottom:0; padding-top:0; font-size:14px;">
|
|
|
|
<p style="margin:0; padding:0; font-size:14px;">
|
|
|
|
{{ $transaction->contact->email }}
|
|
|
|
</p>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
@endif
|
|
|
|
@stack('email_input_end')
|
2021-06-25 18:10:58 +03:00
|
|
|
@endif
|
|
|
|
</table>
|
|
|
|
</td>
|
2021-06-27 11:14:01 +03:00
|
|
|
|
2021-06-25 08:45:00 +03:00
|
|
|
@if (!$hideAmount)
|
2021-06-25 18:10:58 +03:00
|
|
|
<td style="width:30%; padding-top:32px; padding-left: 25px;" valign="top">
|
|
|
|
<table>
|
|
|
|
<tr>
|
2021-07-02 19:56:44 +03:00
|
|
|
<td style="background-color: #6da252; -webkit-print-color-adjust: exact; font-weight:bold !important; display:block;">
|
2021-06-27 11:14:01 +03:00
|
|
|
<h5 class="text-muted mb-0 text-white" style="font-size: 20px; color:#ffffff; text-align:center; margin-top: 16px;">
|
|
|
|
{{ trans($textAmount) }}
|
|
|
|
</h5>
|
|
|
|
|
2021-07-02 19:56:44 +03:00
|
|
|
<p class="font-weight-bold mb-0 text-white" style="font-size: 26px; color:#ffffff; text-align:center;">
|
2021-06-25 18:10:58 +03:00
|
|
|
@money($transaction->amount, $transaction->currency_code, true)
|
|
|
|
</p>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</td>
|
2021-06-25 08:45:00 +03:00
|
|
|
@endif
|
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)
|
2021-06-27 11:14:01 +03:00
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<td class="border-bottom-1" style="padding-bottom: 0; padding-top:16px;"></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
|
2021-06-25 18:10:58 +03:00
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<td style="padding-bottom: 0; padding-top:36px;">
|
2021-11-22 23:09:01 +03:00
|
|
|
<h2 style="font-size: 16px;">{{ trans($textRelatedTransansaction) }}</h2>
|
2021-06-25 18:10:58 +03:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2021-06-27 11:14:01 +03:00
|
|
|
|
2021-06-25 18:10:58 +03:00
|
|
|
<table class="table table-flush table-hover" cellspacing="0" cellpadding="0" style="margin-bottom: 36px;">
|
|
|
|
<thead style="background-color: #f6f9fc; -webkit-print-color-adjust: exact; font-family: Arial, sans-serif; color:#8898aa; font-size:11px;">
|
2021-06-27 11:14:01 +03:00
|
|
|
<tr class="border-bottom-1">
|
2021-11-22 23:09:01 +03:00
|
|
|
@if (!$hideRelatedDocumentNumber)
|
2021-06-27 11:14:01 +03:00
|
|
|
<th class="item text-left" style="text-align: left; text-transform: uppercase; font-family: Arial, sans-serif;">
|
2021-11-22 23:09:01 +03:00
|
|
|
<span>{{ trans_choice($textRelatedDocumentNumber, 1) }}</span>
|
2021-06-27 11:14:01 +03:00
|
|
|
</th>
|
|
|
|
@endif
|
|
|
|
|
2021-11-22 23:09:01 +03:00
|
|
|
@if (!$hideRelatedContact)
|
2021-06-27 11:14:01 +03:00
|
|
|
<th class="quantity" style="text-align: left; text-transform: uppercase; font-family: Arial, sans-serif;">
|
2021-11-22 23:09:01 +03:00
|
|
|
{{ trans_choice($textRelatedContact, 1) }}
|
2021-06-27 11:14:01 +03:00
|
|
|
</th>
|
|
|
|
@endif
|
|
|
|
|
2021-11-22 23:09:01 +03:00
|
|
|
@if (!$hideRelatedDocumentDate)
|
2021-06-27 11:14:01 +03:00
|
|
|
<th class="price" style="text-align: left; text-transform: uppercase; font-family: Arial, sans-serif;">
|
2021-11-22 23:09:01 +03:00
|
|
|
{{ trans($textRelatedDocumentDate) }}
|
2021-06-27 11:14:01 +03:00
|
|
|
</th>
|
|
|
|
@endif
|
|
|
|
|
2021-11-22 23:09:01 +03:00
|
|
|
@if (!$hideRelatedDocumentAmount)
|
2021-06-27 11:14:01 +03:00
|
|
|
<th class="price" style="text-align: left; text-transform: uppercase; font-family: Arial, sans-serif;">
|
2021-11-22 23:09:01 +03:00
|
|
|
{{ trans($textRelatedDocumentAmount) }}
|
2021-06-27 11:14:01 +03:00
|
|
|
</th>
|
|
|
|
@endif
|
|
|
|
|
2021-11-22 23:09:01 +03:00
|
|
|
@if (!$hideRelatedAmount)
|
2021-06-27 11:14:01 +03:00
|
|
|
<th class="total" style="text-align: left; text-transform: uppercase; font-family: Arial, sans-serif;">
|
2021-11-22 23:09:01 +03:00
|
|
|
{{ trans($textRelatedAmount) }}
|
2021-06-27 11:14:01 +03:00
|
|
|
</th>
|
|
|
|
@endif
|
2021-06-25 18:10:58 +03:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
2021-11-22 23:09:01 +03:00
|
|
|
@if (!$hideRelatedDocumentNumber)
|
2021-06-27 11:14:01 +03:00
|
|
|
<td class="item" style="color:#525f7f; font-size:13px;">
|
|
|
|
<a style="color:#6da252 !important;" href="{{ route($routeDocumentShow, $transaction->document->id) }}">
|
|
|
|
{{ $transaction->document->document_number }}
|
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
@endif
|
|
|
|
|
2021-11-22 23:09:01 +03:00
|
|
|
@if (!$hideRelatedContact)
|
2021-06-27 11:14:01 +03:00
|
|
|
<td class="quantity" style="color:#525f7f; font-size:13px;">
|
|
|
|
{{ $transaction->document->contact_name }}
|
|
|
|
</td>
|
|
|
|
@endif
|
|
|
|
|
2021-11-22 23:09:01 +03:00
|
|
|
@if (!$hideRelatedDocumentDate)
|
2021-06-27 11:14:01 +03:00
|
|
|
<td class="price" style="color:#525f7f; font-size:13px;">
|
|
|
|
@date($transaction->document->due_at)
|
|
|
|
</td>
|
|
|
|
@endif
|
|
|
|
|
2021-11-22 23:09:01 +03:00
|
|
|
@if (!$hideRelatedDocumentAmount)
|
2021-06-27 11:14:01 +03:00
|
|
|
<td class="price" style="color:#525f7f; font-size:13px;">
|
|
|
|
@money($transaction->document->amount, $transaction->document->currency_code, true)
|
|
|
|
</td>
|
|
|
|
@endif
|
|
|
|
|
2021-11-22 23:09:01 +03:00
|
|
|
@if (!$hideRelatedAmount)
|
2021-06-27 11:14:01 +03:00
|
|
|
<td class="total" style="color:#525f7f; font-size:13px;">
|
|
|
|
@money($transaction->amount, $transaction->currency_code, true)
|
|
|
|
</td>
|
|
|
|
@endif
|
2021-06-25 18:10:58 +03:00
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2021-06-25 08:45:00 +03:00
|
|
|
@endif
|
2021-06-24 13:52:49 +03:00
|
|
|
@endif
|