@extends('layouts.app') @section('content')
@if($tenants->isEmpty())

No channels connected

Connect your YouTube channel to start managing your AI chatbot and engage with your live stream audience

Sign in with Google
@endif @foreach($dashboardData as $data) @php $tenant = $data['tenant']; $stats = $data['stats']; $quota = $data['quota']; $roastingMode = $data['roasting_mode']; @endphp

{{ $tenant->channel_title }}

{{ strtoupper($tenant->status) }}

Channel ID: {{ $tenant->channel_id }}

@if($tenant->last_error) @php $isWaitingForStream = str_contains($tenant->last_error, 'Waiting'); @endphp @if($isWaitingForStream)

Bot Status

{{ $tenant->last_error }}

@if($tenant->last_error_at)

{{ \Carbon\Carbon::parse($tenant->last_error_at)->diffForHumans() }}

@endif

Bot will automatically connect when you start streaming

@else

Bot Error

{{ $tenant->last_error }}

@if($tenant->last_error_at)

{{ \Carbon\Carbon::parse($tenant->last_error_at)->diffForHumans() }}

@endif @if(str_contains($tenant->last_error, 'OAuth') || str_contains($tenant->last_error, 'forbidden') || str_contains($tenant->last_error, 'scopes'))

Fix: You need to reconnect your YouTube channel with proper permissions.

@endif
@if(str_contains($tenant->last_error, 'OAuth') || str_contains($tenant->last_error, 'forbidden') || str_contains($tenant->last_error, 'scopes')) Reconnect with Google @endif
@endif @endif
Messages / 1min
{{ $stats['last_1min'] }}

Last minute

Messages / 5min
{{ $stats['last_5min'] }}

Last 5 minutes

Unique Viewers
{{ $stats['unique_viewers_1h'] }}

Last hour

Quota Usage
{{ $quota['per_minute']['limit'] > 0 ? round(($quota['per_minute']['used'] / $quota['per_minute']['limit']) * 100) : 0 }}%

Per minute

@if($tenant->stream_type || $tenant->current_game)
Stream Type: @if($tenant->stream_type) {{ ucfirst($tenant->stream_type) }} @endif
@if($tenant->current_game)

Currently playing {{ $tenant->current_game }}

@endif
@endif
@if($tenant->status === 'running')
@csrf
@else
@csrf
@endif

Roasting Mode

Dark level

Commands Timers
@csrf @method('DELETE')
@endforeach
@endsection