@if ($overviewEntry['entry'])
@if ($overviewEntry['entry']->post_status == 0) @can('accounting-returnedServicesBonds-edit') @lang('general.edit') @endcan @endif

@lang('accounting/show.bond'): {{ $overviewEntry['entry']->type_as_text }}

@lang('accounting/show.bond_number') : {{ $overviewEntry['entry']->bond_number }}

@lang('accounting/show.date') : {{ $overviewEntry['entry']->date }}

@lang('accounting/show.client_tax_number') : {{ $overviewEntry['entry']->debit_type == 'receivable' ? $overviewEntry['entry']->debit_receivable_account->tax_number : '---' }}

@if ($overviewEntry['entry']->debit_type == 'receivable')

@lang('accounting/show.debtor_account') : {{ $overviewEntry['entry']->debit_receivable_account->name }} - @if ($overviewEntry['entry']->debit_type == 'cash') {{ $overviewEntry['entry']->debit_account_id }} @else {{ $overviewEntry['entry']->debit_receivable_id }} @endif

@else

@lang('accounting/show.amount_due_from_account') : {{ $overviewEntry['entry']->debit_account->name }}

@endif
@foreach ($overviewEntry['entry']->credit_items as $item) @endforeach @php $amount_sum = $overviewEntry['entry']->credit_items->sum('amount'); $tax_amount_sum = $overviewEntry['entry']->credit_items->sum('tax_amount'); @endphp
@lang('general.description') @lang('accounting/show.before_tax') @lang('accounting/show.tax') @lang('accounting/show.total_price')
{{ $item->account->name }} {{ dn($item->amount) }} {{ $item->tax_amount ? dn($item->tax_amount) : '---' }} {{ dn($item->amount + $item->tax_amount ?? 0) }}
@lang('general.total') {{ dn($amount_sum) }} {{ dn($tax_amount_sum) }} {{ dn($amount_sum + $tax_amount_sum) }}
@lang('accounting/show.total_before_tax') {{ dn($amount_sum) }}
@php $taxes = App\Models\Accounting\Tax::active()->groupBy('value')->get(); @endphp @foreach ($taxes as $tax_item)
@lang('accounting/show.tax') {{ $tax_item->value }}% {{ dn($overviewEntry['entry']->credit_items->where('tax_id', $tax_item->id)->sum('tax_amount')) }}
@endforeach
@lang('general.total') {{ dn($amount_sum + $tax_amount_sum) }}
@php $svgPath = storage_path( 'app/fotara/images/returned_service_bond_' . $overviewEntry['entry']->id . '_qr.svg', ); @endphp @if (file_exists($svgPath))
{!! file_get_contents($svgPath) !!}
Posted To Fotara
@else
{!! QrCode::size(80)->generate( route('tenant.show-document', ['type' => 'returned-services-bond', 'id' => $overviewEntry['entry']->id]), ) !!}
Misk
@endif

@lang('general.description') :

{{ $overviewEntry['entry']->notice }}

active()->get(); @endphp @if (count($signatures))

@lang('accounting/show.signature')

@foreach ($signatures as $signature)

{{ $signature->label }}

----------------------------

@endforeach
@endif

@lang('accounting/show.attachments')

@foreach ($overviewEntry['entry']->attachments as $attachment)

{{ $attachment->file }}

@csrf
@endforeach
@endif @push('script') @endpush