TraceDash/resources/views/viewer/index.blade.php

45 lines
2.2 KiB
PHP

<x-app-layout>
<x-slot name="header">
<h2 class="text-xl font-semibold leading-tight text-gray-800 dark:text-gray-200">
{{ __('Viewer Details') }}
</h2>
</x-slot>
<div class="max-w-full mx-auto sm:px-6 lg:px-8">
<div class="overflow-hidden bg-white shadow-sm dark:bg-gray-800 sm:rounded-lg">
<div class="p-6 text-gray-900 dark:text-gray-100">
<h2 class="text-xl font-semibold leading-tight text-gray-800 dark:text-gray-200">
Viewer details for: {{ $username }} [{{ $id }}]
</h2>
@if (!empty($messages))
<p class="mt-6">Seen under the following usernames:</p>
<ul class="mt-2 list-disc list-inside">
@foreach ($messages as $username => $message)
<li class="mt-1">
{{ $username }} <span class="text-gray-400">&mdash; Last seen with this username: {{ date('Y-m-d', strtotime($message->timestamp)) }}</span>
</li>
@endforeach
</ul>
@endif
@if ($actions->isNotEmpty())
<h2 class="mt-6 text-xl font-semibold leading-tight text-gray-800 dark:text-gray-200">Moderator actions</h2>
@include('components.moderator-actions', ['actions' => $actions, 'showChannel' => true])
@endif
@if ($channels->isNotEmpty())
<h2 class="mt-6 text-xl font-semibold leading-tight text-gray-800 dark:text-gray-200"><i class="fab fa-twitch fa-1x"></i> Twitch viewer cards in these channels:</h2>
<ul class="mt-2 list-disc list-inside">
@foreach ($channels as $channel)
<li class="mt-1">
<a href="https://www.twitch.tv/popout/{{ $channel->username() }}/viewercard/{{ $username }}" target="_blank" class="text-amber-400">{{ $channel->username() }}</a>
</li>
@endforeach
</ul>
@endif
</div>
</div>
</div>
</x-app-layout>