| $month === '0', 'bg-primary px-4 py-2 text-white text-center font-semibold cursor-pointer rounded-tl-lg' ]) wire:click="sortBy('ca_annuel')" >COMMERCIAUX {!! $this->sortiIcon('ca_annuel') !!} | $month === '0',
'bg-primary px-4 py-2 text-white text-center font-semibold cursor-pointer'
]) wire:click="sortBy('ratio')" >VENTES NOUVEAU CLIENT {!! $this->sortiIcon('ratio') !!} |
@if ($month === '0')
JAN {!! $this->sortiIcon('M1') !!} | FEV {!! $this->sortiIcon('M2') !!} | MAR {!! $this->sortiIcon('M3') !!} | AVR {!! $this->sortiIcon('M4') !!} | MAI {!! $this->sortiIcon('M5') !!} | JUIN {!! $this->sortiIcon('M6') !!} | JUIL {!! $this->sortiIcon('M7') !!} | AOÛT {!! $this->sortiIcon('M8') !!} | SEP {!! $this->sortiIcon('M9') !!} | OCT {!! $this->sortiIcon('M10') !!} | NOV {!! $this->sortiIcon('M11') !!} | DEC {!! $this->sortiIcon('M12') !!} | @endif @if ($month != '0')S1 {!! $this->sortiIcon('S1_ca') !!} | S2 {!! $this->sortiIcon('S2_ca') !!} | S3 {!! $this->sortiIcon('S3_ca') !!} | S4 {!! $this->sortiIcon('S4_ca') !!} | S5 {!! $this->sortiIcon('S5_ca') !!} | @endif $month === '0',
'bg-primary px-4 py-2 text-white text-center font-semibold cursor-pointer'
]) wire:click="sortBy('objectif_annuel')">Objectif ANNUEL {!! $this->sortiIcon('objectif_annuel') !!} |
$month === '0', 'bg-primary px-4 py-2 text-white text-center font-semibold rounded-tr-lg cursor-pointer' ]) wire:click="sortBy('ca_annuel')" >CA TOTAL {!! $this->sortiIcon('ca_annuel') !!} | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| $user->active == 0,
'text-gray-800' => $user->active != 0,
])>
@if($isAdmin || $isDirecteur)
{{ $user->display_name }}
@else
{{ $user->prenom }}
@endif
#{{ $user->rang_ca_annuel }} |
{{ number_format($user->ratio * 100, 0) }}% | @if ($month === '0') @for ($i = 1; $i <= 12; $i++){{ number_format($user->ca_month[$i] ?? 0 , 0, ',', ' ') }} € | @if($user->objectif_ca != 0) {{ round(($user->ca_month[$i] / $user->objectif_ca) * 100) ?? 0}}% @endif @if ($user->objectif_ca === 0) 0% @endif | @endfor @endif @if ($month != '0') @for ($i = 0; $i <= 4; $i++){{ number_format($user->caParSemaine[$i] ?? 0, 0, ',', ' ') }} € | @endfor @endif{{ $user->objectif_annuel }} |
{{ number_format($user->ca_annuel, 0, ',', ' ') }} €
Rang: {{ $user->rang_ca_annuel }}
|
||||||||||||||||||||||||||
| TOTAL | @if ($month === '0') @for ($i = 1; $i <= 12; $i++) @php $caMois = $this->totalRow['ca_month'][$i] ?? 0; $pourcentage = $this->totalRow['objectif_ca'] != 0 ? round(($caMois / $this->totalRow['objectif_ca']) * 100) : 0; @endphp |
{{ number_format($caMois, 0, ',', ' ') }} €
{{ $pourcentage }}%
|
@endfor
@endif
@if ($month != '0')
@for ($i = 0; $i <= 4; $i++)
{{ number_format($this->totalRow['caParSemaine'][$i], 0, ',', ' ') }} € | @endfor @endif{{ number_format($this->totalRow['objectif_annuel'], 0, ',', ' ') }} € | {{ number_format($this->totalRow['ca_annuel'], 0, ',', ' ') }} € | |||||||||||||||||||||||||||
| $month === '0', 'bg-primary px-4 py-2 text-white text-center font-semibold cursor-pointer' ]) wire:click="sortBy('nom')">AGENCE {!! $this->sortiIcon('ca_annuel') !!} | $month === '0', 'bg-primary px-4 py-2 text-white text-center font-semibold cursor-pointer' ]) wire:click="sortBy('objectif_ca')">OBJECTIF MENSUEL {!! $this->sortiIcon('ca_objectif') !!} | @if ($month === '0')JAN {!! $this->sortiIcon('M1') !!} | FEV {!! $this->sortiIcon('M2') !!} | MAR {!! $this->sortiIcon('M3') !!} | AVR {!! $this->sortiIcon('M4') !!} | MAI {!! $this->sortiIcon('M5') !!} | JUIN {!! $this->sortiIcon('M6') !!} | JUIL {!! $this->sortiIcon('M7') !!} | AOÛT {!! $this->sortiIcon('M8') !!} | SEP {!! $this->sortiIcon('M9') !!} | OCT {!! $this->sortiIcon('M10') !!} | NOV {!! $this->sortiIcon('M11') !!} | DEC {!! $this->sortiIcon('M12') !!} | @endif @if ($month != '0')S1 {!! $this->sortiIcon('S1_ca') !!} | S2 {!! $this->sortiIcon('S2_ca') !!} | S3 {!! $this->sortiIcon('S3_ca') !!} | S4 {!! $this->sortiIcon('S4_ca') !!} | S5 {!! $this->sortiIcon('S5_ca') !!} | @endifOBJECTIF ANNUEL {!! $this->sortiIcon('objectif_annuel') !!} | CA TOTAL {!! $this->sortiIcon('ca_annuel') !!} | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
{{ $groupe->nom }}
#{{ $groupe->rang_ca_annuel }} |
{{ number_format($groupe->objectif_ca, 0, ',', ' ') }} € | @if ($month === '0') @for ($i = 1; $i <= 12; $i++){{ number_format($groupe->ca_month[$i] ?? 0, 0, ',', ' ') }} € | @php $pourcentage = $groupe->objectif_ca != 0 ? round(($groupe->ca_month[$i] / $groupe->objectif_ca) * 100) : 0; @endphp {{ $pourcentage }}% | @endfor @else @for ($i = 1; $i <= 5; $i++){{ number_format($groupe->caParSemaine[$i] ?? 0, 0, ',', ' ') }} € | @endfor @endif{{ number_format($groupe->objectif_annuel, 0, ',', ' ') }} € |
{{ number_format($groupe->ca_annuel, 0, ',', ' ') }} €
Rang: {{ $groupe->rang_ca_annuel }}
|
||||||||||||||||||||||||||