@extends('master') @section('title') Pagos de cuotas @endsection @section('breadcrumb')
Póliza | Cliente | Fecha inicio - Fecha fin | Ramo | Total | @if ($policyCuote != "")|
---|---|---|---|---|---|
{{ $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, '.', ',')}} |
Cuota | Fecha pago | Prima proyectada | Cuota | Pagado | Saldo pendiente | @foreach ($policyCuote as $cuote) | |
---|---|---|---|---|---|---|---|
# {{ $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 |
|