276 lines
12 KiB
PHP
Raw Normal View History

2022-06-14 09:53:44 +03:00
<div class="print-template">
@stack('details_start')
2022-06-14 09:53:44 +03:00
<table style="width: 100%;">
2021-07-09 23:36:41 +03:00
<tr>
2022-06-14 09:53:44 +03:00
<td style="padding:0 0 15px 0;">
<h2 class="text-left" style="font-size: 14px; font-weight:600;">
{{ trans_choice('transfers.details', 2) }}
2022-06-01 10:15:55 +03:00
</h2>
</td>
</tr>
2022-06-14 09:53:44 +03:00
</table>
2022-06-01 10:15:55 +03:00
2022-06-14 09:53:44 +03:00
<table>
@stack('transferred_at_input_start')
2022-06-01 10:15:55 +03:00
<tr>
2022-06-14 09:53:44 +03:00
<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') }}
2022-06-14 09:53:44 +03:00
</td>
2021-07-09 23:36:41 +03:00
2022-06-14 09:53:44 +03:00
<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>
@stack('transferred_at_input_end')
2022-06-01 10:15:55 +03:00
@stack('payment_method_input_start')
2022-06-14 09:53:44 +03:00
<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) }}
2022-06-14 09:53:44 +03:00
</td>
2022-06-01 10:15:55 +03:00
2022-06-14 09:53:44 +03:00
<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>
@stack('payment_method_input_end')
2021-07-09 23:36:41 +03:00
@stack('reference_input_start')
2022-06-14 09:53:44 +03:00
<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') }}
2022-06-14 09:53:44 +03:00
</td>
2022-06-01 10:15:55 +03:00
2022-06-14 09:53:44 +03:00
<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>
@stack('reference_input_end')
2021-07-09 23:36:41 +03:00
@stack('description_input_start')
2022-06-14 09:53:44 +03:00
<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>
2021-07-09 23:36:41 +03:00
2022-06-14 09:53:44 +03:00
<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>
@stack('description_input_end')
2022-06-14 09:53:44 +03:00
</table>
@stack('details_end')
2022-06-14 09:53:44 +03:00
@stack('from_account_start')
2022-06-14 09:53:44 +03:00
<table style="width: 100%; margin-top:35px;">
<tbody>
@stack('from_account_id_start')
2022-06-14 09:53:44 +03:00
<tr>
<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>
@stack('from_account_name_input_start')
2022-06-14 09:53:44 +03:00
<tr>
<td style="width:30%; margin: 0px; padding: 0 0 8px 0; font-size: 12px; font-weight:600;">
{{ trans('accounts.account_name') }}
2022-06-14 09:53:44 +03:00
</td>
<td style="width:70%; margin: 0px; padding: 0 0 8px 0; font-size: 12px;">
{{ $transfer->expense_account->name }}
2022-06-14 09:53:44 +03:00
</td>
</tr>
@stack('from_account_name_input_end')
2022-06-14 09:53:44 +03:00
</table>
<table>
@stack('from_account_number_input_start')
2022-06-14 09:53:44 +03:00
<tr>
<td style="width:30%; margin: 0px; padding: 0 0 8px 0; font-size: 12px; font-weight:600;">
{{ trans('accounts.number') }}
2022-06-14 09:53:44 +03:00
</td>
<td style="width:70%; margin: 0px; padding: 0 0 8px 0; font-size: 12px;">
{{ $transfer->expense_account->number}}
2022-06-14 09:53:44 +03:00
</td>
</tr>
@stack('from_account_number_input_end')
2022-06-14 09:53:44 +03:00
</table>
@if (! empty($transfer->expense_account->bank_name))
2022-06-14 09:53:44 +03:00
<table>
@stack('from_account_bank_name_input_start')
2022-06-14 09:53:44 +03:00
<tr>
<td style="width:30%; margin: 0px; padding: 0 0 8px 0; font-size: 12px; font-weight:600;">
{{ trans('accounts.bank_name') }}
2022-06-14 09:53:44 +03:00
</td>
<td style="width:70%; margin: 0px; padding: 0 0 8px 0; font-size: 12px;">
{{ $transfer->expense_account->bank_name }}
2022-06-14 09:53:44 +03:00
</td>
</tr>
@stack('from_account_bank_name_input_end')
2022-06-14 09:53:44 +03:00
</table>
@endif
2022-06-14 09:53:44 +03:00
@if (! empty($transfer->expense_account->bank_phone))
2022-06-14 09:53:44 +03:00
<table>
@stack('from_account_phone_input_start')
2022-06-14 09:53:44 +03:00
<tr>
<td style="width:30%; margin: 0px; padding: 0 0 8px 0; font-size: 12px; font-weight:600;">
{{ trans('general.phone') }}
2022-06-14 09:53:44 +03:00
</td>
<td style="width:70%; margin: 0px; padding: 0 0 8px 0; font-size: 12px;">
{{ $transfer->expense_account->bank_phone }}
2022-06-14 09:53:44 +03:00
</td>
</tr>
@stack('from_account_phone_input_end')
2022-06-14 09:53:44 +03:00
</table>
@endif
2022-06-14 09:53:44 +03:00
@if (! empty($transfer->expense_account->bank_address))
2022-06-14 09:53:44 +03:00
<table>
@stack('from_account_address_input_start')
2022-06-14 09:53:44 +03:00
<tr>
<td style="width:30%; margin: 0px; padding: 0 0 8px 0; font-size: 12px; font-weight:600;">
{{ trans('general.address') }}
2022-06-14 09:53:44 +03:00
</td>
<td style="width:70%; margin: 0px; padding: 0 0 8px 0; font-size: 12px;">
{{ $transfer->expense_account->bank_address }}
2022-06-14 09:53:44 +03:00
</td>
</tr>
@stack('from_account_address_input_end')
2022-06-14 09:53:44 +03:00
</table>
@endif
2022-06-14 09:53:44 +03:00
</td>
</tr>
@stack('from_account_id_end')
2022-06-14 09:53:44 +03:00
</tbody>
</table>
@stack('from_account_end')
2022-06-14 09:53:44 +03:00
@stack('to_account_start')
2022-06-14 09:53:44 +03:00
<table style="width: 100%; margin-top:15px;">
<tbody>
@stack('to_account_id_start')
2022-06-14 09:53:44 +03:00
<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>
@stack('to_account_name_input_start')
2022-06-14 09:53:44 +03:00
<tr>
<td style="width:30%; margin: 0px; padding: 0 0 8px 0; font-size: 12px; font-weight:600;">
{{ trans('accounts.number') }}
2022-06-14 09:53:44 +03:00
</td>
<td style="width:70%; margin: 0px; padding: 0 0 8px 0; font-size: 12px;">
{{ $transfer->income_account->name }}
2022-06-14 09:53:44 +03:00
</td>
</tr>
@stack('to_account_name_input_end')
2022-06-14 09:53:44 +03:00
</table>
<table>
@stack('to_account_number_input_start')
2022-06-14 09:53:44 +03:00
<tr>
<td style="width:30%; margin: 0px; padding: 0 0 8px 0; font-size: 12px; font-weight:600;">
{{ trans('accounts.number') }}
2022-06-14 09:53:44 +03:00
</td>
<td style="width:70%; margin: 0px; padding: 0 0 8px 0; font-size: 12px;">
{{ $transfer->income_account->number }}
2022-06-14 09:53:44 +03:00
</td>
</tr>
@stack('to_account_number_input_end')
2022-06-14 09:53:44 +03:00
</table>
@if (! empty($transfer->income_account->bank_name))
2022-06-14 09:53:44 +03:00
<table>
@stack('to_account_bank_name_input_start')
2022-06-14 09:53:44 +03:00
<tr>
<td style="width:30%; margin: 0px; padding: 0 0 8px 0; font-size: 12px; font-weight:600;">
{{ trans('accounts.bank_name') }}
2022-06-14 09:53:44 +03:00
</td>
<td style="width:70%; margin: 0px; padding: 0 0 8px 0; font-size: 12px;">
{{ $transfer->income_account->bank_name }}
2022-06-14 09:53:44 +03:00
</td>
</tr>
@stack('to_account_bank_name_input_end')
2022-06-14 09:53:44 +03:00
</table>
@endif
2022-06-14 09:53:44 +03:00
@if (! empty($transfer->income_account->bank_phone))
2022-06-14 09:53:44 +03:00
<table>
@stack('to_account_phone_input_start')
2022-06-14 09:53:44 +03:00
<tr>
<td style="width:30%; margin: 0px; padding: 0 0 8px 0; font-size: 12px; font-weight:600;">
{{ trans('general.phone') }}
2022-06-14 09:53:44 +03:00
</td>
<td style="width:70%; margin: 0px; padding: 0 0 8px 0; font-size: 12px;">
{{ $transfer->income_account->bank_phone }}
2022-06-14 09:53:44 +03:00
</td>
</tr>
@stack('to_account_phone_input_end')
2022-06-14 09:53:44 +03:00
</table>
@endif
2022-06-14 09:53:44 +03:00
@if (! empty($transfer->income_account->bank_address))
2022-06-14 09:53:44 +03:00
<table>
@stack('to_account_address_input_start')
2022-06-14 09:53:44 +03:00
<tr>
<td style="width:30%; margin: 0px; padding: 0 0 8px 0; font-size: 12px; font-weight:600;">
{{ trans('general.address') }}
2022-06-14 09:53:44 +03:00
</td>
<td style="width:70%; margin: 0px; padding: 0 0 8px 0; font-size: 12px;">
{{ $transfer->income_account->bank_address }}
2022-06-14 09:53:44 +03:00
</td>
</tr>
@stack('to_account_address_input_end')
2022-06-14 09:53:44 +03:00
</table>
@endif
2022-06-14 09:53:44 +03:00
</td>
</tr>
@stack('to_account_id_end')
2022-06-14 09:53:44 +03:00
</tbody>
</table>
@stack('to_account_end')
2022-06-14 09:53:44 +03:00
@stack('amount_start')
2022-06-14 09:53:44 +03:00
<table style="text-align: right;">
@stack('amount_table_start')
2022-06-14 09:53:44 +03:00
<tr>
<td valign="center" style="width:80%; display:block; float:right;">
2022-06-01 10:15:55 +03:00
<table>
@stack('amount_input_start')
2022-06-01 10:15:55 +03:00
<tr>
2022-06-14 09:53:44 +03:00
<td valign="center" style="width: 80%; padding:0; font-size: 14px; font-weight:600;">
{{ trans('general.amount') }}
2022-06-01 10:15:55 +03:00
</td>
2022-06-14 09:53:44 +03:00
<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 />
2022-06-01 10:15:55 +03:00
</td>
</tr>
@stack('amount_input_end')
2022-06-01 10:15:55 +03:00
</table>
</td>
</tr>
@stack('amount_table_end')
2022-06-14 09:53:44 +03:00
</table>
@stack('amount_end')
2022-06-14 09:53:44 +03:00
</div>