@foreach ($categories as $key => $model) @php $userTeam = (isset($team) && $team->exists) ? $team : auth()?->user()?->myTeam; $drivers = $model->forTeam($userTeam)->list(); $groupName = $drivers->isNotEmpty() ? $drivers->first()->enum()->subLabel() : ''; $isUnlimited = $model->checkIfThereUnlimited(); $credits = $model->totalCredits(); $tooltip_anchor = $loop->index < 4 ? 'top' : 'bottom'; @endphp @if (!$isUnlimited && $credits <= 0) @continue @endif @endforeach
{{ __('Model') }} {{ __('Credits') }}
{{ $groupName }} {{ $isUnlimited ? __('Unlimited') : $credits }}