@php $totalRemunerationNette = 0; $totalITS = 0; $totalVPS = 0; $totalCNSS = 0; $totalCNSSOuvriere = 0; $totalCNSSPatronale = 0; $index = 1; @endphp @foreach ($data as $emp) @php $totalRemunerationNette += $emp->net_salary ?? 0; $totalITS += $emp->its ?? 0; $totalVPS += $emp->vps ?? 0; $totalCNSS += $emp->cnss ?? 0; $totalCNSSOuvriere += $emp->cnss_ouvriere ?? 0; $totalCNSSPatronale += $emp->cnss_patronale ?? 0; @endphp @endforeach
FICHIER CNSS
{{ $date }}
NOM ET PRENOMS QUALIFICATIONS DATE D'EMBAUCHAGE NUMERO IFU REMUNERATION BRUTE CHANTIERS CHANTIERS LOGEMENT SALAIRE DE BASE REMUNERATION NETTE ITS VPS CNSS CNSS/OUVRIERE CNSS/PART PATRONNALE OBSERVATIONS
{{ $index++ }} {{ $emp->fullname }} {{ $emp->post_title }} {{ $emp->date_in_service }} {{ $emp->ifu }} {{ number_format($emp->brut_salary ?? 0, 0, ',', ' ') }} {{ $emp->construction_site }} {{ $emp->shift }} {{ $emp->housing }} {{ number_format($emp->base_salary ?? 0, 0, ',', ' ') }} {{ number_format($emp->net_salary ?? 0, 0, ',', ' ') }} {{ number_format($emp->its ?? 0, 0, ',', ' ') }} {{ number_format($emp->vps ?? 0, 0, ',', ' ') }} {{ number_format($emp->cnss ?? 0, 0, ',', ' ') }} {{ number_format($emp->cnss_ouvriere ?? 0, 0, ',', ' ') }} {{ number_format($emp->cnss_patronale ?? 0, 0, ',', ' ') }} {{ $emp->observation }}
TOTAL : {{ number_format($totalRemunerationNette, 0, ',', ' ') }} {{ number_format($totalITS, 0, ',', ' ') }} {{ number_format($totalVPS, 0, ',', ' ') }} {{ number_format($totalCNSS, 0, ',', ' ') }} {{ number_format($totalCNSSOuvriere, 0, ',', ' ') }} {{ number_format($totalCNSSPatronale, 0, ',', ' ') }}