@extends('layouts.factor-master')
@section('style')
@stop
@section('content')
{{-- @dd($loan) --}}
@if(getWhatsAppType() == 'simpleMessage') 🏦 @else @endif {!!company()['name']!!}
@if(getWhatsAppType() == 'simpleMessage') 📆 @else @endif @lang('layout.Time') :
{{convertDate($loan->Date)}} -
@if(getHourType() == 24)
{{(($loan->hour != null) ? (date_format(date_create($loan->hour), 'H:i')) : null)}}
@else
{{(($loan->hour != null) ? (date_format(date_create($loan->hour), 'h:i')) : null)}}
@endif
@if(getWhatsAppType() == 'simpleMessage') 📝 @else @endif @lang('layout.Account') : ({{$loan->name}})
{{--
@lang('layout.ChequeNumber') : {{$loan->loan_number}}
--}}
@if(getWhatsAppType() == 'simpleMessage') 💰 @else @endif @lang('layout.Amount') : {{myRound($loan->amount)}} @lang('currency.'.($loan->runit))
{{--
@lang('layout.CurrencyAmountInLetter') : {{notowo(round(abs($loan->amount)),'fa')}} @lang('currency.'.($loan->runit))
--}}
@if(getWhatsAppType() == 'simpleMessage') 📋 @else @endif @lang('layout.Description') : {{$loan->description}}
@if(getWhatsAppType() == 'simpleMessage') 🔖 @else @endif @lang('layout.Type') :
@if($loan->type == 'payLoan')
@lang('layout.PayLoan')
@else
@lang('layout.GetLoan')
{{-- PayLoan --}}
{{-- GetLoan --}}
@endif
{{--
@lang('layout.Sender1') : {{$loan->name}}
--}}
{{--
@lang('layout.Receiver') : {{$loan->user_name}}
--}}
{{--
@lang('layout.Whatsapp') : {!!company()['phone']!!}
--}}
{{--
@lang('layout.Currency') : {{$loan->currency}}
--}}
@if(getHesabSabeqa() =='true')
@foreach(getStatement($loan->member_id) as $value )
{{-- @if($value['currency'] == $currencyExch->currency) --}}
@if($value['invoice'] > 0)
@if(getWhatsAppType() == 'simpleMessage') ⚖ @else @endif @lang('layout.Balance') :
@lang('layout.Receivable') - {{myRound($value['invoice'])}}
@lang('currency.'.($value['currency']))
@endif
{{-- @endif --}}
@endforeach
@endif
@if(getHesabSabeqa() =='true')
@foreach(getStatement($loan->member_id) as $value )
@if($value['payment'] > 0)
@if(getWhatsAppType() == 'simpleMessage') ⚖ @else @endif @lang('layout.Balance') :
@lang('layout.Payable') - {{myRound($value['payment'])}}
@lang('currency.'.($value['currency']))
@endif
@endforeach
@endif
@endsection