@foreach($polices as $p) {{-- {{dd($p)}} --}}

{{ $p->libellePolice }}


Numéro Police : {{ $p->numeroPolice }}
Type :{{ $p->typeContrat }}
Date d'éffet : {{ \Carbon\Carbon::parse($p->dateEffet)->format('d/m/Y')}}
Date d'échéance : {{ \Carbon\Carbon::parse($p->dateEcheance)->format('d/m/Y')}}
N° Avenant : {{ $p->numeroAvenant }}
Type d'Avenant : @if ($p->codeTypeAvenant == "AFN") @elseif($p->codeTypeAvenant == "RET") @elseif($p->codeTypeAvenant == "INC") @elseif($p->codeTypeAvenant == "REN") @elseif($p->codeTypeAvenant == "RES") @elseif($p->codeTypeAvenant == "SUS") @elseif($p->codeTypeAvenant == "ANL") @elseif($p->codeTypeAvenant == "RVP") @elseif($p->codeTypeAvenant == "ADL") @elseif($p->codeTypeAvenant == "CHE") @elseif($p->codeTypeAvenant == "REP") @elseif($p->codeTypeAvenant == "CHC") @endif

@if ($currentUser->hasPermission('admin.adherent.index')) Voir Adhérents @endif @if ($currentUser->hasPermission('admin.beneficiaire.index')) Mes Bénéficiaires @endif @if ($currentUser->hasPermission('admin.police.show')) Détails Police @endif

@endforeach
@if (($polices->count() != 0))
{{ count($polices)." Collège(s)" }}


@else

@endif {{-- @if (($polices->count() != 0))
{{ count($polices)." Police(s)" }}
{!! $polices->appends(Request::except(array('page')))->links() !!}
@if (count($polices) == 0)
Aucun élément trouvé.
@endif --}}