transfer second and third template added stack.

This commit is contained in:
Cüneyt Şentürk 2022-07-22 19:40:30 +03:00
parent c04b73f388
commit 1bfd245d77
2 changed files with 118 additions and 2 deletions

View File

@ -1,4 +1,5 @@
<div class="print-template"> <div class="print-template">
@stack('details_start')
<table style="width: 100%;"> <table style="width: 100%;">
<tr> <tr>
<td style="padding:0 0 15px 0;"> <td style="padding:0 0 15px 0;">
@ -10,6 +11,7 @@
</table> </table>
<table> <table>
@stack('transferred_at_input_start')
<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;"> <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') }} {{ trans('general.date') }}
@ -19,7 +21,9 @@
<x-date date="{{ $transfer->expense_transaction->paid_at}}" /> <x-date date="{{ $transfer->expense_transaction->paid_at}}" />
</td> </td>
</tr> </tr>
@stack('transferred_at_input_end')
@stack('payment_method_input_start')
<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;"> <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) }} {{ trans_choice('general.payment_methods', 1) }}
@ -33,7 +37,9 @@
@endif @endif
</td> </td>
</tr> </tr>
@stack('payment_method_input_end')
@stack('reference_input_start')
<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;"> <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') }} {{ trans('general.reference') }}
@ -43,7 +49,9 @@
{{ $transfer->expense_transaction->reference }} {{ $transfer->expense_transaction->reference }}
</td> </td>
</tr> </tr>
@stack('reference_input_end')
@stack('description_input_start')
<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;"> <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') }} {{ trans('general.description') }}
@ -53,10 +61,14 @@
{{ $transfer->expense_transaction->description }} {{ $transfer->expense_transaction->description }}
</td> </td>
</tr> </tr>
@stack('description_input_end')
</table> </table>
@stack('details_end')
@stack('from_account_start')
<table style="width: 100%; margin-top:35px;"> <table style="width: 100%; margin-top:35px;">
<tbody> <tbody>
@stack('from_account_id_start')
<tr> <tr>
<td class="border-bottom-1 border-top-1" style="width: 60%; padding: 15px 0 15px 0;"> <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;"> <h2 class="mb-1" style="font-size: 14px; font-weight:600; margin-bottom: 15px;">
@ -64,6 +76,7 @@
</h2> </h2>
<table> <table>
@stack('from_account_name_input_start')
<tr> <tr>
<td style="width:30%; margin: 0px; padding: 0 0 8px 0; font-size: 12px; font-weight:600;"> <td style="width:30%; margin: 0px; padding: 0 0 8px 0; font-size: 12px; font-weight:600;">
{{ trans('accounts.account_name') }} {{ trans('accounts.account_name') }}
@ -73,9 +86,11 @@
{{ $transfer->expense_account->name }} {{ $transfer->expense_account->name }}
</td> </td>
</tr> </tr>
@stack('from_account_name_input_end')
</table> </table>
<table> <table>
@stack('from_account_number_input_start')
<tr> <tr>
<td style="width:30%; margin: 0px; padding: 0 0 8px 0; font-size: 12px; font-weight:600;"> <td style="width:30%; margin: 0px; padding: 0 0 8px 0; font-size: 12px; font-weight:600;">
{{ trans('accounts.number') }} {{ trans('accounts.number') }}
@ -85,9 +100,12 @@
{{ $transfer->expense_account->number}} {{ $transfer->expense_account->number}}
</td> </td>
</tr> </tr>
@stack('from_account_number_input_end')
</table> </table>
@if (! empty($transfer->expense_account->bank_name))
<table> <table>
@stack('from_account_bank_name_input_start')
<tr> <tr>
<td style="width:30%; margin: 0px; padding: 0 0 8px 0; font-size: 12px; font-weight:600;"> <td style="width:30%; margin: 0px; padding: 0 0 8px 0; font-size: 12px; font-weight:600;">
{{ trans('accounts.bank_name') }} {{ trans('accounts.bank_name') }}
@ -97,9 +115,13 @@
{{ $transfer->expense_account->bank_name }} {{ $transfer->expense_account->bank_name }}
</td> </td>
</tr> </tr>
@stack('from_account_bank_name_input_end')
</table> </table>
@endif
@if (! empty($transfer->expense_account->bank_phone))
<table> <table>
@stack('from_account_phone_input_start')
<tr> <tr>
<td style="width:30%; margin: 0px; padding: 0 0 8px 0; font-size: 12px; font-weight:600;"> <td style="width:30%; margin: 0px; padding: 0 0 8px 0; font-size: 12px; font-weight:600;">
{{ trans('general.phone') }} {{ trans('general.phone') }}
@ -109,9 +131,13 @@
{{ $transfer->expense_account->bank_phone }} {{ $transfer->expense_account->bank_phone }}
</td> </td>
</tr> </tr>
@stack('from_account_phone_input_end')
</table> </table>
@endif
@if (! empty($transfer->expense_account->bank_address))
<table> <table>
@stack('from_account_address_input_start')
<tr> <tr>
<td style="width:30%; margin: 0px; padding: 0 0 8px 0; font-size: 12px; font-weight:600;"> <td style="width:30%; margin: 0px; padding: 0 0 8px 0; font-size: 12px; font-weight:600;">
{{ trans('general.address') }} {{ trans('general.address') }}
@ -121,14 +147,20 @@
{{ $transfer->expense_account->bank_address }} {{ $transfer->expense_account->bank_address }}
</td> </td>
</tr> </tr>
@stack('from_account_address_input_end')
</table> </table>
@endif
</td> </td>
</tr> </tr>
@stack('from_account_id_end')
</tbody> </tbody>
</table> </table>
@stack('from_account_end')
@stack('to_account_start')
<table style="width: 100%; margin-top:15px;"> <table style="width: 100%; margin-top:15px;">
<tbody> <tbody>
@stack('to_account_id_start')
<tr> <tr>
<td style="width: 60%; padding: 0 0 15px 0;"> <td style="width: 60%; padding: 0 0 15px 0;">
<h2 class="mb-1" style="font-size: 14px; font-weight:600; margin-bottom: 15px;"> <h2 class="mb-1" style="font-size: 14px; font-weight:600; margin-bottom: 15px;">
@ -136,6 +168,7 @@
</h2> </h2>
<table> <table>
@stack('to_account_name_input_start')
<tr> <tr>
<td style="width:30%; margin: 0px; padding: 0 0 8px 0; font-size: 12px; font-weight:600;"> <td style="width:30%; margin: 0px; padding: 0 0 8px 0; font-size: 12px; font-weight:600;">
{{ trans('accounts.number') }} {{ trans('accounts.number') }}
@ -145,9 +178,11 @@
{{ $transfer->income_account->name }} {{ $transfer->income_account->name }}
</td> </td>
</tr> </tr>
@stack('to_account_name_input_end')
</table> </table>
<table> <table>
@stack('to_account_number_input_start')
<tr> <tr>
<td style="width:30%; margin: 0px; padding: 0 0 8px 0; font-size: 12px; font-weight:600;"> <td style="width:30%; margin: 0px; padding: 0 0 8px 0; font-size: 12px; font-weight:600;">
{{ trans('accounts.number') }} {{ trans('accounts.number') }}
@ -157,9 +192,12 @@
{{ $transfer->income_account->number }} {{ $transfer->income_account->number }}
</td> </td>
</tr> </tr>
@stack('to_account_number_input_end')
</table> </table>
@if (! empty($transfer->income_account->bank_name))
<table> <table>
@stack('to_account_bank_name_input_start')
<tr> <tr>
<td style="width:30%; margin: 0px; padding: 0 0 8px 0; font-size: 12px; font-weight:600;"> <td style="width:30%; margin: 0px; padding: 0 0 8px 0; font-size: 12px; font-weight:600;">
{{ trans('accounts.bank_name') }} {{ trans('accounts.bank_name') }}
@ -169,9 +207,13 @@
{{ $transfer->income_account->bank_name }} {{ $transfer->income_account->bank_name }}
</td> </td>
</tr> </tr>
@stack('to_account_bank_name_input_end')
</table> </table>
@endif
@if (! empty($transfer->income_account->bank_phone))
<table> <table>
@stack('to_account_phone_input_start')
<tr> <tr>
<td style="width:30%; margin: 0px; padding: 0 0 8px 0; font-size: 12px; font-weight:600;"> <td style="width:30%; margin: 0px; padding: 0 0 8px 0; font-size: 12px; font-weight:600;">
{{ trans('general.phone') }} {{ trans('general.phone') }}
@ -181,9 +223,13 @@
{{ $transfer->income_account->bank_phone }} {{ $transfer->income_account->bank_phone }}
</td> </td>
</tr> </tr>
@stack('to_account_phone_input_end')
</table> </table>
@endif
@if (! empty($transfer->income_account->bank_address))
<table> <table>
@stack('to_account_address_input_start')
<tr> <tr>
<td style="width:30%; margin: 0px; padding: 0 0 8px 0; font-size: 12px; font-weight:600;"> <td style="width:30%; margin: 0px; padding: 0 0 8px 0; font-size: 12px; font-weight:600;">
{{ trans('general.address') }} {{ trans('general.address') }}
@ -193,16 +239,23 @@
{{ $transfer->income_account->bank_address }} {{ $transfer->income_account->bank_address }}
</td> </td>
</tr> </tr>
@stack('to_account_address_input_end')
</table> </table>
@endif
</td> </td>
</tr> </tr>
@stack('to_account_id_end')
</tbody> </tbody>
</table> </table>
@stack('to_account_end')
@stack('amount_start')
<table style="text-align: right;"> <table style="text-align: right;">
@stack('amount_table_start')
<tr> <tr>
<td valign="center" style="width:80%; display:block; float:right;"> <td valign="center" style="width:80%; display:block; float:right;">
<table> <table>
@stack('amount_input_start')
<tr> <tr>
<td valign="center" style="width: 80%; padding:0; font-size: 14px; font-weight:600;"> <td valign="center" style="width: 80%; padding:0; font-size: 14px; font-weight:600;">
{{ trans('general.amount') }} {{ trans('general.amount') }}
@ -212,8 +265,11 @@
<x-money :amount="$transfer->expense_transaction->amount" :currency="$transfer->expense_transaction->currency_code" convert /> <x-money :amount="$transfer->expense_transaction->amount" :currency="$transfer->expense_transaction->currency_code" convert />
</td> </td>
</tr> </tr>
@stack('amount_input_end')
</table> </table>
</td> </td>
</tr> </tr>
@stack('amount_table_end')
</table> </table>
@stack('amount_end')
</div> </div>

View File

@ -3,8 +3,10 @@
<tbody> <tbody>
<tr> <tr>
<td style="width: 50%; padding: 0 15px 15px 0;" valign="top"> <td style="width: 50%; padding: 0 15px 15px 0;" valign="top">
@stack('from_account_start')
<table> <table>
<tbody> <tbody>
@stack('from_account_id_start')
<tr> <tr>
<td style="padding:0;"> <td style="padding:0;">
<h2 class="mb-1" style="font-size: 14px; font-weight:600; margin-bottom: 15px;"> <h2 class="mb-1" style="font-size: 14px; font-weight:600; margin-bottom: 15px;">
@ -12,6 +14,7 @@
</h2> </h2>
<table> <table>
@stack('from_account_name_input_start')
<tr> <tr>
<td style="width:30%; margin: 0px; padding: 0 0 8px 0; font-size: 12px; font-weight:600;"> <td style="width:30%; margin: 0px; padding: 0 0 8px 0; font-size: 12px; font-weight:600;">
{{ trans('accounts.account_name') }} {{ trans('accounts.account_name') }}
@ -21,9 +24,11 @@
{{ $transfer->expense_account->name }} {{ $transfer->expense_account->name }}
</td> </td>
</tr> </tr>
@stack('from_account_name_input_end')
</table> </table>
<table> <table>
@stack('from_account_number_input_start')
<tr> <tr>
<td style="width:30%; margin: 0px; padding: 0 0 8px 0; font-size: 12px; font-weight:600;"> <td style="width:30%; margin: 0px; padding: 0 0 8px 0; font-size: 12px; font-weight:600;">
{{ trans('accounts.number') }} {{ trans('accounts.number') }}
@ -33,9 +38,12 @@
{{ $transfer->expense_account->number}} {{ $transfer->expense_account->number}}
</td> </td>
</tr> </tr>
@stack('from_account_number_input_end')
</table> </table>
@if (! empty($transfer->expense_account->bank_name))
<table> <table>
@stack('from_account_bank_name_input_start')
<tr> <tr>
<td style="width:30%; margin: 0px; padding: 0 0 8px 0; font-size: 12px; font-weight:600;"> <td style="width:30%; margin: 0px; padding: 0 0 8px 0; font-size: 12px; font-weight:600;">
{{ trans('accounts.bank_name') }} {{ trans('accounts.bank_name') }}
@ -45,9 +53,13 @@
{{ $transfer->expense_account->bank_name }} {{ $transfer->expense_account->bank_name }}
</td> </td>
</tr> </tr>
@stack('from_account_bank_name_input_end')
</table> </table>
@endif
@if (! empty($transfer->expense_account->bank_phone))
<table> <table>
@stack('from_account_phone_input_start')
<tr> <tr>
<td style="width:30%; margin: 0px; padding: 0 0 8px 0; font-size: 12px; font-weight:600;"> <td style="width:30%; margin: 0px; padding: 0 0 8px 0; font-size: 12px; font-weight:600;">
{{ trans('general.phone') }} {{ trans('general.phone') }}
@ -57,9 +69,13 @@
{{ $transfer->expense_account->bank_phone }} {{ $transfer->expense_account->bank_phone }}
</td> </td>
</tr> </tr>
@stack('from_account_phone_input_end')
</table> </table>
@endif
@if (! empty($transfer->expense_account->bank_address))
<table> <table>
@stack('from_account_address_input_start')
<tr> <tr>
<td style="width:30%; margin: 0px; padding: 0 0 8px 0; font-size: 12px; font-weight:600;"> <td style="width:30%; margin: 0px; padding: 0 0 8px 0; font-size: 12px; font-weight:600;">
{{ trans('general.address') }} {{ trans('general.address') }}
@ -69,16 +85,22 @@
{{ $transfer->expense_account->bank_address }} {{ $transfer->expense_account->bank_address }}
</td> </td>
</tr> </tr>
@stack('from_account_address_input_end')
</table> </table>
@endif
</td> </td>
</tr> </tr>
@stack('from_account_id_end')
</tbody> </tbody>
</table> </table>
@stack('from_account_end')
</td> </td>
<td style="width: 50%; padding: 0 0 15px 15px;" valign="top"> <td style="width: 50%; padding: 0 0 15px 15px;" valign="top">
@stack('to_account_start')
<table> <table>
<tbody> <tbody>
@stack('to_account_id_start')
<tr> <tr>
<td style="padding:0;"> <td style="padding:0;">
<h2 class="mb-1" style="font-size: 14px; font-weight:600; margin-bottom: 15px;"> <h2 class="mb-1" style="font-size: 14px; font-weight:600; margin-bottom: 15px;">
@ -86,18 +108,21 @@
</h2> </h2>
<table> <table>
@stack('to_account_name_input_start')
<tr> <tr>
<td style="width:30%; margin: 0px; padding: 0 0 8px 0; font-size: 12px; font-weight:600;"> <td style="width:30%; margin: 0px; padding: 0 0 8px 0; font-size: 12px; font-weight:600;">
{{ trans('accounts.number') }} {{ trans('accounts.account_name') }}
</td> </td>
<td style="width:70%; margin: 0px; padding: 0 0 8px 0; font-size: 12px;"> <td style="width:70%; margin: 0px; padding: 0 0 8px 0; font-size: 12px;">
{{ $transfer->income_account->name }} {{ $transfer->income_account->name }}
</td> </td>
</tr> </tr>
@stack('to_account_name_input_end')
</table> </table>
<table> <table>
@stack('to_account_number_input_start')
<tr> <tr>
<td style="width:30%; margin: 0px; padding: 0 0 8px 0; font-size: 12px; font-weight:600;"> <td style="width:30%; margin: 0px; padding: 0 0 8px 0; font-size: 12px; font-weight:600;">
{{ trans('accounts.number') }} {{ trans('accounts.number') }}
@ -107,9 +132,12 @@
{{ $transfer->income_account->number }} {{ $transfer->income_account->number }}
</td> </td>
</tr> </tr>
@stack('to_account_number_input_end')
</table> </table>
@if (! empty($transfer->income_account->bank_name))
<table> <table>
@stack('to_account_bank_name_input_start')
<tr> <tr>
<td style="width:30%; margin: 0px; padding: 0 0 8px 0; font-size: 12px; font-weight:600;"> <td style="width:30%; margin: 0px; padding: 0 0 8px 0; font-size: 12px; font-weight:600;">
{{ trans('accounts.bank_name') }} {{ trans('accounts.bank_name') }}
@ -119,9 +147,13 @@
{{ $transfer->income_account->bank_name }} {{ $transfer->income_account->bank_name }}
</td> </td>
</tr> </tr>
@stack('to_account_bank_name_input_end')
</table> </table>
@endif
@if (! empty($transfer->income_account->bank_phone))
<table> <table>
@stack('to_account_phone_input_start')
<tr> <tr>
<td style="width:30%; margin: 0px; padding: 0 0 8px 0; font-size: 12px; font-weight:600;"> <td style="width:30%; margin: 0px; padding: 0 0 8px 0; font-size: 12px; font-weight:600;">
{{ trans('general.phone') }} {{ trans('general.phone') }}
@ -131,9 +163,13 @@
{{ $transfer->income_account->bank_phone }} {{ $transfer->income_account->bank_phone }}
</td> </td>
</tr> </tr>
@stack('to_account_phone_input_end')
</table> </table>
@endif
@if (! empty($transfer->income_account->bank_address))
<table> <table>
@stack('to_account_address_input_start')
<tr> <tr>
<td style="width:30%; margin: 0px; padding: 0 0 8px 0; font-size: 12px; font-weight:600;"> <td style="width:30%; margin: 0px; padding: 0 0 8px 0; font-size: 12px; font-weight:600;">
{{ trans('general.address') }} {{ trans('general.address') }}
@ -143,16 +179,21 @@
{{ $transfer->income_account->bank_address }} {{ $transfer->income_account->bank_address }}
</td> </td>
</tr> </tr>
@stack('to_account_address_input_end')
</table> </table>
@endif
</td> </td>
</tr> </tr>
@stack('to_account_id_end')
</tbody> </tbody>
</table> </table>
@stack('to_account_end')
</td> </td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
@stack('details_start')
<table style="width: 100%; margin-top:15px;"> <table style="width: 100%; margin-top:15px;">
<tr> <tr>
<td style="padding:0 0 15px 0;"> <td style="padding:0 0 15px 0;">
@ -164,6 +205,7 @@
</table> </table>
<table> <table>
@stack('transferred_at_input_start')
<tr> <tr>
<td valign="top" style="width: 30%; margin: 0px; padding: 0; font-size: 12px; font-weight:600; line-height: 24px;"> <td valign="top" style="width: 30%; margin: 0px; padding: 0; font-size: 12px; font-weight:600; line-height: 24px;">
{{ trans('general.date') }} {{ trans('general.date') }}
@ -173,7 +215,9 @@
<x-date date="{{ $transfer->expense_transaction->paid_at}}" /> <x-date date="{{ $transfer->expense_transaction->paid_at}}" />
</td> </td>
</tr> </tr>
@stack('transferred_at_input_end')
@stack('payment_method_input_start')
<tr> <tr>
<td valign="top" style="width: 30%; margin: 0px; padding: 0; font-size: 12px; font-weight:600; line-height: 24px;"> <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) }} {{ trans_choice('general.payment_methods', 1) }}
@ -187,7 +231,9 @@
@endif @endif
</td> </td>
</tr> </tr>
@stack('payment_method_input_end')
@stack('reference_input_start')
<tr> <tr>
<td valign="top" style="width: 30%; margin: 0px; padding: 0; font-size: 12px; font-weight:600; line-height: 24px;"> <td valign="top" style="width: 30%; margin: 0px; padding: 0; font-size: 12px; font-weight:600; line-height: 24px;">
{{ trans('general.reference') }} {{ trans('general.reference') }}
@ -197,7 +243,9 @@
{{ $transfer->expense_transaction->reference }} {{ $transfer->expense_transaction->reference }}
</td> </td>
</tr> </tr>
@stack('reference_input_end')
@stack('description_input_start')
<tr> <tr>
<td valign="top" style="width: 30%; margin: 0px; padding: 0; font-size: 12px; font-weight:600; line-height: 24px;"> <td valign="top" style="width: 30%; margin: 0px; padding: 0; font-size: 12px; font-weight:600; line-height: 24px;">
{{ trans('general.description') }} {{ trans('general.description') }}
@ -207,12 +255,21 @@
{{ $transfer->expense_transaction->description }} {{ $transfer->expense_transaction->description }}
</td> </td>
</tr> </tr>
</table> @stack('description_input_end')
<tr>
<td></td>
</tr>
</table>
@stack('details_end')
@stack('amount_start')
<table style="text-align: right;"> <table style="text-align: right;">
@stack('amount_table_start')
<tr> <tr>
<td valign="center" style="width:80%; display:block; float:right;"> <td valign="center" style="width:80%; display:block; float:right;">
<table> <table>
@stack('amount_input_start')
<tr> <tr>
<td valign="center" style="width: 80%; padding:0; font-size: 14px; font-weight:600;"> <td valign="center" style="width: 80%; padding:0; font-size: 14px; font-weight:600;">
{{ trans('general.amount') }} {{ trans('general.amount') }}
@ -222,8 +279,11 @@
<x-money :amount="$transfer->expense_transaction->amount" :currency="$transfer->expense_transaction->currency_code" convert /> <x-money :amount="$transfer->expense_transaction->amount" :currency="$transfer->expense_transaction->currency_code" convert />
</td> </td>
</tr> </tr>
@stack('amount_input_end')
</table> </table>
</td> </td>
</tr> </tr>
@stack('amount_table_end')
</table> </table>
@stack('amount_end')
</div> </div>