2022-06-01 10:15:55 +03:00
|
|
|
<div class="flex flex-col lg:flex-row my-10 lg:space-x-24 rtl:space-x-reverse space-y-12 lg:space-y-0">
|
|
|
|
<div class="w-full lg:w-5/12 space-y-12">
|
|
|
|
@stack('recurring_message_start')
|
|
|
|
|
|
|
|
@if (! $hideRecurringMessage)
|
|
|
|
@if (($recurring = $transaction->recurring) && ($next = $recurring->getNextRecurring()))
|
|
|
|
@php
|
|
|
|
$recurring_message = trans('recurring.message', [
|
|
|
|
'type' => mb_strtolower(trans_choice($textRecurringType, 1)),
|
|
|
|
'date' => $next->format(company_date_format())
|
|
|
|
]);
|
|
|
|
@endphp
|
|
|
|
|
|
|
|
<x-documents.show.message type="recurring" background-color="bg-blue-100" text-color="text-blue-600" message="{{ $recurring_message }}" />
|
|
|
|
@endif
|
2021-06-24 13:52:49 +03:00
|
|
|
|
2022-06-05 14:07:00 +03:00
|
|
|
@if ($parent = $transaction->parent)
|
2022-06-01 10:15:55 +03:00
|
|
|
@php
|
|
|
|
$recurring_message = trans('recurring.message_parent', [
|
|
|
|
'type' => mb_strtolower(trans_choice($textRecurringType, 1)),
|
2022-08-03 14:04:32 +03:00
|
|
|
'link' => '<x-link href="' . route(config('type.transaction.' . $transaction->parent->type . '.route.prefix') . '.show', $parent->id) . '" override="class"><u>' . $parent->number . '</u></x-link>'
|
2022-06-01 10:15:55 +03:00
|
|
|
]);
|
|
|
|
@endphp
|
|
|
|
|
|
|
|
<x-documents.show.message type="recurring" background-color="bg-blue-100" text-color="text-blue-600" message="{{ $recurring_message }}" />
|
|
|
|
@endif
|
|
|
|
@endif
|
|
|
|
|
|
|
|
@stack('recurring_message_end')
|
|
|
|
|
|
|
|
@stack('row_create_start')
|
2022-06-14 15:06:55 +03:00
|
|
|
@if (! $hideCreated)
|
2022-06-01 10:15:55 +03:00
|
|
|
<x-transactions.show.create
|
2021-06-24 13:52:49 +03:00
|
|
|
type="{{ $type }}"
|
|
|
|
:transaction="$transaction"
|
|
|
|
/>
|
2022-06-14 15:06:55 +03:00
|
|
|
@endif
|
2022-06-01 10:15:55 +03:00
|
|
|
@stack('row_create_end')
|
|
|
|
|
|
|
|
@stack('schedule_start')
|
|
|
|
@if (! $hideSchedule)
|
|
|
|
<x-transactions.show.schedule
|
|
|
|
type="{{ $type }}"
|
|
|
|
:transaction="$transaction"
|
|
|
|
/>
|
|
|
|
@endif
|
|
|
|
@stack('schedule_end')
|
|
|
|
|
|
|
|
@stack('children_start')
|
|
|
|
@if (! $hideChildren)
|
|
|
|
<x-transactions.show.children
|
|
|
|
type="{{ $type }}"
|
|
|
|
:transaction="$transaction"
|
|
|
|
/>
|
|
|
|
@endif
|
|
|
|
@stack('children_end')
|
|
|
|
|
2022-06-28 19:20:27 +03:00
|
|
|
@stack('transfer_start')
|
|
|
|
@if (! $hideTransfer)
|
|
|
|
<x-transactions.show.transfer
|
|
|
|
type="{{ $type }}"
|
|
|
|
:transaction="$transaction"
|
|
|
|
/>
|
|
|
|
@endif
|
|
|
|
@stack('transfer_end')
|
|
|
|
|
2022-06-01 10:15:55 +03:00
|
|
|
@stack('attachment_start')
|
|
|
|
@if (! $hideAttachment)
|
|
|
|
<x-transactions.show.attachment
|
|
|
|
type="{{ $type }}"
|
|
|
|
:transaction="$transaction"
|
|
|
|
:attachment="$attachment"
|
|
|
|
/>
|
|
|
|
@endif
|
|
|
|
@stack('attachment_end')
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="w-full lg:w-7/12">
|
|
|
|
@stack('transaction_start')
|
|
|
|
<x-transactions.show.template
|
|
|
|
type="{{ $type }}"
|
|
|
|
:transaction="$transaction"
|
|
|
|
transaction-template="{{ $transactionTemplate }}"
|
|
|
|
logo="{{ $logo }}"
|
|
|
|
hide-company="{{ $hideCompany }}"
|
|
|
|
hide-company-logo="{{ $hideCompanyLogo }}"
|
|
|
|
hide-company-details="{{ $hideCompanyDetails }}"
|
|
|
|
hide-company-name="{{ $hideCompanyName }}"
|
|
|
|
hide-company-address="{{ $hideCompanyAddress }}"
|
|
|
|
hide-company-tax-number="{{ $hideCompanyTaxNumber }}"
|
|
|
|
hide-company-phone="{{ $hideCompanyPhone }}"
|
|
|
|
hide-company-email="{{ $hideCompanyEmail }}"
|
|
|
|
|
|
|
|
hide-content-title="{{ $hideContentTitle }}"
|
|
|
|
hide-number="{{ $hideNumber }}"
|
|
|
|
hide-paid-at="{{ $hidePaidAt }}"
|
|
|
|
hide-account="{{ $hideAccount }}"
|
|
|
|
hide-category="{{ $hideCategory }}"
|
|
|
|
hide-payment-methods="{{ $hidePaymentMethods }}"
|
|
|
|
hide-reference="{{ $hideReference }}"
|
|
|
|
hide-description="{{ $hideDescription }}"
|
|
|
|
hide-amount="{{ $hideAmount }}"
|
|
|
|
|
|
|
|
text-content-title="{{ $textContentTitle }}"
|
|
|
|
text-number="{{ $textNumber }}"
|
|
|
|
text-paid-at="{{ $textPaidAt }}"
|
|
|
|
text-account="{{ $textAccount }}"
|
|
|
|
text-category="{{ $textCategory }}"
|
|
|
|
text-payment-methods="{{ $textPaymentMethods }}"
|
|
|
|
text-reference="{{ $textReference }}"
|
|
|
|
text-description="{{ $textDescription }}"
|
|
|
|
text-paid-by="{{ $textPaidBy }}"
|
|
|
|
|
|
|
|
hide-contact="{{ $hideContact }}"
|
|
|
|
hide-contact-info="{{ $hideContactInfo }}"
|
|
|
|
hide-contact-name="{{ $hideContactName }}"
|
|
|
|
hide-contact-address="{{ $hideContactAddress }}"
|
|
|
|
hide-contact-tax-number="{{ $hideContactTaxNumber }}"
|
|
|
|
hide-contact-phone="{{ $hideContactPhone }}"
|
|
|
|
hide-contact-email="{{ $hideContactEmail }}"
|
|
|
|
|
|
|
|
hide-related="{{ $hideRelated }}"
|
|
|
|
hide-related-document-number="{{ $hideRelatedDocumentNumber }}"
|
|
|
|
hide-related-contact="{{ $hideRelatedContact }}"
|
|
|
|
hide-related-document-date="{{ $hideRelatedDocumentDate }}"
|
|
|
|
hide-related-document-amount="{{ $hideRelatedDocumentAmount }}"
|
|
|
|
hide-related-amount="{{ $hideRelatedAmount }}"
|
|
|
|
|
|
|
|
text-related-transaction="{{ $textRelatedTransansaction }}"
|
|
|
|
text-related-document-number="{{ $textRelatedDocumentNumber }}"
|
|
|
|
text-related-contact="{{ $textRelatedContact }}"
|
|
|
|
text-related-document-date="{{ $textRelatedDocumentDate }}"
|
|
|
|
text-related-document-amount="{{ $textRelatedDocumentAmount }}"
|
|
|
|
text-related-amount="{{ $textRelatedAmount }}"
|
|
|
|
|
|
|
|
route-document-show="{{ $routeDocumentShow }}"
|
|
|
|
/>
|
|
|
|
@stack('transaction_end')
|
|
|
|
</div>
|
2021-06-24 13:52:49 +03:00
|
|
|
|
2022-06-01 10:15:55 +03:00
|
|
|
<x-form.input.hidden name="transaction_id" :value="$transaction->id" />
|
|
|
|
<x-form.input.hidden name="{{ $type . '_id' }}" :value="$transaction->id" />
|
|
|
|
</div>
|