BossBey File Manager
PHP:
8.2.30
OS:
Linux
User:
imagivibe
Root
/
home
/
imagivibe
/
public_html
/
app.imagivibe.com
/
resources
/
views
/
default
/
components
📤 Upload
📝 New File
📁 New Folder
Close
Editing: team-credit-list-partial.blade.php
<table class="mb-4 w-full table-auto border-collapse border"> <thead> <tr class="bg-foreground/10"> <th class="border p-2 text-start">{{ __('Model') }}</th> <th class="border p-2 text-end">{{ __('Credits') }}</th> </tr> </thead> <tbody> @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 <tr> <td class="flex justify-between border-b p-2"> {{ $groupName }} <x-info-tooltip class:content="max-h-48 overflow-y-auto" :drivers="$drivers" :anchor="$tooltip_anchor" /> </td> <td class="border p-2 text-end"> {{ $isUnlimited ? __('Unlimited') : $credits }} </td> </tr> @endforeach </tbody> </table>
Save
Cancel