{{--@php--}}
{{-- if($document->payment_condition_id === '01') {--}}
{{-- $paymentCondition = \App\Models\Tenant\PaymentMethodType::where('id', '10')->first();--}}
{{-- }else{--}}
{{-- $paymentCondition = \App\Models\Tenant\PaymentMethodType::where('id', '09')->first();--}}
{{-- }--}}
{{--@endphp--}}
{{-- Condicion de pago Crédito / Contado --}}
{{--
--}}
{{-- --}}
{{-- --}}
{{-- CONDICIÓN DE PAGO: {{ $paymentCondition->description }} --}}
{{-- | --}}
{{--
--}}
{{--
--}}
@if($document->payment_method_type_id)
MÉTODO DE PAGO: {{ $document->payment_method_type->description }}
|
@endif
@if ($document->payment_condition_id === '01')
@if($document->payments->count())
PAGOS: |
@php $payment = 0; @endphp
@foreach($document->payments as $row)
• {{ $row->payment_method_type->description }} - {{ $row->reference ? $row->reference.' - ':'' }} {{ $document->currency_type->symbol }} {{ $row->payment + $row->change }} |
@endforeach
@endif
@else
@foreach($document->fee as $key => $quote)
• {{ (empty($quote->getStringPaymentMethodType()) ? 'Cuota #'.( $key + 1) : $quote->getStringPaymentMethodType()) }} /
Fecha Vencimiento: {{ (new \App\CoreFacturalo\HelperFacturalo())->date_of_issue_format($quote->date) }} / Monto: {{ $quote->currency_type->symbol }} {{ $quote->amount }} |
@endforeach
@endif