akaunting 3.0 (the last dance)
This commit is contained in:
@ -1 +1 @@
|
||||
<script src="{{ asset( $scriptFile . '?v=' . $version) }}"></script>
|
||||
<x-script :alias="$alias" :folder="$folder" :file="$file" />
|
||||
|
@ -1,9 +1,24 @@
|
||||
@if ($attachment)
|
||||
<div class="row align-items-center">
|
||||
@foreach ($attachment as $file)
|
||||
<div class="col-xs-12 col-sm-4 mb-4">
|
||||
@include('partials.media.file')
|
||||
@if ($transfer->attachment)
|
||||
<div class="border-b border-gray-200 pb-4" x-data="{ attachment : null }">
|
||||
<div class="relative w-full text-left cursor-pointer group" x-on:click="attachment !== 1 ? attachment = 1 : attachment = null">
|
||||
<span class="font-medium border-b border-transparent transition-all group-hover:border-black">
|
||||
{{ trans_choice('general.attachments', 2) }}
|
||||
</span>
|
||||
|
||||
<div class="text-black-400 text-sm">
|
||||
{{ trans_choice('transers.slider.attachments') }}
|
||||
</div>
|
||||
@endforeach
|
||||
|
||||
<span class="material-icons absolute right-0 top-0 transition-all transform" x-bind:class="attachment === 1 ? 'rotate-180' : ''">expand_more</span>
|
||||
</div>
|
||||
|
||||
<div class="overflow-hidden transition-transform origin-top-left ease-linear duration-100"
|
||||
x-ref="container1"
|
||||
x-bind:class="attachment == 1 ? 'h-auto ' : 'scale-y-0 h-0'"
|
||||
|
||||
@foreach ($transfer->attachment as $file)
|
||||
<x-media.file :file="$file" />
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
|
@ -0,0 +1,9 @@
|
||||
@stack('add_new_button_start')
|
||||
|
||||
@can('create-banking-transfers')
|
||||
<x-link href="{{ route('transfers.create') }}" kind="primary">
|
||||
{{ trans('general.title.new', ['type' => trans_choice('general.transfers', 1)]) }}
|
||||
</x-link>
|
||||
@endcan
|
||||
|
||||
@stack('add_new_button_end')
|
@ -1,88 +1,15 @@
|
||||
@stack('content_header_start')
|
||||
@if (!$hideHeader)
|
||||
<x-transfers.show.header
|
||||
:transfer="$transfer"
|
||||
hide-header-from-account="{{ $hideHeaderFromAccount }}"
|
||||
text-header-from-account="{{ $textHeaderFromAccount }}"
|
||||
class-header-from-account="{{ $classHeaderFromAccount }}"
|
||||
hide-header-to-account="{{ $hideHeaderToAccount }}"
|
||||
text-header-to-account="{{ $textHeaderToAccount }}"
|
||||
class-header-to-account="{{ $classHeaderToAccount }}"
|
||||
route-from-account-show="{{ $routeFromAccountShow }}"
|
||||
route-to-account-show="{{ $routeToAccountShow }}"
|
||||
hide-header-amount="{{ $hideHeaderAmount }}"
|
||||
text-header-amount="{{ $textHeaderAmount }}"
|
||||
class-header-amount="{{ $classHeaderAmount }}"
|
||||
hide-header-paid-at="{{ $hideHeaderPaidAt }}"
|
||||
text-header-paid-at="{{ $textHeaderPaidAt }}"
|
||||
class-header-paid-at="{{ $classHeaderPaidAt }}"
|
||||
/>
|
||||
@endif
|
||||
@stack('content_header_end')
|
||||
<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">
|
||||
<x-transfers.show.create :model="$transfer" />
|
||||
|
||||
@stack('transfer_start')
|
||||
<x-transfers.show.transfer
|
||||
:transfer="$transfer"
|
||||
transfer-template="{{ $transferTemplate }}"
|
||||
<x-transfers.show.attachment :model="$transfer" />
|
||||
</div>
|
||||
|
||||
hide-from-account="{{ $hideFromAccount }}"
|
||||
hide-from-account-title="{{ $hideFromAccountTitle }}"
|
||||
hide-from-account-name="{{ $hideFromAccountName }}"
|
||||
hide-from-account-number="{{ $hideFromAccountNumber }}"
|
||||
hide-from-account-bank-name="{{ $hideFromAccountBankName }}"
|
||||
hide-from-account-bank-phone="{{ $hideFromAccountBankPhone }}"
|
||||
hide-from-account-bank-address="{{ $hideFromAccountBankAddress }}"
|
||||
<div class="w-full lg:w-7/12">
|
||||
<div class="p-7 shadow-2xl rounded-2xl">
|
||||
<x-transfers.show.template :model="$transfer" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
text-from-account-title="{{ $textFromAccountTitle }}"
|
||||
text-from-account-number="{{ $textFromAccountNumber }}"
|
||||
|
||||
hide-to-account="{{ $hideToAccount }}"
|
||||
hide-to-account-title="{{ $hideToAccountTitle }}"
|
||||
hide-to-account-name="{{ $hideToAccountName }}"
|
||||
hide-to-account-number="{{ $hideToAccountNumber }}"
|
||||
hide-to-account-bank-name="{{ $hideToAccountBankName }}"
|
||||
hide-to-account-bank-phone="{{ $hideToAccountBankPhone }}"
|
||||
hide-to-account-bank-address="{{ $hideToAccountBankAddress }}"
|
||||
|
||||
text-to-account-title="{{ $textToAccountTitle }}"
|
||||
text-to-account-number="{{ $textToAccountNumber }}"
|
||||
|
||||
hide-details="{{ $hideDetails }}"
|
||||
hide-detail-title="{{ $hideDetailTitle }}"
|
||||
hide-detail-date="{{ $hideDetailDate }}"
|
||||
hide-detail-payment-method="{{ $hideDetailPaymentMethod }}"
|
||||
hide-detail-reference="{{ $hideDetailReference }}"
|
||||
hide-detail-description="{{ $hideDetailDescription }}"
|
||||
hide-detail-amount="{{ $hideDetailAmount }}"
|
||||
|
||||
text-detail-title="{{ $textDetailTitle }}"
|
||||
text-detail-date="{{ $textDetailDate }}"
|
||||
text-detail-payment-method="{{ $textDetailPaymentMethod }}"
|
||||
text-detail-reference="{{ $textDetailReference }}"
|
||||
text-detail-description="{{ $textDetailDescription }}"
|
||||
text-detail-amount="{{ $textDetailAmount }}"
|
||||
/>
|
||||
@stack('transfer_end')
|
||||
|
||||
@stack('attachment_start')
|
||||
@if (!$hideAttachment)
|
||||
<x-transfers.show.attachment
|
||||
:transfer="$transfer"
|
||||
:attachment="$attachment"
|
||||
/>
|
||||
@endif
|
||||
@stack('attachment_end')
|
||||
|
||||
@stack('row_footer_start')
|
||||
@if (!$hideFooter)
|
||||
<x-transfers.show.footer
|
||||
:transfer="$transfer"
|
||||
:histories="$histories"
|
||||
class-footer-histories="{{ $classFooterHistories }}"
|
||||
hide-footer-histories="{{ $hideFooterHistories }}"
|
||||
text-histories="{{ $textHistories }}"
|
||||
/>
|
||||
@endif
|
||||
@stack('row_footer_end')
|
||||
|
||||
{{ Form::hidden('transfer_id', $transfer->id, ['id' => 'transfer_id']) }}
|
||||
<x-form.input.hidden name="transfer_id" :value="$transfer->id" />
|
||||
</div>
|
||||
|
27
resources/views/components/transfers/show/create.blade.php
Normal file
27
resources/views/components/transfers/show/create.blade.php
Normal file
@ -0,0 +1,27 @@
|
||||
@php $created_date = '<span class="font-medium">' . company_date($transfer->created_at) . '</span>' @endphp
|
||||
|
||||
<div class="border-b pb-4" x-data="{ create : null }">
|
||||
<button class="relative w-full text-left group" x-on:click="create !== 1 ? create = 1 : create = null">
|
||||
<span class="font-medium border-b border-transparent transition-all group-hover:border-black">
|
||||
{{ trans('general.create') }}
|
||||
</span>
|
||||
|
||||
<div class="text-black-400 text-sm">
|
||||
{!! trans('transactions.slider.create', ['user' => $transfer->owner->name, 'date' => $created_date]) !!}
|
||||
</div>
|
||||
|
||||
<span class="material-icons absolute right-0 top-0 transition-all transform" x-bind:class="create === 1 ? 'rotate-180' : ''">expand_more</span>
|
||||
</button>
|
||||
|
||||
<div
|
||||
class="overflow-hidden transition-transform origin-top-left ease-linear duration-100"
|
||||
x-ref="container1"
|
||||
x-bind:class="create == 1 ? 'h-auto ' : 'scale-y-0 h-0'"
|
||||
>
|
||||
<div class="flex my-3 space-x-2 rtl:space-x-reverse">
|
||||
<a href="{{ route('transfers.edit', $transfer->id) }}" class="px-3 py-1.5 mb-3 sm:mb-0 bg-gray-100 hover:bg-gray-200 rounded-xl text-purple text-xs font-bold leading-6">
|
||||
{{ trans('general.edit') }}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
@ -1,13 +0,0 @@
|
||||
<div class="row">
|
||||
@stack('row_footer_histories_start')
|
||||
@if (!$hideFooterHistories)
|
||||
<div class="{{ $classFooterHistories }}">
|
||||
<x-transfers.show.histories
|
||||
:transfer="$transfer"
|
||||
:histories="$histories"
|
||||
text-histories="{{ $textHistories }}"
|
||||
/>
|
||||
</div>
|
||||
@endif
|
||||
@stack('row_footer_histories_end')
|
||||
</div>
|
@ -1,73 +0,0 @@
|
||||
<div class="row" style="font-size: inherit !important">
|
||||
@stack('header_account_start')
|
||||
@if (!$hideHeaderFromAccount)
|
||||
<div class="{{ $classHeaderFromAccount }}">
|
||||
{{ trans_choice($textHeaderFromAccount, 1) }}
|
||||
<br>
|
||||
|
||||
<strong>
|
||||
<span class="float-left long-texts mwpx-200 transaction-head-text">
|
||||
<a href="{{ route($routeFromAccountShow, $transfer->expense_transaction->account->id) }}">
|
||||
{{ $transfer->expense_transaction->account->name }}
|
||||
</a>
|
||||
</span>
|
||||
</strong>
|
||||
<br><br>
|
||||
</div>
|
||||
@endif
|
||||
@stack('header_account_end')
|
||||
|
||||
@stack('header_category_start')
|
||||
@if (!$hideHeaderToAccount)
|
||||
<div class="{{ $classHeaderToAccount }}">
|
||||
{{ trans_choice($textHeaderToAccount, 1) }}
|
||||
<br>
|
||||
|
||||
<strong>
|
||||
<span class="float-left long-texts mwpx-300 transaction-head-text">
|
||||
<a href="{{ route($routeToAccountShow, $transfer->income_transaction->account->id) }}">
|
||||
{{ $transfer->income_transaction->account->name }}
|
||||
</a>
|
||||
</span>
|
||||
</strong>
|
||||
<br><br>
|
||||
</div>
|
||||
@endif
|
||||
@stack('header_category_end')
|
||||
|
||||
@stack('header_amount_start')
|
||||
@if (!$hideHeaderAmount)
|
||||
<div class="{{ $classHeaderAmount }}">
|
||||
<span class="float-right">
|
||||
{{ trans($textHeaderAmount) }}
|
||||
</span>
|
||||
<br>
|
||||
|
||||
<strong>
|
||||
<span class="float-right long-texts mwpx-100 transaction-head-text">
|
||||
@money($transfer->expense_transaction->amount, $transfer->expense_transaction->currency_code, true)
|
||||
</span>
|
||||
</strong>
|
||||
<br><br>
|
||||
</div>
|
||||
@endif
|
||||
@stack('header_amount_end')
|
||||
|
||||
@stack('header_paid_at_start')
|
||||
@if (!$hideHeaderPaidAt)
|
||||
<div class="{{ $classHeaderPaidAt }}">
|
||||
<span class="float-right">
|
||||
{{ trans($textHeaderPaidAt) }}
|
||||
</span>
|
||||
<br>
|
||||
|
||||
<strong>
|
||||
<span class="float-right long-texts mwpx-100 transaction-head-text">
|
||||
@date($transfer->transferred_at)
|
||||
</span>
|
||||
</strong>
|
||||
<br><br>
|
||||
</div>
|
||||
@endif
|
||||
@stack('header_paid_at_end')
|
||||
</div>
|
@ -1,47 +0,0 @@
|
||||
<div class="accordion">
|
||||
<div class="card">
|
||||
<div class="card-header" id="accordion-histories-header" data-toggle="collapse" data-target="#accordion-histories-body" aria-expanded="false" aria-controls="accordion-histories-body">
|
||||
<h4 class="mb-0">{{ trans($textHistories) }}</h4>
|
||||
</div>
|
||||
|
||||
<div id="accordion-histories-body" class="collapse hide" aria-labelledby="accordion-histories-header">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-flush table-hover">
|
||||
<thead class="thead-light">
|
||||
@stack('row_footer_histories_head_tr_start')
|
||||
<tr class="row table-head-line">
|
||||
@stack('row_footer_histories_head_start')
|
||||
<th class="col-xs-4 col-sm-3">
|
||||
{{ trans('general.date') }}
|
||||
</th>
|
||||
|
||||
<th class="col-xs-8 col-sm-9 text-left long-texts">
|
||||
{{ trans('general.created') }}
|
||||
</th>
|
||||
@stack('row_footer_histories_head_end')
|
||||
</tr>
|
||||
@stack('row_footer_histories_head_tr_end')
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@stack('row_footer_histories_body_tr_start')
|
||||
@foreach($histories as $history)
|
||||
<tr class="row align-items-center border-top-1 tr-py">
|
||||
@stack('row_footer_histories_body_td_start')
|
||||
<td class="col-xs-4 col-sm-3">
|
||||
@date($history->created_at)
|
||||
</td>
|
||||
|
||||
<td class="col-xs-4 col-sm-6 text-left long-texts">
|
||||
{{ $history->owner->name }}
|
||||
</td>
|
||||
@stack('row_footer_histories_body_td_end')
|
||||
</tr>
|
||||
@endforeach
|
||||
@stack('row_footer_histories_body_tr_end')
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
@ -0,0 +1,67 @@
|
||||
@stack('button_group_start')
|
||||
|
||||
<x-dropdown id="dropdown-actions">
|
||||
<x-slot name="trigger">
|
||||
<span class="material-icons">more_horiz</span>
|
||||
</x-slot>
|
||||
|
||||
@stack('edit_button_start')
|
||||
|
||||
@can('update-banking-transfers')
|
||||
<x-dropdown.link href="{{ route('transfers.edit', $transfer->id) }}">
|
||||
{{ trans('general.edit') }}
|
||||
</x-dropdown.link>
|
||||
@endcan
|
||||
|
||||
@stack('duplicate_button_start')
|
||||
|
||||
@can('create-banking-transfers')
|
||||
<x-dropdown.link href="{{ route('transfers.duplicate', $transfer->id) }}">
|
||||
{{ trans('general.duplicate') }}
|
||||
</x-dropdown.link>
|
||||
@endcan
|
||||
|
||||
@stack('duplicate_button_start')
|
||||
|
||||
<x-dropdown.divider />
|
||||
|
||||
@stack('print_button_start')
|
||||
|
||||
<x-dropdown.link href="{{ route('transfers.print', $transfer->id) }}" target="_blank">
|
||||
{{ trans('general.print') }}
|
||||
</x-dropdown.link>
|
||||
|
||||
@stack('print_button_end')
|
||||
|
||||
@stack('pdf_button_start')
|
||||
|
||||
<x-dropdown.link href="{{ route('transfers.pdf', $transfer->id) }}">
|
||||
{{ trans('general.download_pdf') }}
|
||||
</x-dropdown.link>
|
||||
|
||||
@stack('pdf_button_end')
|
||||
|
||||
<x-dropdown.divider />
|
||||
|
||||
@stack('choose_button_start')
|
||||
|
||||
<button type="button" class="w-full flex items-center text-purple px-2 h-9 leading-9 whitespace-nowrap" @click="onTemplate">
|
||||
<span class="w-full h-full flex items-center rounded-md px-2 text-sm hover:bg-lilac-100">
|
||||
{{ trans('general.form.choose', ['field' => trans_choice('general.templates', 1)]) }}
|
||||
</span>
|
||||
</button>
|
||||
|
||||
@stack('choose_button_end')
|
||||
|
||||
<x-dropdown.divider />
|
||||
|
||||
@stack('delete_button_start')
|
||||
|
||||
@can('delete-banking-transfers')
|
||||
<x-delete-link :model="$transfer" route="transfers.destroy" />
|
||||
@endcan
|
||||
|
||||
@stack('delete_button_end')
|
||||
</x-dropdown>
|
||||
|
||||
@stack('button_group_end')
|
10
resources/views/components/transfers/show/template.blade.php
Normal file
10
resources/views/components/transfers/show/template.blade.php
Normal file
@ -0,0 +1,10 @@
|
||||
@switch($template)
|
||||
@case('second')
|
||||
<x-transfers.template.second :transfer="$transfer" />
|
||||
@break
|
||||
@case('third')
|
||||
<x-transfers.template.third :transfer="$transfer" />
|
||||
@break
|
||||
@default
|
||||
<x-transfers.template.ddefault :transfer="$transfer" />
|
||||
@endswitch
|
@ -1,93 +0,0 @@
|
||||
@stack('button_group_start')
|
||||
@if (!$hideButtonMoreActions)
|
||||
<div class="dropup header-drop-top">
|
||||
<button type="button" class="btn btn-white btn-sm" data-toggle="dropdown" aria-expanded="false">
|
||||
<i class="fa fa-chevron-down"></i> {{ trans('general.more_actions') }}
|
||||
</button>
|
||||
|
||||
<div class="dropdown-menu" role="menu">
|
||||
@stack('button_dropdown_start')
|
||||
@stack('edit_button_start')
|
||||
@if (!$hideButtonEdit)
|
||||
@can($permissionUpdate)
|
||||
<a class="dropdown-item" href="{{ route($routeButtonEdit, $transfer->id) }}">
|
||||
{{ trans('general.edit') }}
|
||||
</a>
|
||||
@endcan
|
||||
@endif
|
||||
@stack('edit_button_end')
|
||||
|
||||
@stack('duplicate_button_start')
|
||||
@if (!$hideButtonDuplicate)
|
||||
@can($permissionCreate)
|
||||
<a class="dropdown-item" href="{{ route($routeButtonDuplicate, $transfer->id) }}">
|
||||
{{ trans('general.duplicate') }}
|
||||
</a>
|
||||
@endcan
|
||||
@endif
|
||||
@stack('duplicate_button_end')
|
||||
|
||||
@stack('button_dropdown_divider_1_start')
|
||||
@if (!$hideButtonGroupDivider1)
|
||||
<div class="dropdown-divider"></div>
|
||||
@endif
|
||||
@stack('button_dropdown_divider_1_end')
|
||||
|
||||
@if (!$hideButtonPrint)
|
||||
@stack('button_print_start')
|
||||
<a class="dropdown-item" href="{{ route($routeButtonPrint, $transfer->id) }}" target="_blank">
|
||||
{{ trans('general.print') }}
|
||||
</a>
|
||||
@stack('button_print_end')
|
||||
@endif
|
||||
|
||||
@stack('button_pdf_start')
|
||||
@if (!$hideButtonPdf)
|
||||
<a class="dropdown-item" href="{{ route($routeButtonPdf, $transfer->id) }}">
|
||||
{{ trans('general.download_pdf') }}
|
||||
</a>
|
||||
@endif
|
||||
@stack('button_pdf_end')
|
||||
|
||||
@stack('button_dropdown_divider_2_start')
|
||||
@if (!$hideButtonGroupDivider2)
|
||||
<div class="dropdown-divider"></div>
|
||||
@endif
|
||||
@stack('button_dropdown_divider_2_end')
|
||||
|
||||
@if (!$hideButtonTemplate)
|
||||
@stack('button_template_start')
|
||||
<button type="button" class="dropdown-item" @click="onTemplate">
|
||||
{{ trans('general.form.choose', ['field' => trans_choice('general.templates', 1)]) }}
|
||||
</button>
|
||||
@stack('button_template_end')
|
||||
@endif
|
||||
|
||||
@stack('button_dropdown_divider_3_start')
|
||||
@if (!$hideButtonGroupDivider3)
|
||||
<div class="dropdown-divider"></div>
|
||||
@endif
|
||||
@stack('button_dropdown_divider_3_end')
|
||||
|
||||
@stack('delete_button_start')
|
||||
@if (!$hideButtonDelete)
|
||||
@can($permissionDelete)
|
||||
{!! Form::deleteLink($transfer, $routeButtonDelete, $textDeleteModal, 'transfer_number') !!}
|
||||
@endcan
|
||||
@endif
|
||||
@stack('delete_button_end')
|
||||
@stack('button_dropdown_end')
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
@stack('button_group_end')
|
||||
|
||||
@stack('add_new_button_start')
|
||||
@if (!$hideButtonAddNew)
|
||||
@can($permissionCreate)
|
||||
<a href="{{ route($routeButtonAddNew) }}" class="btn btn-white btn-sm">
|
||||
{{ trans('general.add_new') }}
|
||||
</a>
|
||||
@endcan
|
||||
@endif
|
||||
@stack('add_new_button_end')
|
@ -1,137 +0,0 @@
|
||||
|
||||
|
||||
<div class="card" style="padding: 0; padding-left: 15px; padding-right: 15px; border-radius: 0; box-shadow: 0 4px 16px rgba(0,0,0,.2);">
|
||||
<div class="card-body show-card-body">
|
||||
@if ($transferTemplate)
|
||||
@switch($transferTemplate)
|
||||
@case('second')
|
||||
<x-transfers.template.second
|
||||
:transfer="$transfer"
|
||||
|
||||
hide-from-account="{{ $hideFromAccount }}"
|
||||
hide-from-account-title="{{ $hideFromAccountTitle }}"
|
||||
hide-from-account-name="{{ $hideFromAccountName }}"
|
||||
hide-from-account-number="{{ $hideFromAccountNumber }}"
|
||||
hide-from-account-bank-name="{{ $hideFromAccountBankName }}"
|
||||
hide-from-account-bank-phone="{{ $hideFromAccountBankPhone }}"
|
||||
hide-from-account-bank-address="{{ $hideFromAccountBankAddress }}"
|
||||
|
||||
text-from-account-title="{{ $textFromAccountTitle }}"
|
||||
text-from-account-number="{{ $textFromAccountNumber }}"
|
||||
|
||||
hide-to-account="{{ $hideToAccount }}"
|
||||
hide-to-account-title="{{ $hideToAccountTitle }}"
|
||||
hide-to-account-name="{{ $hideToAccountName }}"
|
||||
hide-to-account-number="{{ $hideToAccountNumber }}"
|
||||
hide-to-account-bank-name="{{ $hideToAccountBankName }}"
|
||||
hide-to-account-bank-phone="{{ $hideToAccountBankPhone }}"
|
||||
hide-to-account-bank-address="{{ $hideToAccountBankAddress }}"
|
||||
|
||||
text-to-account-title="{{ $textToAccountTitle }}"
|
||||
text-to-account-number="{{ $textToAccountNumber }}"
|
||||
|
||||
hide-details="{{ $hideDetails }}"
|
||||
hide-detail-title="{{ $hideDetailTitle }}"
|
||||
hide-detail-date="{{ $hideDetailDate }}"
|
||||
hide-detail-payment-method="{{ $hideDetailPaymentMethod }}"
|
||||
hide-detail-reference="{{ $hideDetailReference }}"
|
||||
hide-detail-description="{{ $hideDetailDescription }}"
|
||||
hide-detail-amount="{{ $hideDetailAmount }}"
|
||||
|
||||
text-detail-title="{{ $textDetailTitle }}"
|
||||
text-detail-date="{{ $textDetailDate }}"
|
||||
text-detail-payment-method="{{ $textDetailPaymentMethod }}"
|
||||
text-detail-reference="{{ $textDetailReference }}"
|
||||
text-detail-description="{{ $textDetailDescription }}"
|
||||
text-detail-amount="{{ $textDetailAmount }}"
|
||||
/>
|
||||
@break
|
||||
@case('third')
|
||||
<x-transfers.template.third
|
||||
:transfer="$transfer"
|
||||
|
||||
hide-from-account="{{ $hideFromAccount }}"
|
||||
hide-from-account-title="{{ $hideFromAccountTitle }}"
|
||||
hide-from-account-name="{{ $hideFromAccountName }}"
|
||||
hide-from-account-number="{{ $hideFromAccountNumber }}"
|
||||
hide-from-account-bank-name="{{ $hideFromAccountBankName }}"
|
||||
hide-from-account-bank-phone="{{ $hideFromAccountBankPhone }}"
|
||||
hide-from-account-bank-address="{{ $hideFromAccountBankAddress }}"
|
||||
|
||||
text-from-account-title="{{ $textFromAccountTitle }}"
|
||||
text-from-account-number="{{ $textFromAccountNumber }}"
|
||||
|
||||
hide-to-account="{{ $hideToAccount }}"
|
||||
hide-to-account-title="{{ $hideToAccountTitle }}"
|
||||
hide-to-account-name="{{ $hideToAccountName }}"
|
||||
hide-to-account-number="{{ $hideToAccountNumber }}"
|
||||
hide-to-account-bank-name="{{ $hideToAccountBankName }}"
|
||||
hide-to-account-bank-phone="{{ $hideToAccountBankPhone }}"
|
||||
hide-to-account-bank-address="{{ $hideToAccountBankAddress }}"
|
||||
|
||||
text-to-account-title="{{ $textToAccountTitle }}"
|
||||
text-to-account-number="{{ $textToAccountNumber }}"
|
||||
|
||||
hide-details="{{ $hideDetails }}"
|
||||
hide-detail-title="{{ $hideDetailTitle }}"
|
||||
hide-detail-date="{{ $hideDetailDate }}"
|
||||
hide-detail-payment-method="{{ $hideDetailPaymentMethod }}"
|
||||
hide-detail-reference="{{ $hideDetailReference }}"
|
||||
hide-detail-description="{{ $hideDetailDescription }}"
|
||||
hide-detail-amount="{{ $hideDetailAmount }}"
|
||||
|
||||
text-detail-title="{{ $textDetailTitle }}"
|
||||
text-detail-date="{{ $textDetailDate }}"
|
||||
text-detail-payment-method="{{ $textDetailPaymentMethod }}"
|
||||
text-detail-reference="{{ $textDetailReference }}"
|
||||
text-detail-description="{{ $textDetailDescription }}"
|
||||
text-detail-amount="{{ $textDetailAmount }}"
|
||||
/>
|
||||
@break
|
||||
@default
|
||||
<x-transfers.template.ddefault
|
||||
:transfer="$transfer"
|
||||
|
||||
hide-from-account="{{ $hideFromAccount }}"
|
||||
hide-from-account-title="{{ $hideFromAccountTitle }}"
|
||||
hide-from-account-name="{{ $hideFromAccountName }}"
|
||||
hide-from-account-number="{{ $hideFromAccountNumber }}"
|
||||
hide-from-account-bank-name="{{ $hideFromAccountBankName }}"
|
||||
hide-from-account-bank-phone="{{ $hideFromAccountBankPhone }}"
|
||||
hide-from-account-bank-address="{{ $hideFromAccountBankAddress }}"
|
||||
|
||||
text-from-account-title="{{ $textFromAccountTitle }}"
|
||||
text-from-account-number="{{ $textFromAccountNumber }}"
|
||||
|
||||
hide-to-account="{{ $hideToAccount }}"
|
||||
hide-to-account-title="{{ $hideToAccountTitle }}"
|
||||
hide-to-account-name="{{ $hideToAccountName }}"
|
||||
hide-to-account-number="{{ $hideToAccountNumber }}"
|
||||
hide-to-account-bank-name="{{ $hideToAccountBankName }}"
|
||||
hide-to-account-bank-phone="{{ $hideToAccountBankPhone }}"
|
||||
hide-to-account-bank-address="{{ $hideToAccountBankAddress }}"
|
||||
|
||||
text-to-account-title="{{ $textToAccountTitle }}"
|
||||
text-to-account-number="{{ $textToAccountNumber }}"
|
||||
|
||||
hide-details="{{ $hideDetails }}"
|
||||
hide-detail-title="{{ $hideDetailTitle }}"
|
||||
hide-detail-date="{{ $hideDetailDate }}"
|
||||
hide-detail-payment-method="{{ $hideDetailPaymentMethod }}"
|
||||
hide-detail-reference="{{ $hideDetailReference }}"
|
||||
hide-detail-description="{{ $hideDetailDescription }}"
|
||||
hide-detail-amount="{{ $hideDetailAmount }}"
|
||||
|
||||
text-detail-title="{{ $textDetailTitle }}"
|
||||
text-detail-date="{{ $textDetailDate }}"
|
||||
text-detail-payment-method="{{ $textDetailPaymentMethod }}"
|
||||
text-detail-reference="{{ $textDetailReference }}"
|
||||
text-detail-description="{{ $textDetailDescription }}"
|
||||
text-detail-amount="{{ $textDetailAmount }}"
|
||||
/>
|
||||
@endswitch
|
||||
@else
|
||||
@include($transferTemplate)
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
@ -1,179 +1,217 @@
|
||||
@if (!$hideFromAccount)
|
||||
<table class="border-bottom-1" style="width: 100%;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="width: 60%; padding-bottom: 15px;">
|
||||
@if (!$hideFromAccountTitle)
|
||||
<h2 class="mb-1" style="font-size: 16px;">
|
||||
{{ trans($textFromAccountTitle) }}
|
||||
</h2>
|
||||
@endif
|
||||
|
||||
@if (!$hideFromAccountName)
|
||||
<p style="margin: 0px; padding: 0px; font-size: 14px;">
|
||||
{{ $transfer->expense_transaction->account->name }}
|
||||
</p>
|
||||
@endif
|
||||
|
||||
@if (!$hideFromAccountNumber)
|
||||
<p style="margin: 0px; padding: 0px; font-size: 14px;">
|
||||
{{ trans($textFromAccountNumber) }}: {{ $transfer->expense_transaction->account->number }}
|
||||
</p>
|
||||
@endif
|
||||
|
||||
@if (!$hideFromAccountBankName)
|
||||
<p style="margin: 0px; padding: 0px; font-size: 14px;">
|
||||
{{ $transfer->expense_transaction->account->bank_name }}
|
||||
</p>
|
||||
@endif
|
||||
|
||||
@if (!$hideFromAccountBankPhone)
|
||||
<p style="margin: 0px; padding: 0px; font-size: 14px;">
|
||||
{{ $transfer->expense_transaction->account->bank_phone }}
|
||||
</p>
|
||||
@endif
|
||||
|
||||
@if (!$hideFromAccountBankAddress)
|
||||
<p style="margin: 0px; padding: 0px; font-size: 14px;">
|
||||
{{ $transfer->expense_transaction->account->bank_address }}
|
||||
</p>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@endif
|
||||
|
||||
@if (!$hideToAccount)
|
||||
<table class="border-bottom-1" style="width: 100%; margin-top:15px;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="width: 60%; padding-bottom: 15px;">
|
||||
@if (!$hideToAccountTitle)
|
||||
<h2 class="mb-1" style="font-size: 16px;">
|
||||
{{ trans($textToAccountTitle) }}
|
||||
</h2>
|
||||
@endif
|
||||
|
||||
@if (!$hideToAccountName)
|
||||
<p style="margin: 0px; padding: 0px; font-size: 14px;">
|
||||
{{ $transfer->income_transaction->account->name }}
|
||||
</p>
|
||||
@endif
|
||||
|
||||
@if (!$hideToAccountNumber)
|
||||
<p style="margin: 0px; padding: 0px; font-size: 14px;">
|
||||
{{ trans($textToAccountNumber) }}: {{ $transfer->income_transaction->account->number }}
|
||||
</p>
|
||||
@endif
|
||||
|
||||
@if (!$hideToAccountBankName)
|
||||
<p style="margin: 0px; padding: 0px; font-size: 14px;">
|
||||
{{ $transfer->income_transaction->account->bank_name }}
|
||||
</p>
|
||||
@endif
|
||||
|
||||
@if (!$hideToAccountBankPhone)
|
||||
<p style="margin: 0px; padding: 0px; font-size: 14px;">
|
||||
{{ $transfer->income_transaction->account->bank_phone }}
|
||||
</p>
|
||||
@endif
|
||||
|
||||
@if (!$hideToAccountBankAddress)
|
||||
<p style="margin: 0px; padding: 0px; font-size: 14px;">
|
||||
{{ $transfer->income_transaction->account->bank_address }}
|
||||
</p>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@endif
|
||||
|
||||
@if (!$hideDetails)
|
||||
@if (!$hideDetailTitle)
|
||||
<table>
|
||||
<tr>
|
||||
<td style="padding-bottom: 0; padding-top: 32px;">
|
||||
<h2 class="text-center text-uppercase" style="font-size: 16px;">
|
||||
{{ trans_choice($textDetailTitle, 2) }}
|
||||
</h2>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@endif
|
||||
|
||||
<table>
|
||||
<table class="border-bottom-1" style="width: 100%;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="width: 70%; padding-top:0; padding-bottom:0;">
|
||||
<td style="width: 60%; padding: 0 0 15px 0;">
|
||||
<h2 class="mb-1" style="font-size: 14px; font-weight:600; margin-bottom: 15px;">
|
||||
{{ trans('transfers.from_account') }}
|
||||
</h2>
|
||||
|
||||
<table>
|
||||
@if (!$hideDetailDate)
|
||||
<tr>
|
||||
<td style="width: 20%; padding-bottom:3px; font-size:14px; font-weight: bold;">
|
||||
{{ trans($textDetailDate) }}:
|
||||
</td>
|
||||
<tr>
|
||||
<td style="width:30%; margin: 0px; padding: 0 0 8px 0; font-size: 12px; font-weight:600;">
|
||||
{{ trans('accounts.account_name') }}:
|
||||
</td>
|
||||
|
||||
<td class="border-bottom-1" style="width:80%; padding-bottom:3px; font-size:14px;">
|
||||
@date($transfer->expense_transaction->paid_at)
|
||||
</td>
|
||||
</tr>
|
||||
@endif
|
||||
<td style="width:70%; margin: 0px; padding: 0 0 8px 0; font-size: 12px;">
|
||||
{{ $transfer->expense_transaction->account->name }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@if (!$hideDetailPaymentMethod)
|
||||
<tr>
|
||||
<td style="width: 20%; padding-bottom:3px; font-size:14px; font-weight: bold;">
|
||||
{{ trans_choice($textDetailPaymentMethod, 1) }}:
|
||||
</td>
|
||||
<table>
|
||||
<tr>
|
||||
<td style="width:30%; margin: 0px; padding: 0 0 8px 0; font-size: 12px; font-weight:600;">
|
||||
{{ trans('accounts.number') }}:
|
||||
</td>
|
||||
|
||||
<td class="border-bottom-1" style="width:80%; padding-bottom:3px; font-size:14px;">
|
||||
{{ !empty($payment_methods[$transfer->expense_transaction->payment_method]) ? $payment_methods[$transfer->expense_transaction->payment_method] : trans('general.na') }}
|
||||
</td>
|
||||
</tr>
|
||||
@endif
|
||||
<td style="width:70%; margin: 0px; padding: 0 0 8px 0; font-size: 12px;">
|
||||
{{ $transfer->expense_transaction->account->number }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@if (!$hideDetailReference)
|
||||
<tr>
|
||||
<td style="width: 20%; padding-bottom:3px; font-size:14px; font-weight: bold;">
|
||||
{{ trans($textDetailReference) }}:
|
||||
</td>
|
||||
<table>
|
||||
<tr>
|
||||
<td style="width:30%; margin: 0px; padding: 0 0 8px 0; font-size: 12px; font-weight:600;">
|
||||
{{ trans('accounts.bank_name') }}:
|
||||
</td>
|
||||
|
||||
<td class="border-bottom-1" style="width:80%; padding-bottom:3px; font-size:14px;">
|
||||
{{ $transfer->expense_transaction->reference }}
|
||||
</td>
|
||||
</tr>
|
||||
@endif
|
||||
<td style="width:70%; margin: 0px; padding: 0 0 8px 0; font-size: 12px;">
|
||||
{{ $transfer->expense_transaction->account->bank_name }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@if (!$hideDetailDescription)
|
||||
<tr>
|
||||
<td style="width: 20%; padding-bottom:3px; font-size:14px; font-weight: bold;">
|
||||
{{ trans($textDetailDescription) }}
|
||||
</td>
|
||||
<table>
|
||||
<tr>
|
||||
<td style="width:30%; margin: 0px; padding: 0 0 8px 0; font-size: 12px; font-weight:600;">
|
||||
{{ trans('general.phone') }}:
|
||||
</td>
|
||||
|
||||
<td class="border-bottom-1" style="width:80%; padding-bottom:3px; font-size:14px;">
|
||||
{{ $transfer->expense_transaction->description }}
|
||||
</td>
|
||||
</tr>
|
||||
@endif
|
||||
<td style="width:70%; margin: 0px; padding: 0 0 8px 0; font-size: 12px;">
|
||||
{{ $transfer->expense_transaction->account->bank_phone }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td style="width:30%; margin: 0px; padding: 0 0 8px 0; font-size: 12px; font-weight:600;">
|
||||
{{ trans('general.address') }}:
|
||||
</td>
|
||||
|
||||
<td style="width:70%; margin: 0px; padding: 0 0 8px 0; font-size: 12px;">
|
||||
{{ $transfer->expense_transaction->account->bank_address }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
|
||||
@if (!$hideDetailAmount)
|
||||
<td style="width:30%; padding-top:32px; padding-left: 25px;" valign="top">
|
||||
<table>
|
||||
<tr>
|
||||
<td style="background-color: #6da252; -webkit-print-color-adjust: exact; font-weight:bold !important; display:block;">
|
||||
<h5 class="text-muted mb-0 text-white" style="font-size: 20px; color:#ffffff; text-align:center; margin-top: 16px;">
|
||||
{{ trans($textDetailAmount) }}:
|
||||
</h5>
|
||||
|
||||
<p class="font-weight-bold mb-0 text-white" style="font-size: 26px; color:#ffffff; text-align:center;">
|
||||
@money($transfer->expense_transaction->amount, $transfer->expense_transaction->currency_code, true)
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
@endif
|
||||
</tr>
|
||||
</table>
|
||||
@endif
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table class="border-bottom-1" style="width: 100%; margin-top:15px;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="width: 60%; padding: 0 0 15px 0;">
|
||||
<h2 class="mb-1" style="font-size: 14px; font-weight:600; margin-bottom: 15px;">
|
||||
{{ trans('transfers.to_account') }}
|
||||
</h2>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td style="width:30%; margin: 0px; padding: 0 0 8px 0; font-size: 12px; font-weight:600;">
|
||||
{{ trans('accounts.account_name') }}:
|
||||
</td>
|
||||
|
||||
<td style="width:70%; margin: 0px; padding: 0 0 8px 0; font-size: 12px;">
|
||||
{{ $transfer->income_transaction->account->name }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td style="width:30%; margin: 0px; padding: 0 0 8px 0; font-size: 12px; font-weight:600;">
|
||||
{{ trans('accounts.number') }}:
|
||||
</td>
|
||||
|
||||
<td style="width:70%; margin: 0px; padding: 0 0 8px 0; font-size: 12px;">
|
||||
{{ $transfer->income_transaction->account->number }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td style="width:30%; margin: 0px; padding: 0 0 8px 0; font-size: 12px; font-weight:600;">
|
||||
{{ trans('accounts.bank_name') }}:
|
||||
</td>
|
||||
|
||||
<td style="width:70%; margin: 0px; padding: 0 0 8px 0; font-size: 12px;">
|
||||
{{ $transfer->income_transaction->account->bank_name }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td style="width:30%; margin: 0px; padding: 0 0 8px 0; font-size: 12px; font-weight:600;">
|
||||
{{ trans('general.phone') }}:
|
||||
</td>
|
||||
|
||||
<td style="width:70%; margin: 0px; padding: 0 0 8px 0; font-size: 12px;">
|
||||
{{ $transfer->income_transaction->account->bank_phone }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td style="width:30%; margin: 0px; padding: 0 0 8px 0; font-size: 12px; font-weight:600;">
|
||||
{{ trans('general.address') }}:
|
||||
</td>
|
||||
|
||||
<td style="width:70%; margin: 0px; padding: 0 0 8px 0; font-size: 12px;">
|
||||
{{ $transfer->income_transaction->account->bank_address }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table style="width: 100%; margin-top:15px;">
|
||||
<tr>
|
||||
<td style="padding:0 0 15px 0;">
|
||||
<h2 class="text-left text-uppercase" style="font-size: 14px; font-weight:600;">
|
||||
{{ trans_choice('transfers.details', 2) }}
|
||||
</h2>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td valign="top" style="width: 30%; margin: 0px; padding: 0 4px 8px 0; font-size: 12px; font-weight:600;">
|
||||
{{ trans('general.date') }}:
|
||||
</td>
|
||||
|
||||
<td valign="top" style="width:70%; margin: 0px; padding: 0 0 8px 0; font-size: 12px;">
|
||||
<x-date date="{{ $transfer->expense_transaction->paid_at}}" />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td valign="top" style="width: 30%; margin: 0px; padding: 0 4px 8px 0; font-size: 12px; font-weight:600;">
|
||||
{{ trans_choice('general.payment_methods', 1) }}:
|
||||
</td>
|
||||
|
||||
<td valign="top" style="width:70%; margin: 0px; padding: 0 0 8px 0; font-size: 12px;">
|
||||
@if (! empty($payment_methods[$transfer->expense_transaction->payment_method]))
|
||||
{!! $payment_methods[$transfer->expense_transaction->payment_method] !!}
|
||||
@else
|
||||
<x-empty-data />
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td valign="top" style="width: 30%; margin: 0px; padding: 0 4px 8px 0; font-size: 12px; font-weight:600;">
|
||||
{{ trans('general.reference') }}:
|
||||
</td>
|
||||
|
||||
<td valign="top" style="width:70%; margin: 0px; padding: 0 0 8px 0; font-size: 12px;">
|
||||
{{ $transfer->expense_transaction->reference }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td valign="top" style="width: 30%; margin: 0px; padding: 0 4px 8px 0; font-size: 12px; font-weight:600;">
|
||||
{{ trans('general.description') }}
|
||||
</td>
|
||||
|
||||
<td valign="top" style="width:70%; margin: 0px; padding: 0 0 8px 0; font-size: 12px;">
|
||||
{{ $transfer->expense_transaction->description }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table style="text-align: right;">
|
||||
<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('general.amount') }}:
|
||||
</td>
|
||||
|
||||
<td valign="center" style="width: 20%; padding:0; font-size: 14px; color:#ffffff;">
|
||||
<x-money :amount="$transfer->expense_transaction->amount" :currency="$transfer->expense_transaction->currency_code" convert />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
@ -1,179 +1,217 @@
|
||||
@if (!$hideDetails)
|
||||
@if (!$hideDetailTitle)
|
||||
<table>
|
||||
<tr>
|
||||
<td style="padding-bottom: 0; padding-top: 32px;">
|
||||
<h2 class="text-center text-uppercase" style="font-size: 16px;">
|
||||
{{ trans_choice($textDetailTitle, 2) }}
|
||||
</h2>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@endif
|
||||
<table style="width: 100%;">
|
||||
<tr>
|
||||
<td style="padding:0 0 15px 0;">
|
||||
<h2 class="text-left" style="font-size: 14px; font-weight:600;">
|
||||
{{ trans_choice('transfers.details', 2) }}
|
||||
</h2>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table class="border-bottom-1">
|
||||
<table>
|
||||
<tr>
|
||||
<td valign="top" style="width: 30%; margin: 0px; padding: 8px 0 8px 0; font-size: 12px; font-weight:600; border-bottom:1px solid #adadad;">
|
||||
{{ trans('general.date') }}:
|
||||
</td>
|
||||
|
||||
<td valign="top" style="width:70%; margin: 0px; padding: 8px 0 8px 0; font-size: 12px; border-bottom:1px solid #adadad;">
|
||||
<x-date date="{{ $transfer->expense_transaction->paid_at}}" />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td valign="top" style="width: 30%; margin: 0px; padding: 8px 0 8px 0; font-size: 12px; font-weight:600; border-bottom:1px solid #adadad;">
|
||||
{{ trans_choice('general.payment_methods', 1) }}:
|
||||
</td>
|
||||
|
||||
<td valign="top" style="width:70%; margin: 0px; padding: 8px 0 8px 0; font-size: 12px; border-bottom:1px solid #adadad;">
|
||||
@if (! empty($payment_methods[$transfer->expense_transaction->payment_method]))
|
||||
{!! $payment_methods[$transfer->expense_transaction->payment_method] !!}
|
||||
@else
|
||||
<x-empty-data />
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td valign="top" style="width: 30%; margin: 0px; padding: 8px 0 8px 0; font-size: 12px; font-weight:600; border-bottom:1px solid #adadad;">
|
||||
{{ trans('general.reference') }}:
|
||||
</td>
|
||||
|
||||
<td valign="top" style="width:70%; margin: 0px; padding: 8px 0 8px 0; font-size: 12px; border-bottom:1px solid #adadad;">
|
||||
{{ $transfer->expense_transaction->reference }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td valign="top" style="width: 30%; margin: 0px; padding: 8px 0 8px 0; font-size: 12px; font-weight:600; border-bottom:1px solid #adadad;">
|
||||
{{ trans('general.description') }}
|
||||
</td>
|
||||
|
||||
<td valign="top" style="width:70%; margin: 0px; padding: 8px 0 8px 0; font-size: 12px; border-bottom:1px solid #adadad;">
|
||||
{{ $transfer->expense_transaction->description }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table style="width: 100%; margin-top:35px;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="width: 70%; padding-top:0; padding-bottom:45px;">
|
||||
<td class="border-bottom-1 border-top-1" style="width: 60%; padding: 15px 0 15px 0;">
|
||||
<h2 class="mb-1" style="font-size: 14px; font-weight:600; margin-bottom: 15px;">
|
||||
{{ trans('transfers.from_account') }}
|
||||
</h2>
|
||||
|
||||
<table>
|
||||
@if (!$hideDetailDate)
|
||||
<tr>
|
||||
<td style="width: 20%; padding-bottom:3px; font-size:14px; font-weight: bold;">
|
||||
{{ trans($textDetailDate) }}:
|
||||
</td>
|
||||
<tr>
|
||||
<td style="width:30%; margin: 0px; padding: 0 0 8px 0; font-size: 12px; font-weight:600;">
|
||||
{{ trans('accounts.number') }}:
|
||||
</td>
|
||||
|
||||
<td class="border-bottom-1" style="width:80%; padding-bottom:3px; font-size:14px;">
|
||||
@date($transfer->expense_transaction->paid_at)
|
||||
</td>
|
||||
</tr>
|
||||
@endif
|
||||
<td style="width:70%; margin: 0px; padding: 0 0 8px 0; font-size: 12px;">
|
||||
{{ $transfer->expense_transaction->account->name }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@if (!$hideDetailPaymentMethod)
|
||||
<tr>
|
||||
<td style="width: 20%; padding-bottom:3px; font-size:14px; font-weight: bold;">
|
||||
{{ trans_choice($textDetailPaymentMethod, 1) }}:
|
||||
</td>
|
||||
<table>
|
||||
<tr>
|
||||
<td style="width:30%; margin: 0px; padding: 0 0 8px 0; font-size: 12px; font-weight:600;">
|
||||
{{ trans('accounts.number') }}:
|
||||
</td>
|
||||
|
||||
<td class="border-bottom-1" style="width:80%; padding-bottom:3px; font-size:14px;">
|
||||
{{ !empty($payment_methods[$transfer->expense_transaction->payment_method]) ? $payment_methods[$transfer->expense_transaction->payment_method] : trans('general.na') }}
|
||||
</td>
|
||||
</tr>
|
||||
@endif
|
||||
<td style="width:70%; margin: 0px; padding: 0 0 8px 0; font-size: 12px;">
|
||||
{{ $transfer->expense_transaction->account->number}}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@if (!$hideDetailReference)
|
||||
<tr>
|
||||
<td style="width: 20%; padding-bottom:3px; font-size:14px; font-weight: bold;">
|
||||
{{ trans($textDetailReference) }}:
|
||||
</td>
|
||||
<table>
|
||||
<tr>
|
||||
<td style="width:30%; margin: 0px; padding: 0 0 8px 0; font-size: 12px; font-weight:600;">
|
||||
{{ trans('accounts.bank_name') }}:
|
||||
</td>
|
||||
|
||||
<td class="border-bottom-1" style="width:80%; padding-bottom:3px; font-size:14px;">
|
||||
{{ $transfer->expense_transaction->reference }}
|
||||
</td>
|
||||
</tr>
|
||||
@endif
|
||||
<td style="width:70%; margin: 0px; padding: 0 0 8px 0; font-size: 12px;">
|
||||
{{ $transfer->expense_transaction->account->bank_name }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@if (!$hideDetailDescription)
|
||||
<tr>
|
||||
<td style="width: 20%; padding-bottom:3px; font-size:14px; font-weight: bold;">
|
||||
{{ trans($textDetailDescription) }}
|
||||
</td>
|
||||
<table>
|
||||
<tr>
|
||||
<td style="width:30%; margin: 0px; padding: 0 0 8px 0; font-size: 12px; font-weight:600;">
|
||||
{{ trans('general.phone') }}:
|
||||
</td>
|
||||
|
||||
<td class="border-bottom-1" style="width:80%; padding-bottom:3px; font-size:14px;">
|
||||
{{ $transfer->expense_transaction->description }}
|
||||
</td>
|
||||
</tr>
|
||||
@endif
|
||||
<td style="width:70%; margin: 0px; padding: 0 0 8px 0; font-size: 12px;">
|
||||
{{ $transfer->expense_transaction->account->bank_phone }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td style="width:30%; margin: 0px; padding: 0 0 8px 0; font-size: 12px; font-weight:600;">
|
||||
{{ trans('general.address') }}:
|
||||
</td>
|
||||
|
||||
<td style="width:70%; margin: 0px; padding: 0 0 8px 0; font-size: 12px;">
|
||||
{{ $transfer->expense_transaction->account->bank_address }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
|
||||
@if (!$hideDetailAmount)
|
||||
<td style="width:30%; padding-top:32px; padding-left: 25px;" valign="top">
|
||||
<table>
|
||||
<tr>
|
||||
<td style="background-color: #6da252; -webkit-print-color-adjust: exact; font-weight:bold !important; display:block;">
|
||||
<h5 class="text-muted mb-0 text-white" style="font-size: 20px; color:#ffffff; text-align:center; margin-top: 16px;">
|
||||
{{ trans($textDetailAmount) }}:
|
||||
</h5>
|
||||
|
||||
<p class="font-weight-bold mb-0 text-white" style="font-size: 26px; color:#ffffff; text-align:center;">
|
||||
@money($transfer->expense_transaction->amount, $transfer->expense_transaction->currency_code, true)
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
@endif
|
||||
</tr>
|
||||
</table>
|
||||
@endif
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
@if (!$hideFromAccount)
|
||||
<table class="border-bottom-1" style="width: 100%;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="width: 60%; padding-bottom: 15px;">
|
||||
@if (!$hideFromAccountTitle)
|
||||
<h2 class="mb-1" style="font-size: 16px;">
|
||||
{{ trans($textFromAccountTitle) }}
|
||||
</h2>
|
||||
@endif
|
||||
<table style="width: 100%; margin-top:15px;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="width: 60%; padding: 0 0 15px 0;">
|
||||
<h2 class="mb-1" style="font-size: 14px; font-weight:600; margin-bottom: 15px;">
|
||||
{{ trans('transfers.to_account') }}
|
||||
</h2>
|
||||
|
||||
@if (!$hideFromAccountName)
|
||||
<p style="margin: 0px; padding: 0px; font-size: 14px;">
|
||||
{{ $transfer->expense_transaction->account->name }}
|
||||
</p>
|
||||
@endif
|
||||
<table>
|
||||
<tr>
|
||||
<td style="width:30%; margin: 0px; padding: 0 0 8px 0; font-size: 12px; font-weight:600;">
|
||||
{{ trans('accounts.number') }}:
|
||||
</td>
|
||||
|
||||
@if (!$hideFromAccountNumber)
|
||||
<p style="margin: 0px; padding: 0px; font-size: 14px;">
|
||||
{{ trans($textFromAccountNumber) }}: {{ $transfer->expense_transaction->account->number}}
|
||||
</p>
|
||||
@endif
|
||||
|
||||
@if (!$hideFromAccountBankName)
|
||||
<p style="margin: 0px; padding: 0px; font-size: 14px;">
|
||||
{{ $transfer->expense_transaction->account->bank_name }}
|
||||
</p>
|
||||
@endif
|
||||
|
||||
@if (!$hideFromAccountBankPhone)
|
||||
<p style="margin: 0px; padding: 0px; font-size: 14px;">
|
||||
{{ $transfer->expense_transaction->account->bank_phone }}
|
||||
</p>
|
||||
@endif
|
||||
|
||||
@if (!$hideFromAccountBankAddress)
|
||||
<p style="margin: 0px; padding: 0px; font-size: 14px;">
|
||||
{{ $transfer->expense_transaction->account->bank_address }}
|
||||
</p>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@endif
|
||||
|
||||
@if (!$hideToAccount)
|
||||
<table class="border-bottom-1" style="width: 100%; margin-top:15px;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="width: 60%; padding-bottom: 15px;">
|
||||
@if (!$hideToAccountTitle)
|
||||
<h2 class="mb-1" style="font-size: 16px;">
|
||||
{{ trans($textToAccountTitle) }}
|
||||
</h2>
|
||||
@endif
|
||||
|
||||
@if (!$hideToAccountName)
|
||||
<p style="margin: 0px; padding: 0px; font-size: 14px;">
|
||||
<td style="width:70%; margin: 0px; padding: 0 0 8px 0; font-size: 12px;">
|
||||
{{ $transfer->income_transaction->account->name }}
|
||||
</p>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@if (!$hideToAccountNumber)
|
||||
<p style="margin: 0px; padding: 0px; font-size: 14px;">
|
||||
{{ trans($textToAccountNumber) }}: {{ $transfer->income_transaction->account->number }}
|
||||
</p>
|
||||
@endif
|
||||
<table>
|
||||
<tr>
|
||||
<td style="width:30%; margin: 0px; padding: 0 0 8px 0; font-size: 12px; font-weight:600;">
|
||||
{{ trans('accounts.number') }}:
|
||||
</td>
|
||||
|
||||
@if (!$hideToAccountBankName)
|
||||
<p style="margin: 0px; padding: 0px; font-size: 14px;">
|
||||
<td style="width:70%; margin: 0px; padding: 0 0 8px 0; font-size: 12px;">
|
||||
{{ $transfer->income_transaction->account->number }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td style="width:30%; margin: 0px; padding: 0 0 8px 0; font-size: 12px; font-weight:600;">
|
||||
{{ trans('accounts.bank_name') }}:
|
||||
</td>
|
||||
|
||||
<td style="width:70%; margin: 0px; padding: 0 0 8px 0; font-size: 12px;">
|
||||
{{ $transfer->income_transaction->account->bank_name }}
|
||||
</p>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@if (!$hideToAccountBankPhone)
|
||||
<p style="margin: 0px; padding: 0px; font-size: 14px;">
|
||||
<table>
|
||||
<tr>
|
||||
<td style="width:30%; margin: 0px; padding: 0 0 8px 0; font-size: 12px; font-weight:600;">
|
||||
{{ trans('general.phone') }}:
|
||||
</td>
|
||||
|
||||
<td style="width:70%; margin: 0px; padding: 0 0 8px 0; font-size: 12px;">
|
||||
{{ $transfer->income_transaction->account->bank_phone }}
|
||||
</p>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@if (!$hideToAccountBankAddress)
|
||||
<p style="margin: 0px; padding: 0px; font-size: 14px;">
|
||||
<table>
|
||||
<tr>
|
||||
<td style="width:30%; margin: 0px; padding: 0 0 8px 0; font-size: 12px; font-weight:600;">
|
||||
{{ trans('general.address') }}:
|
||||
</td>
|
||||
|
||||
<td style="width:70%; margin: 0px; padding: 0 0 8px 0; font-size: 12px;">
|
||||
{{ $transfer->income_transaction->account->bank_address }}
|
||||
</p>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table style="text-align: right;">
|
||||
<tr>
|
||||
<td valign="center" style="width:80%; display:block; float:right;">
|
||||
<table>
|
||||
<tr>
|
||||
<td valign="center" style="width: 80%; padding:0; font-size: 14px; font-weight:600;">
|
||||
{{ trans('general.amount') }}:
|
||||
</td>
|
||||
|
||||
<td valign="center" style="width: 20%; padding:0; font-size: 14px;">
|
||||
<x-money :amount="$transfer->expense_transaction->amount" :currency="$transfer->expense_transaction->currency_code" convert />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
@ -1,191 +1,227 @@
|
||||
@if (!$hideFromAccount && !$hideToAccount)
|
||||
<table class="border-bottom-1" style="width: 100%;">
|
||||
<tbody>
|
||||
<tr>
|
||||
@if (!$hideFromAccount)
|
||||
<td style="width: 50%; padding-bottom: 15px;" valign="top">
|
||||
<table>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
@if (!$hideFromAccountTitle)
|
||||
<h2 class="mb-1" style="font-size: 16px;">
|
||||
{{ trans($textFromAccountTitle) }}
|
||||
</h2>
|
||||
@endif
|
||||
|
||||
@if (!$hideFromAccountName)
|
||||
<p style="margin: 0px; padding: 0px; font-size: 14px;">
|
||||
{{ $transfer->expense_transaction->account->name }}
|
||||
</p>
|
||||
@endif
|
||||
|
||||
@if (!$hideFromAccountNumber)
|
||||
<p style="margin: 0px; padding: 0px; font-size: 14px;">
|
||||
{{ trans($textFromAccountNumber) }}: {{ $transfer->expense_transaction->account->number}}
|
||||
</p>
|
||||
@endif
|
||||
|
||||
@if (!$hideFromAccountBankName)
|
||||
<p style="margin: 0px; padding: 0px; font-size: 14px;">
|
||||
{{ $transfer->expense_transaction->account->bank_name }}
|
||||
</p>
|
||||
@endif
|
||||
|
||||
@if (!$hideFromAccountBankPhone)
|
||||
<p style="margin: 0px; padding: 0px; font-size: 14px;">
|
||||
{{ $transfer->expense_transaction->account->bank_phone }}
|
||||
</p>
|
||||
@endif
|
||||
|
||||
@if (!$hideFromAccountBankAddress)
|
||||
<p style="margin: 0px; padding: 0px; font-size: 14px;">
|
||||
{{ $transfer->expense_transaction->account->bank_address }}
|
||||
</p>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
@endif
|
||||
|
||||
@if (!$hideToAccount)
|
||||
<td style="width: 50%; padding-bottom: 15px;" valign="top">
|
||||
<table>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="text-align: right;">
|
||||
@if (!$hideToAccountTitle)
|
||||
<h2 class="mb-1" style="font-size: 16px;">
|
||||
{{ trans($textToAccountTitle) }}
|
||||
</h2>
|
||||
@endif
|
||||
|
||||
@if (!$hideToAccountName)
|
||||
<p style="margin: 0px; padding: 0px; font-size: 14px;">
|
||||
{{ $transfer->income_transaction->account->name }}
|
||||
</p>
|
||||
@endif
|
||||
|
||||
@if (!$hideToAccountNumber)
|
||||
<p style="margin: 0px; padding: 0px; font-size: 14px;">
|
||||
{{ trans($textToAccountNumber) }}: {{ $transfer->income_transaction->account->number }}
|
||||
</p>
|
||||
@endif
|
||||
|
||||
@if (!$hideToAccountBankName)
|
||||
<p style="margin: 0px; padding: 0px; font-size: 14px;">
|
||||
{{ $transfer->income_transaction->account->bank_name }}
|
||||
</p>
|
||||
@endif
|
||||
|
||||
@if (!$hideToAccountBankPhone)
|
||||
<p style="margin: 0px; padding: 0px; font-size: 14px;">
|
||||
{{ $transfer->income_transaction->account->bank_phone }}
|
||||
</p>
|
||||
@endif
|
||||
|
||||
@if (!$hideToAccountBankAddress)
|
||||
<p style="margin: 0px; padding: 0px; font-size: 14px;">
|
||||
{{ $transfer->income_transaction->account->bank_address }}
|
||||
</p>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
@endif
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@endif
|
||||
|
||||
@if (!$hideDetails)
|
||||
@if (!$hideDetailTitle)
|
||||
<table>
|
||||
<tr>
|
||||
<td style="padding-bottom: 0; padding-top: 32px;">
|
||||
<h2 class="text-center text-uppercase" style="font-size: 16px;">
|
||||
{{ trans_choice($textDetailTitle, 2) }}
|
||||
</h2>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@endif
|
||||
|
||||
<table>
|
||||
<table class="border-bottom-1" style="width: 100%;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="width: 70%; padding-top:0; padding-bottom:0;">
|
||||
<td style="width: 50%; padding: 0 15px 15px 0;" valign="top">
|
||||
<table>
|
||||
@if (!$hideDetailDate)
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="width: 20%; padding-bottom:3px; font-size:14px; font-weight: bold;">
|
||||
{{ trans($textDetailDate) }}:
|
||||
</td>
|
||||
<td style="padding:0;">
|
||||
<h2 class="mb-1" style="font-size: 14px; font-weight:600; margin-bottom: 15px;">
|
||||
{{ trans('transfers.from_account') }}
|
||||
</h2>
|
||||
|
||||
<td class="border-bottom-1" style="width:80%; padding-bottom:3px; font-size:14px;">
|
||||
@date($transfer->expense_transaction->paid_at)
|
||||
<table>
|
||||
<tr>
|
||||
<td style="width:30%; margin: 0px; padding: 0 0 8px 0; font-size: 12px; font-weight:600;">
|
||||
{{ trans('accounts.number') }}:
|
||||
</td>
|
||||
|
||||
<td style="width:70%; margin: 0px; padding: 0 0 8px 0; font-size: 12px;">
|
||||
{{ $transfer->expense_transaction->account->name }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td style="width:30%; margin: 0px; padding: 0 0 8px 0; font-size: 12px; font-weight:600;">
|
||||
{{ trans('accounts.number') }}:
|
||||
</td>
|
||||
|
||||
<td style="width:70%; margin: 0px; padding: 0 0 8px 0; font-size: 12px;">
|
||||
{{ $transfer->expense_transaction->account->number}}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td style="width:30%; margin: 0px; padding: 0 0 8px 0; font-size: 12px; font-weight:600;">
|
||||
{{ trans('accounts.bank_name') }}:
|
||||
</td>
|
||||
|
||||
<td style="width:70%; margin: 0px; padding: 0 0 8px 0; font-size: 12px;">
|
||||
{{ $transfer->expense_transaction->account->bank_name }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td style="width:30%; margin: 0px; padding: 0 0 8px 0; font-size: 12px; font-weight:600;">
|
||||
{{ trans('general.phone') }}:
|
||||
</td>
|
||||
|
||||
<td style="width:70%; margin: 0px; padding: 0 0 8px 0; font-size: 12px;">
|
||||
{{ $transfer->expense_transaction->account->bank_phone }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td style="width:30%; margin: 0px; padding: 0 0 8px 0; font-size: 12px; font-weight:600;">
|
||||
{{ trans('general.address') }}:
|
||||
</td>
|
||||
|
||||
<td style="width:70%; margin: 0px; padding: 0 0 8px 0; font-size: 12px;">
|
||||
{{ $transfer->expense_transaction->account->bank_address }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if (!$hideDetailPaymentMethod)
|
||||
<tr>
|
||||
<td style="width: 20%; padding-bottom:3px; font-size:14px; font-weight: bold;">
|
||||
{{ trans_choice($textDetailPaymentMethod, 1) }}:
|
||||
</td>
|
||||
|
||||
<td class="border-bottom-1" style="width:80%; padding-bottom:3px; font-size:14px;">
|
||||
{{ !empty($payment_methods[$transfer->expense_transaction->payment_method]) ? $payment_methods[$transfer->expense_transaction->payment_method] : trans('general.na') }}
|
||||
</td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if (!$hideDetailReference)
|
||||
<tr>
|
||||
<td style="width: 20%; padding-bottom:3px; font-size:14px; font-weight: bold;">
|
||||
{{ trans($textDetailReference) }}:
|
||||
</td>
|
||||
|
||||
<td class="border-bottom-1" style="width:80%; padding-bottom:3px; font-size:14px;">
|
||||
{{ $transfer->expense_transaction->reference }}
|
||||
</td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@if (!$hideDetailDescription)
|
||||
<tr>
|
||||
<td style="width: 20%; padding-bottom:3px; font-size:14px; font-weight: bold;">
|
||||
{{ trans($textDetailDescription) }}
|
||||
</td>
|
||||
|
||||
<td class="border-bottom-1" style="width:80%; padding-bottom:3px; font-size:14px;">
|
||||
{{ $transfer->expense_transaction->description }}
|
||||
</td>
|
||||
</tr>
|
||||
@endif
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
|
||||
@if (!$hideDetailAmount)
|
||||
<td style="width:30%; padding-top:32px; padding-left: 25px;" valign="top">
|
||||
<table>
|
||||
<td style="width: 50%; padding: 0 0 15px 15px;" valign="top">
|
||||
<table>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="background-color: #6da252; -webkit-print-color-adjust: exact; font-weight:bold !important; display:block;">
|
||||
<h5 class="text-muted mb-0 text-white" style="font-size: 20px; color:#ffffff; text-align:center; margin-top: 16px;">
|
||||
{{ trans($textDetailAmount) }}:
|
||||
</h5>
|
||||
<td style="padding:0;">
|
||||
<h2 class="mb-1" style="font-size: 14px; font-weight:600; margin-bottom: 15px;">
|
||||
{{ trans('transfers.to_account') }}
|
||||
</h2>
|
||||
|
||||
<p class="font-weight-bold mb-0 text-white" style="font-size: 26px; color:#ffffff; text-align:center;">
|
||||
@money($transfer->expense_transaction->amount, $transfer->expense_transaction->currency_code, true)
|
||||
</p>
|
||||
<table>
|
||||
<tr>
|
||||
<td style="width:30%; margin: 0px; padding: 0 0 8px 0; font-size: 12px; font-weight:600;">
|
||||
{{ trans('accounts.number') }}:
|
||||
</td>
|
||||
|
||||
<td style="width:70%; margin: 0px; padding: 0 0 8px 0; font-size: 12px;">
|
||||
{{ $transfer->income_transaction->account->name }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td style="width:30%; margin: 0px; padding: 0 0 8px 0; font-size: 12px; font-weight:600;">
|
||||
{{ trans('accounts.number') }}:
|
||||
</td>
|
||||
|
||||
<td style="width:70%; margin: 0px; padding: 0 0 8px 0; font-size: 12px;">
|
||||
{{ $transfer->income_transaction->account->number }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td style="width:30%; margin: 0px; padding: 0 0 8px 0; font-size: 12px; font-weight:600;">
|
||||
{{ trans('accounts.bank_name') }}:
|
||||
</td>
|
||||
|
||||
<td style="width:70%; margin: 0px; padding: 0 0 8px 0; font-size: 12px;">
|
||||
{{ $transfer->income_transaction->account->bank_name }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td style="width:30%; margin: 0px; padding: 0 0 8px 0; font-size: 12px; font-weight:600;">
|
||||
{{ trans('general.phone') }}:
|
||||
</td>
|
||||
|
||||
<td style="width:70%; margin: 0px; padding: 0 0 8px 0; font-size: 12px;">
|
||||
{{ $transfer->income_transaction->account->bank_phone }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td style="width:30%; margin: 0px; padding: 0 0 8px 0; font-size: 12px; font-weight:600;">
|
||||
{{ trans('general.address') }}:
|
||||
</td>
|
||||
|
||||
<td style="width:70%; margin: 0px; padding: 0 0 8px 0; font-size: 12px;">
|
||||
{{ $transfer->income_transaction->account->bank_address }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
@endif
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@endif
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table style="width: 100%; margin-top:15px;">
|
||||
<tr>
|
||||
<td style="padding:0 0 15px 0;">
|
||||
<h2 class="text-left text-uppercase" style="font-size: 14px; font-weight:600;">
|
||||
{{ trans_choice('transfers.details', 2) }}
|
||||
</h2>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td valign="top" style="width: 30%; margin: 0px; padding: 0; font-size: 12px; font-weight:600; line-height: 24px;">
|
||||
{{ trans('general.date') }}:
|
||||
</td>
|
||||
|
||||
<td valign="top" style="width:70%; margin: 0px; padding: 0; font-size: 12px; border-bottom:1px solid; line-height: 24px;">
|
||||
<x-date date="{{ $transfer->expense_transaction->paid_at}}" />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td valign="top" style="width: 30%; margin: 0px; padding: 0; font-size: 12px; font-weight:600; line-height: 24px;">
|
||||
{{ trans_choice('general.payment_methods', 1) }}:
|
||||
</td>
|
||||
|
||||
<td valign="top" style="width:70%; margin: 0px; padding: 0; font-size: 12px; border-bottom:1px solid; line-height: 24px;">
|
||||
@if (! empty($payment_methods[$transfer->expense_transaction->payment_method]))
|
||||
{!! $payment_methods[$transfer->expense_transaction->payment_method] !!}
|
||||
@else
|
||||
<x-empty-data />
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td valign="top" style="width: 30%; margin: 0px; padding: 0; font-size: 12px; font-weight:600; line-height: 24px;">
|
||||
{{ trans('general.reference') }}:
|
||||
</td>
|
||||
|
||||
<td valign="top" style="width:70%; margin: 0px; padding: 0; font-size: 12px; border-bottom:1px solid; line-height: 24px;">
|
||||
{{ $transfer->expense_transaction->reference }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td valign="top" style="width: 30%; margin: 0px; padding: 0; font-size: 12px; font-weight:600; line-height: 24px;">
|
||||
{{ trans('general.description') }}
|
||||
</td>
|
||||
|
||||
<td valign="top" style="width:70%; margin: 0px; padding: 0; font-size: 12px; border-bottom:1px solid; line-height: 24px;">
|
||||
{{ $transfer->expense_transaction->description }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table style="text-align: right;">
|
||||
<tr>
|
||||
<td valign="center" style="width:80%; display:block; float:right;">
|
||||
<table>
|
||||
<tr>
|
||||
<td valign="center" style="width: 80%; padding:0; font-size: 14px; font-weight:600;">
|
||||
{{ trans('general.amount') }}:
|
||||
</td>
|
||||
|
||||
<td valign="center" style="width: 20%; padding:0; font-size: 14px;">
|
||||
<x-money :amount="$transfer->expense_transaction->amount" :currency="$transfer->expense_transaction->currency_code" convert />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
Reference in New Issue
Block a user