transfer default template added stack..

This commit is contained in:
Cüneyt Şentürk 2022-07-22 19:03:06 +03:00
parent d9b73bac43
commit c04b73f388

View File

@ -1,6 +1,8 @@
<div class="print-template">
@stack('from_account_start')
<table class="border-bottom-1">
<tbody>
@stack('from_account_id_start')
<tr>
<td style="width: 60%; padding: 0 0 15px 0;">
<h2 class="mb-1" style="font-size: 14px; font-weight:600; margin-bottom: 15px;">
@ -8,6 +10,7 @@
</h2>
<table>
@stack('from_account_name_input_start')
<tr>
<td valign="top" style="width: 30%; margin: 0px; padding: 8px 4px 0 0; font-size: 12px; font-weight:600;">
{{ trans('accounts.account_name') }}
@ -17,9 +20,11 @@
{{ $transfer->expense_account->name }}
</td>
</tr>
@stack('from_account_name_input_end')
</table>
<table>
@stack('from_account_number_input_start')
<tr>
<td valign="top" style="width: 30%; margin: 0px; padding: 8px 4px 0 0; font-size: 12px; font-weight:600;">
{{ trans('accounts.number') }}
@ -29,10 +34,12 @@
{{ $transfer->expense_account->number }}
</td>
</tr>
@stack('from_account_number_input_end')
</table>
@if (! empty($transfer->expense_account->bank_name))
<table>
@stack('from_account_bank_name_input_start')
<tr>
<td valign="top" style="width: 30%; margin: 0px; padding: 8px 4px 0 0; font-size: 12px; font-weight:600;">
{{ trans('accounts.bank_name') }}
@ -42,11 +49,13 @@
{{ $transfer->expense_account->bank_name }}
</td>
</tr>
@stack('from_account_bank_name_input_end')
</table>
@endif
@if (! empty($transfer->expense_account->bank_phone))
<table>
@stack('from_account_phone_input_start')
<tr>
<td valign="top" style="width: 30%; margin: 0px; padding: 8px 4px 0 0; font-size: 12px; font-weight:600;">
{{ trans('general.phone') }}
@ -56,11 +65,13 @@
{{ $transfer->expense_account->bank_phone }}
</td>
</tr>
@stack('from_account_phone_input_end')
</table>
@endif
@if (! empty($transfer->expense_account->bank_address))
<table>
@stack('from_account_address_input_start')
<tr>
<td valign="top" style="width: 30%; margin: 0px; padding: 8px 4px 0 0; font-size: 12px; font-weight:600;">
{{ trans('general.address') }}
@ -70,15 +81,20 @@
{{ $transfer->expense_account->bank_address }}
</td>
</tr>
@stack('from_account_address_input_end')
</table>
@endif
</td>
</tr>
@stack('from_account_id_end')
</tbody>
</table>
@stack('from_account_end')
@stack('to_account_start')
<table class="border-bottom-1" style="margin-top:15px;">
<tbody>
@stack('to_account_id_start')
<tr>
<td style="width: 60%; padding: 0 0 15px 0;">
<h2 class="mb-1" style="font-size: 14px; font-weight:600; margin-bottom: 15px;">
@ -86,6 +102,7 @@
</h2>
<table>
@stack('to_account_name_input_start')
<tr>
<td valign="top" style="width: 30%; margin: 0px; padding: 8px 4px 0 0; font-size: 12px; font-weight:600;">
{{ trans('accounts.account_name') }}
@ -95,9 +112,11 @@
{{ $transfer->income_account->name }}
</td>
</tr>
@stack('to_account_name_input_end')
</table>
<table>
@stack('to_account_number_input_start')
<tr>
<td valign="top" style="width: 30%; margin: 0px; padding: 8px 4px 0 0; font-size: 12px; font-weight:600;">
{{ trans('accounts.number') }}
@ -107,10 +126,12 @@
{{ $transfer->income_account->number }}
</td>
</tr>
@stack('to_account_number_input_end')
</table>
@if (! empty($transfer->income_account->bank_name))
<table>
@stack('to_account_bank_name_input_start')
<tr>
<td valign="top" style="width: 30%; margin: 0px; padding: 8px 4px 0 0; font-size: 12px; font-weight:600;">
{{ trans('accounts.bank_name') }}
@ -120,11 +141,13 @@
{{ $transfer->income_account->bank_name }}
</td>
</tr>
@stack('to_account_bank_name_input_end')
</table>
@endif
@if (! empty($transfer->income_account->bank_phone))
<table>
@stack('to_account_phone_input_start')
<tr>
<td valign="top" style="width: 30%; margin: 0px; padding: 8px 4px 0 0; font-size: 12px; font-weight:600;">
{{ trans('general.phone') }}
@ -134,11 +157,13 @@
{{ $transfer->income_account->bank_phone }}
</td>
</tr>
@stack('to_account_phone_input_end')
</table>
@endif
@if (! empty($transfer->income_account->bank_address))
<table>
@stack('to_account_address_input_start')
<tr>
<td valign="top" style="width: 30%; margin: 0px; padding: 8px 4px 0 0; font-size: 12px; font-weight:600;">
{{ trans('general.address') }}
@ -148,13 +173,17 @@
{{ $transfer->income_account->bank_address }}
</td>
</tr>
@stack('to_account_address_input_end')
</table>
@endif
</td>
</tr>
@stack('to_account_id_end')
</tbody>
</table>
@stack('to_account_end')
@stack('details_start')
<table style="margin-top:15px;">
<tr>
<td style="padding:0 0 15px 0;">
@ -166,6 +195,7 @@
</table>
<table class="border-bottom-1" style="padding-bottom:15px;">
@stack('transferred_at_input_start')
<tr>
<td valign="top" style="width: 30%; margin: 0px; padding: 8px 4px 0 0; font-size: 12px; font-weight:600;">
{{ trans('general.date') }}
@ -175,7 +205,9 @@
<x-date date="{{ $transfer->expense_transaction->paid_at}}" />
</td>
</tr>
@stack('transferred_at_input_end')
@stack('payment_method_input_start')
<tr>
<td valign="top" style="width: 30%; margin: 0px; padding: 8px 4px 0 0; font-size: 12px; font-weight:600;">
{{ trans_choice('general.payment_methods', 1) }}
@ -189,7 +221,9 @@
@endif
</td>
</tr>
@stack('payment_method_input_end')
@stack('reference_input_start')
<tr>
<td valign="top" style="width: 30%; margin: 0px; padding: 8px 4px 0 0; font-size: 12px; font-weight:600;">
{{ trans('general.reference') }}
@ -199,7 +233,9 @@
{{ $transfer->expense_transaction->reference }}
</td>
</tr>
@stack('reference_input_end')
@stack('description_input_start')
<tr>
<td valign="top" style="width: 30%; margin: 0px; padding: 8px 4px 0 0; font-size: 12px; font-weight:600;">
{{ trans('general.description') }}
@ -209,16 +245,21 @@
{{ $transfer->expense_transaction->description }}
</td>
</tr>
@stack('description_input_end')
<tr>
<td></td>
</tr>
</table>
@stack('details_end')
@stack('amount_start')
<table style="text-align: right; margin-top:55px;">
@stack('amount_table_start')
<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>
@stack('amount_input_start')
<tr>
<td valign="center" style="width: 80%; padding:0; font-size: 14px; font-weight:600; color:#ffffff;">
{{ trans('general.amount') }}
@ -228,8 +269,11 @@
<x-money :amount="$transfer->expense_transaction->amount" :currency="$transfer->expense_transaction->currency_code" convert />
</td>
</tr>
@stack('amount_input_end')
</table>
</td>
</tr>
@stack('amount_table_end')
</table>
@stack('amount_end')
</div>