@if($filtreVue === 'commerciaux')

Classement des commerciaux

$month === '0', 'min-w-full' => $month !== '0', 'text-xs', 'lg:text-sm', 'text-center', 'rounded-md', 'table-fixed', 'divide-gray-200', 'rounded-lg','sortable' ])> @if ($month === '0') @endif @if ($month != '0') @endif @foreach ($users as $user) @if ($month === '0') @for ($i = 1; $i <= 12; $i++) @endfor @endif @if ($month != '0') @for ($i = 0; $i <= 4; $i++) @endfor @endif @endforeach @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 @endfor @endif @if ($month != '0') @for ($i = 0; $i <= 4; $i++) @endfor @endif @endif @if($filtreVue === 'agence')

Classement des agences

$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') !!}
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') !!}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') !!} $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) }}% {{ 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 {{ number_format($user->caParSemaine[$i] ?? 0, 0, ',', ' ') }} € {{ $user->objectif_annuel }} {{ number_format($user->ca_annuel, 0, ',', ' ') }} €
Rang: {{ $user->rang_ca_annuel }}
TOTAL
{{ number_format($caMois, 0, ',', ' ') }} €
{{ $pourcentage }}%
{{ number_format($this->totalRow['caParSemaine'][$i], 0, ',', ' ') }} € {{ number_format($this->totalRow['objectif_annuel'], 0, ',', ' ') }} € {{ number_format($this->totalRow['ca_annuel'], 0, ',', ' ') }} €
$month === '0', 'min-w-full' => $month !== '0', 'text-xs','lg:text-sm', 'text-center', 'rounded-md', 'table-fixed', 'divide-gray-200' ])> @if ($month === '0') @endif @if ($month != '0') @endif @foreach($groupes as $groupe) @if ($month === '0') @for ($i = 1; $i <= 12; $i++) @endfor @else @for ($i = 1; $i <= 5; $i++) @endfor @endif @endforeach
$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') !!}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') !!}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') !!}OBJECTIF ANNUEL {!! $this->sortiIcon('objectif_annuel') !!} CA TOTAL {!! $this->sortiIcon('ca_annuel') !!}
{{ $groupe->nom }}
#{{ $groupe->rang_ca_annuel }}
{{ number_format($groupe->objectif_ca, 0, ',', ' ') }} € {{ 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 }}% {{ number_format($groupe->caParSemaine[$i] ?? 0, 0, ',', ' ') }} € {{ number_format($groupe->objectif_annuel, 0, ',', ' ') }} € {{ number_format($groupe->ca_annuel, 0, ',', ' ') }} €
Rang: {{ $groupe->rang_ca_annuel }}
@endif