2022-07-21 01:07:55 +03:00
|
|
|
@if ($transaction->isTransferTransaction())
|
2022-07-27 10:48:01 +03:00
|
|
|
@php $transfer = $transaction->transfer; @endphp
|
2022-06-28 19:20:27 +03:00
|
|
|
|
2022-07-27 10:48:01 +03:00
|
|
|
@if ($transfer)
|
|
|
|
@php
|
|
|
|
$from_account = '<span class="font-medium">' . $transfer->expense_account->title . '</span>';
|
|
|
|
$to_account = '<span class="font-medium">' . $transfer->income_account->title . '</span>';
|
2022-09-13 09:38:25 +03:00
|
|
|
$date = '<a href="' . route('transfers.show', $transfer->id) . '" class="text-purple">' . company_date($transaction->paid_at) . '</a>';
|
2022-07-27 10:48:01 +03:00
|
|
|
@endphp
|
|
|
|
@endif
|
|
|
|
|
2022-08-18 10:55:39 +03:00
|
|
|
<x-show.accordion type="transfer" open>
|
|
|
|
<x-slot name="head">
|
|
|
|
<x-show.accordion.head
|
|
|
|
title="{{ trans_choice('general.transfers', 1) }}"
|
|
|
|
/>
|
|
|
|
|
2022-07-27 10:48:01 +03:00
|
|
|
@if ($transfer)
|
2022-10-17 14:41:30 +03:00
|
|
|
<div class="text-black-400 text-sm space-y-3 mt-1">
|
2022-07-27 10:48:01 +03:00
|
|
|
{!! trans('transactions.slider.transfer_headline', ['from_account' => $from_account, 'to_account' => $to_account]) !!}
|
|
|
|
</div>
|
|
|
|
@endif
|
2022-08-18 10:55:39 +03:00
|
|
|
</x-slot>
|
2022-06-28 19:20:27 +03:00
|
|
|
|
2022-08-18 10:55:39 +03:00
|
|
|
<x-slot name="body">
|
2022-07-27 10:48:01 +03:00
|
|
|
@if ($transfer)
|
2022-08-18 10:55:39 +03:00
|
|
|
<div class="my-2">
|
|
|
|
{!! trans('transactions.slider.transfer_desc', ['date' => $date]) !!}
|
|
|
|
</div>
|
|
|
|
@else
|
|
|
|
<div class="mt-2">
|
|
|
|
<div class="alert alert-notify p-4 font-bold rounded-lg bg-orange-100 text-orange-600">
|
|
|
|
<span class="alert-text">
|
|
|
|
<span>{{ trans('messages.warning.missing_transfer') }}</span>
|
|
|
|
</span>
|
|
|
|
</div>
|
2022-07-27 10:48:01 +03:00
|
|
|
</div>
|
|
|
|
@endif
|
2022-08-18 10:55:39 +03:00
|
|
|
</x-slot>
|
|
|
|
</x-show.accordion>
|
2022-06-28 19:20:27 +03:00
|
|
|
@endif
|