@extends('master') @section('title') Pagos de cuotas @endsection @section('breadcrumb') @endsection @section('link') @endsection @section('body')
@if ($policyCuote != "") @endif
Póliza Cliente Fecha inicio - Fecha fin Ramo Total
{{ $policy->policy_id }} {{ getClientName($policy->getClient) }} {{date('d/m/Y', strtotime($policy->start_date))}} - {{date('d/m/Y', strtotime($policy->final_date))}} {{ optional($policy->getInsurance)->name }}
{{optional($policy->getBranch)->name}}
{{$policy->currency}} {{number_format($policy->total, 2, '.', ',')}}
@if ($policyCuote != "")
@foreach ($policyCuote as $cuote) @endforeach
Cuota Fecha pago Prima proyectada Cuota Pagado Saldo pendiente
# {{ $cuote->cuote_number }}
@foreach(statusPayments() as $key => $value) @if($key == $cuote->status) @if($cuote->status == 0) {{$value}} @endif @if($cuote->status == 1) {{$value}} @endif @if($cuote->status == 2) {{$value}} @endif @if($cuote->status == 3) {{$value}} @endif @if($cuote->status == 4) {{$value}} @endif @endif @endforeach
{{ \Carbon\Carbon::parse($cuote->payment_date_assumption)->format('d-m-Y') }} @if($loop->first) {{$policy->currency}} {{number_format($policy->first_quote, 2, '.', ',')}} @else {{$policy->currency}} {{number_format($policy->mensual_quote, 2, '.', ',')}} @endif @php $paymentDetails = json_decode($cuote->getPaymentDetail, true); @endphp @if (!empty($paymentDetails) && isset($paymentDetails[0])) @php $paymentDetail = $paymentDetails[0]; @endphp @if($paymentDetail['payment_status'] == 2) {{$policy->currency}} {{number_format($cuote->total_paid, 2, '.', ',')}} @else {{$policy->currency}} {{number_format($policy->total, 2, '.', ',')}} @endif @endif @if ($cuote->status != 0) {{$policy->currency}} {{number_format($cuote->total_paid, 2, '.', ',')}} @endif @if ($cuote->status != 0) {{$policy->currency}} {{number_format($cuote->total_paid - $policy->total, 2, '.', ',')}} @endif @if($cuote->status == 0 && getPermission( Auth::user()->permissions , 'payment_cuotes_create') ) Generar pre-factura @endif @if($cuote->status == 1 && getPermission( Auth::user()->permissions , 'payment_cuotes_create') ) @endif @if($cuote->status == 2) Aplicado en CIA @endif
@endif
@endsection @if ($policyCuote != "") @foreach ($policyCuote as $cuote) @endforeach @endif @section('script') @endsection