%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /www/loslex/demo/resources/views/livewire/components/
Upload File :
Create Path :
Current File : /www/loslex/demo/resources/views/livewire/components/user-row.blade.php

@php
    $statuses = array();
    if ($oneuser->trashed()) $statuses[] = __('Deleted');
    if (!$oneuser->is_active) $statuses[] = __('Banned');
@endphp

<div @class(['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: {{ $oneuser->id }}, mode: 'show' }})">
            <span class="font-semibold underline underline-offset-4">{!! $this->highlight($oneuser->displayname) !!}</span>
            @if($statuses)<span class="uppercase text-xs font-semibold"> - {!! implode(',', $statuses) !!}</span>@endif
        </button>
        @can('edit', $oneuser)
            <div class="px-2 float-right">
                <button wire:click="$dispatch('openModal', { component: 'user-modal', arguments: { userid: {{ $oneuser->id }}, mode: 'edit' }})"><span class="mx-1 text-sm fa-solid fa-pen"></span></button>
                @if($oneuser->trashed())
                    {{-- <button class="mx-1" wire:click="undelete" wire:confirm="{{ __('Do you really want to RESTORE this user?') }}"><span title="{{ __('Restore Account') }}" class="fa-solid fa-recycle"></span></button> --}}
                @else
                    {{-- <button class="mx-1" wire:click="delete" wire:confirm="{{ __('Do you really want to DELETE this user?') }}"><span title="{{ __('Delete Account')}}" class="fa-solid fa-trash-can"></span></button> --}}
                    <button class="mx-1" wire:click="$dispatch('openModal', {component: 'user-modal', arguments: {userid: {{ $oneuser->id }}, mode: 'merge'}})"><span title="{{ __('Merge into another account') }}" class="fa-solid fa-people-arrows"></span></button>
                    {{-- <div title="{{ __('') }}" class="fa-solid fa-skull"></div> --}}
                @endif
            </div>
        @endcan
    </div>
    <div>
        <span class="dark:text-gray-400 font-semibold fa-solid fa-fingerprint" title="{{ __('LOS Alias') }}"></span>
        <span class="text-sm whitespace-nowrap">{!! $this->highlight($oneuser->username) !!}</span>
    </div>
    <div><span class="fa-solid fa-at @if($oneuser->email_verified_at) text-green-500 @else text-red-500 dark:text-red-700 @endif" title="{{ $oneuser->email_verified_at }}"></span> {!! $this->highlight($oneuser->email) !!}</div>
    <div class="flex flex-wrap gap-3">
        @if ($oneuser->phone_number)<div class="whitespace-nowrap"><span class="dark:text-gray-400 fa-solid fa-phone"></span> {{ $oneuser->phone_number_formatted() }}</div>@endif
        <div><span class="dark:text-gray-400 font-semibold fa-solid fa-gun" title="{{ __('Licence no.') }}"></span> {!! $this->highlight($oneuser->licence_number) ?? "---" !!}</div>
        <div><span class="dark:text-gray-400 font-semibold fa-solid fa-clipboard-user" title="{{ __('Contest registrations count') }}"></span> {{ $oneuser->registrations->count() }}</div>
        @if ($oneuser->organizer_groups->count())<div><span class="dark:text-gray-400 font-semibold fa-solid fa-people-group" title="{{ __('Organizers') }}"></span> {{ $oneuser->organizer_groups->count() }}</div>@endif
    </div>
</div>

Zerion Mini Shell 1.0