akaunting 3.0 (the last dance)

This commit is contained in:
Burak Civan
2022-06-01 10:15:55 +03:00
parent cead09f6d4
commit d9c0764572
3812 changed files with 126831 additions and 102949 deletions

View File

@ -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>