@extends('layouts.app') @section('content')

{{__('texte.loans_arr.show.show_loan')}}

{{__('texte.loans_arr.show.type')}}: {{ $loan->loan_type->title }}
{{$loan->loan_type->documentable_type==2 ? __('texte.loans_arr.show.contragent') : __('texte.loans_arr.show.supplier')}}: {{ $loan->contragent->company_name ?? $loan->contragent->user->name }}
{{__('texte.loans_arr.show.status')}}: {{ $loan->status==1 ? __('texte.loans_arr.show.open') : __('texte.loans_arr.show.closed')}}
{{__('texte.loans_arr.show.date')}}: {{ date('d.m.Y',strtotime($loan->date))}}
@if($loan->parent_id==0)
{{__('texte.loans_arr.show.payment_date')}}: {{ date('d.m.Y',strtotime($loan->payment_date))}}
@endif
{{__('texte.loans_arr.show.amount')}}: {{ number_format($loan->amount,2,'.',',')}}
@if($loan->parent_id==0)
{{__('texte.loans_arr.show.remaining_amount')}}: {{ number_format($loan->amount-$loan->paid,2,'.',',')}}
@endif @if($loan->account_id>0)
{{__('texte.loans_arr.show.bank')}}: {{ $loan->account->bank->name }}
{{__('texte.loans_arr.show.account')}}: {{ $loan->account->number }}
{{__('texte.loans_arr.show.currency')}}: {{__('texte.currencies_arr')[$loan->account->currency]}}
@endif @if($loan->note!=null && $loan->note!='')
{{__('texte.loans_arr.show.note')}}: {{$loan->note}}
@endif
@endsection