@foreach ($categories as $key => $model) @php $drivers = $plan->exists ? $model->forPlan($plan)->list() : $model->forUser(auth()->user())->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 }}