%PDF- %PDF-
| Direktori : /www/loslex/test/storage/framework/views/ |
| Current File : /www/loslex/test/storage/framework/views/b9d3530bbfd0b8b5245f4a5c678b243d.php |
<?php
$statuses = array();
if ($oneuser->trashed()) $statuses[] = __('Deleted');
if (!$oneuser->is_active) $statuses[] = __('Banned');
?>
<div class="<?php echo \Illuminate\Support\Arr::toCssClasses(['border border-gray-400 p-2 rounded-md w-full', 'bg-red-50 dark:bg-red-950' => $statuses]); ?>">
<div class="text-lg">
<button class="text-left" wire:click="$dispatch('openModal', { component: 'user-modal', arguments: { userid: <?php echo e($oneuser->id); ?>, mode: 'show' }})">
<span class="font-semibold underline underline-offset-4"><?php echo $this->highlight($oneuser->displayname); ?></span>
<?php if($statuses): ?><span class="uppercase text-xs font-semibold"> - <?php echo implode(',', $statuses); ?></span><?php endif; ?>
</button>
<?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('edit', $oneuser)): ?>
<div class="px-2 float-right">
<button wire:click="$dispatch('openModal', { component: 'user-modal', arguments: { userid: <?php echo e($oneuser->id); ?>, mode: 'edit' }})"><span class="mx-1 text-sm fa-solid fa-pen"></span></button>
<?php if($oneuser->trashed()): ?>
<?php else: ?>
<button class="mx-1" wire:click="$dispatch('openModal', {component: 'user-modal', arguments: {userid: <?php echo e($oneuser->id); ?>, mode: 'merge'}})"><span title="<?php echo e(__('Merge into another account')); ?>" class="fa-solid fa-people-arrows"></span></button>
<?php endif; ?>
</div>
<?php endif; ?>
</div>
<div>
<span class="dark:text-gray-400 font-semibold fa-solid fa-fingerprint" title="<?php echo e(__('LOS Alias')); ?>"></span>
<span class="text-sm whitespace-nowrap"><?php echo $this->highlight($oneuser->username); ?></span>
</div>
<div><span class="fa-solid fa-at <?php if($oneuser->email_verified_at): ?> text-green-500 <?php else: ?> text-red-500 dark:text-red-700 <?php endif; ?>" title="<?php echo e($oneuser->email_verified_at); ?>"></span> <?php echo $this->highlight($oneuser->email); ?></div>
<div class="flex flex-wrap gap-3">
<?php if($oneuser->phone_number): ?><div class="whitespace-nowrap"><span class="dark:text-gray-400 fa-solid fa-phone"></span> <?php echo e($oneuser->phone_number_formatted()); ?></div><?php endif; ?>
<div><span class="dark:text-gray-400 font-semibold fa-solid fa-gun" title="<?php echo e(__('Licence no.')); ?>"></span> <?php echo $this->highlight($oneuser->licence_number) ?? "---"; ?></div>
<div><span class="dark:text-gray-400 font-semibold fa-solid fa-clipboard-user" title="<?php echo e(__('Contest registrations count')); ?>"></span> <?php echo e($oneuser->registrations->count()); ?></div>
<?php if($oneuser->organizer_groups->count()): ?><div><span class="dark:text-gray-400 font-semibold fa-solid fa-people-group" title="<?php echo e(__('Organizers')); ?>"></span> <?php echo e($oneuser->organizer_groups->count()); ?></div><?php endif; ?>
</div>
</div>
<?php /**PATH /www/loslex/test/resources/views/livewire/components/user-row.blade.php ENDPATH**/ ?>