@php $tabs = [ ['key' => 'my-bd', 'label' => 'Moi'], ['key' => 'my-team-bd', 'label' => 'Mon équipe'], ]; @endphp @if($activeBDTab === 'my-bd') @else @endif @if($this->currentPersonIsManager())
@foreach ($tabs as $tab) @endforeach
@endif @php $bandwidth = $this->currentTabBD(); @endphp @if (! $bandwidth)
Aucune donnée disponible
@else @php $pillClasses = [ 'warning' => 'bg-warning-50 text-warning-600 dark:bg-warning-500/10 dark:text-warning-400', 'ok' => 'bg-success-50 text-success-600 dark:bg-success-500/10 dark:text-success-400', 'over' => 'bg-danger-50 text-danger-600 dark:bg-danger-500/10 dark:text-danger-400', ]; $barClasses = [ 'warning' => 'bg-warning-500', 'ok' => 'bg-success-500', 'over' => 'bg-danger-500', ]; $labels = ['warning' => 'Limite', 'ok' => 'Équilibrée', 'over' => 'Surchargée']; $percent = $bandwidth['capacity'] > 0 ? min(100, (int) round($bandwidth['hours'] / $bandwidth['capacity'] * 100)) : 0; @endphp
{{ rtrim(rtrim(number_format($bandwidth['hours'], 1), '0'), '.') }}h / {{ rtrim(rtrim(number_format($bandwidth['capacity'], 1), '0'), '.') }}h cette semaine
{{ $labels[$bandwidth['status']] }} @if($bandwidth['alert_team_bandwith']) @endif
@endif