@extends('layouts.factor-master')
@section('style')
@stop
@section('content')
CASERP
{!!company()['name']!!} @if(getWhatsAppType() == 'simpleMessage') 💲🏦 @else @endif
{{convertDate($loan->Date)}} - {{$loan->Date}} : @lang('layout.Date') @if(getWhatsAppType() == 'simpleMessage') 📆 @else @endif
@lang('layout.LoanDetails') @if(getWhatsAppType() == 'simpleMessage') 💸 @else @endif
--------------------
@lang('layout.LoanNumber') : {{$loan->loan_number}} @if(getWhatsAppType() == 'simpleMessage') ✍️ @else @endif
@lang('layout.Sender1') : {{$user}} @if(getWhatsAppType() == 'simpleMessage') 👤 @else @endif
@lang('layout.Receiver') : {{$loan->name}} @if(getWhatsAppType() == 'simpleMessage') 📥 @else @endif
@lang('layout.Account') : {{$loan->Account}} @if(getWhatsAppType() == 'simpleMessage') 💳 @else @endif
@lang('layout.Amount') : {{ myRound($loan->amount)}} {{ $loan->runit}} @if(getWhatsAppType() == 'simpleMessage') 💲 @else @endif
@lang('layout.Rate') : {{ $loan->payRate}} @if(getWhatsAppType() == 'simpleMessage') 💲 @else @endif
@if(App::isLocale('fa') || App::isLocale('pa'))
@lang('layout.CurrencyAmountInLetter') : {{notowo(abs(round($loan->amount)),'fa')}} @lang('currency.'.($loan->runit)) @if(getWhatsAppType() == 'simpleMessage') 💵 📝 @else @endif
@else
@lang('layout.TotalInLeters') : {{notowo(abs(round($loan->amount)),'en')}} @lang('currency.'.($loan->runit)) @if(getWhatsAppType() == 'simpleMessage') 💵 📝 @else @endif
@endif
@lang('layout.ExchangedAmount') : {{myRound($loan->ExReamount)}} {{$loan->currency}} @if(getWhatsAppType() == 'simpleMessage') 💻 @else @endif
@lang('layout.Description') : {{$loan->description}} @if(getWhatsAppType() == 'simpleMessage') 📋 @else @endif
@lang('layout.CounterParty') : {{$loan->counterparty}} @if(getWhatsAppType() == 'simpleMessage') 👤 @else @endif
@lang('layout.Address') : {!! company()['streetAddress'] !!} @if(getWhatsAppType() == 'simpleMessage') 📍 @else @endif
@lang('layout.Phone') : {!!company()['phone']!!} @if(getWhatsAppType() == 'simpleMessage') 📱 @else @endif
@if(getHesabSabeqa() =='true')
--------------------
@lang('layout.Balance')
--------------------
@foreach(getStatement($loan->member_id) as $value )
@lang('layout.Currency') = {{$value['currency']}} :
@if($value['invoice'] > 0)
@lang('layout.Receivable') = {{myRound($value['invoice'])}}
@else
@lang('layout.Payable') = {{myRound($value['payment'])}}
@endif
@endforeach
@endif
{{--
{{ __('type.' . $loan->type)}} #{{$loan->loan_number}} ( {{$loan->name}} )
--}}
{{--
{{$loan->Account}} ( {{ myRound($loan->amount)}} {{ $loan->runit}} )
@lang('layout.Rate') = {{ $loan->payRate}}
--}}
{{--
@if(App::isLocale('fa') || App::isLocale('pa'))
@lang('layout.TotalInLeters') : {{notowo(abs(round($loan->amount)),'fa')}} @lang('currency.'.($loan->runit))
@else
@lang('layout.TotalInLeters') : {{notowo(abs(round($loan->amount)),'en')}} @lang('currency.'.($loan->runit))
@endif
--}}
{{--
@lang('layout.ExchangedAmount') = {{myRound($loan->ExReamount)}} {{$loan->currency}}
--}}
{{--
@lang('layout.Description') = {{$loan->description}}
--}}
{{-- @if(getHesabSabeqa() =='true')
@lang('layout.Balance')
@foreach(getStatement($loan->member_id) as $value )
( @lang('layout.Currency') = {{$value['currency']}} ) --
@if($value['invoice'] > 0)
( @lang('layout.Receivable') = {{myRound($value['invoice'])}} )
@else
( @lang('layout.Payable') = {{myRound($value['payment'])}} )
@endif
@endforeach
@endif --}}
@endsection