@extends('layouts.admin') @section('content')

Viewing Member {{ $user->preferred_name }}

@can('is_super_user')

Discord Name:

{{ $user->discord }}

Display Name:

{{ $user->display_name }}

Real Name

{{ $user->real_name }}

Discord Username

{{ $user->discord_username }}

Steam Hex

{{ $user->steam_hex }}

Discord ID

{{ $user->id }}

Steam ID

{{ $user->steam_id }}

Birthday

{{ $user->birthday->format('M d, Y') }}

Age

{{ $user->age }}

@endcan

{{ $user->preferred_name }}

{{ $user->community_rank }}

  • User status @if (!in_array($user->id, config('cad.owner_ids')) || in_array(auth()->user()->id, config('cad.owner_ids'))) @can('user_edit_user_status') @endcan @endif

    @php switch ($user->account_status) { case '1': $text_color = 'text-orange-500'; break; case '2': $text_color = 'text-yellow-500'; break; case '3': $text_color = 'text-green-500'; break; case '4': $text_color = 'text-red-500'; break; case '5': $text_color = 'text-red-500'; break; case '6': $text_color = 'text-red-500'; break; default: $text_color = 'text-red-500'; break; } @endphp

    {{ $user->status_name }}

  • Member since

    @if (!is_null($user->member_join_date)) {{ $user->member_join_date->format('M d, Y') }} @else Not a member @endif

  • Account since

    {{ $user->created_at->format('M d, Y') }}

  • Last login

    {{ $user->last_login->format('M d, Y H:i') }}

  • Roles @if (!get_setting('use_discord_roles')) @can('user_manage_user_roles') @if ($user->account_status == 3) @endif @endcan @endif

    @if (get_setting('use_discord_roles'))

    Roles are managed by Discord roles.

    @else @foreach ($user->roles as $role)

    {{ $role->title }}

    @endforeach @endif
  • Protected User
    Makes it so only super users and owners can view this user. Can only be changed by an owner.
    @if ($user->is_protected_user) Yes @else No @endif

    @can('is_owner_user') @if ($user->account_status == 3)
    @csrf @method('PUT')
    @endif @endcan
  • Super User
    Makes this user bypass permissions and roles and can access everything by default. Can only be changed by an owner.
    @if ($user->is_super_user) Yes @else No @endif

    @can('is_owner_user') @if ($user->account_status == 3)
    @csrf @method('PUT')
    @endif @endcan
  • Owner
    @if (in_array($user->id, config('cad.owner_ids'))) Yes @else No @endif

    This is set in the cad config file. See docs for help.

Quick Admin Options

Notes (Last 5)

@can('user_manage_user_notes') @endcan
@foreach ($notes as $note)

From: {{ $note->giver_user->discord }} {{ $note->created_at->format('m/d/Y H:i') }}

@can('user_manage_user_notes')
@csrf @method('DELETE')
@endcan

{{ $note->note }}

@endforeach

Accommodations (Last 5)

@can('user_manage_user_accommodations') @endcan
@foreach ($accommodations as $accommodation)

From: {{ $accommodation->giver_user->discord }} {{ $accommodation->created_at->format('m/d/Y H:i') }}

@can('user_manage_user_accommodations')
@csrf @method('DELETE')
@endcan

{{ $accommodation->accommodation }}

@endforeach

Disciplinary Actions (Last 5)

@can('user_manage_user_disciplinary_actions') @endcan
@foreach ($das as $da)

From: {{ $da->giver_user->discord }} {{ $da->created_at->format('m/d/Y H:i') }} | Level: {{ $da_types[$da->disciplinary_action_type_id] }}

@can('user_manage_user_disciplinary_actions')
@csrf @method('DELETE')
@endcan

{{ $da->disciplinary_action }}

@endforeach

User History (Last 5)

Shows the last 5 actions.

@foreach ($histories as $history)

Actioned by: {{ $history->user->preferred_name }} {{ $history->created_at->format('m/d/Y H:i:s') }}

{{ $history->description }}

@endforeach
@can('user_manage_user_notes')

Add New Note

@csrf
@endcan @can('user_manage_user_accommodations')

Add New Accommodation

@csrf
@endcan @can('user_manage_user_disciplinary_actions')

Add New Disciplinary Actions

@csrf
@endcan

Edit Community Rank

@csrf @method('put')
@can('user_manage_user_roles')

Edit Roles

@csrf @method('PUT')
@foreach ($roles as $role) @if ($user->roles->contains($role->id)) @else @endif @endforeach
@endcan
@endsection