@extends('layouts.app-sidebar')
{{--
================================================================================
DAYBOT DASHBOARD - DESIGN SYSTEM
================================================================================
COLOR TOKENS:
- Background: bg-db-body (#05060a)
- Card: bg-db-card (#0f1015) with border-db-border
- Surface: bg-db-surface (#1a1b23)
- Primary: text-db-accent-primary (#10b981) / emerald
- Secondary: text-db-accent-secondary (#06b6d4) / cyan
CARD PATTERNS:
- Standard: bg-db-card border border-db-border rounded-2xl
- Interactive: + hover:border-db-border-hover hover:bg-db-card-hover transition-all
- Elevated: + shadow-xl shadow-black/20
SPACING:
- Section gap: space-y-8
- Card padding: p-5 or p-6
- Grid gap: gap-4 or gap-5
TYPOGRAPHY:
- Page title: text-2xl sm:text-3xl font-bold
- Section title: text-lg font-semibold
- Card title: text-sm font-medium
- Body: text-sm text-db-text-secondary
- Muted: text-xs text-db-text-muted
================================================================================
--}}
@section('content')
{{-- ============================================== --}}
{{-- FIRST TIME SETUP GUIDE MODAL --}}
{{-- ============================================== --}}
@if(!auth()->user()->setup_completed)
{{-- ============================================== --}}
{{-- HERO SECTION - Greeting & Add Channel --}}
{{-- ============================================== --}}
{{ $greeting }}, {{ explode(' ', auth()->user()->name)[0] }}
Here's what's happening with your bot today
Add Channel
Add
{{-- ============================================== --}}
{{-- STATS CARDS - Mobile: Horizontal Scroll, Desktop: Grid --}}
{{-- ============================================== --}}
{{-- Mobile: Horizontal scrolling stats --}}
{{-- Desktop: Grid layout --}}
{{-- Messages Card --}}
{{ number_format($stats['last_5min']) }}
Last 5 minutes
{{-- Commands Card --}}
{{ number_format($stats['last_1min']) }}
Last minute
{{-- Viewers Card --}}
{{ number_format($stats['unique_viewers_1h']) }}
Unique (1 hour)
{{-- Quota Card --}}
{{-- ============================================== --}}
{{-- BOT STATUS BANNER --}}
{{-- ============================================== --}}
@if($tenant->status !== 'running')
{{-- Background Pattern --}}
{{-- Icon --}}
{{-- Content --}}
DayBot is Currently Offline
Your DayBot is not running. By default, DayBot is enabled for all users. If you've turned it off, simply click "Start DayBot" below to activate it and connect to your live streams.
Auto-connects when you go live
All features ready
{{-- Action Button --}}
@else
{{-- Bot is Running - Show Success Banner --}}
{{-- Icon with pulse --}}
{{-- Content --}}
DayBot is Active
Online
@if($tenant->live_chat_id)
Connected to your live stream and monitoring chat
@else
Running and waiting for your stream to go live
@endif
@endif
{{-- ============================================== --}}
{{-- CHANNEL STATUS CARD --}}
{{-- ============================================== --}}
{{-- Channel Header --}}
{{-- Top row: Avatar, Info, and Badges --}}
{{-- Channel Avatar --}}
@if($tenant->status === 'running')
@endif
{{-- Channel Info --}}
{{ $tenant->channel_title }}
{{-- Badges - Horizontal scroll on mobile --}}
{{-- Start/Stop Button - Full width on mobile --}}
@if($tenant->status === 'running')
@else
@endif
{{-- Quick Controls Row --}}
{{-- Mobile: Horizontal scroll, Desktop: Flex wrap --}}
{{-- Inline Scripts for Toggle Functions --}}
{{-- ============================================== --}}
{{-- ALERT SECTION (Waiting/Error) --}}
{{-- ============================================== --}}
@php
$isWaiting = ($tenant->last_error && str_contains($tenant->last_error, 'Waiting')) ||
($tenant->status === 'running' && !$tenant->live_chat_id);
$showAlert = $tenant->last_error || ($tenant->status === 'running' && !$tenant->live_chat_id);
@endphp
@if($showAlert)
@if($isWaiting)
@else
@endif
{{ $isWaiting ? 'Waiting for Stream' : 'Bot Error' }}
{{ $tenant->last_error ?? 'DayBot is running and waiting for you to go live' }}
@if($isWaiting)
Auto-connects when you go live
@endif
@if(!$isWaiting && $tenant->last_error && (str_contains($tenant->last_error, 'OAuth') || str_contains($tenant->last_error, 'forbidden')))
Reconnect
@endif
@endif
{{-- ============================================== --}}
{{-- AI FEATURES SECTION --}}
{{-- ============================================== --}}
AI Features
Beta
{{-- Mobile: Compact 2-column grid, Desktop: 3-column grid --}}
{{-- Memory System --}}
Memory
Remember user context
{{-- XP & Leveling --}}
XP System
Track engagement
{{-- Auto Greetings --}}
Greetings
Welcome viewers
{{-- Auto Reactions --}}
{{-- Announcements --}}
@endforeach
@endif
{{-- ============================================== --}}
{{-- GLOBAL FEATURE TOGGLE SCRIPT --}}
{{-- ============================================== --}}
@endsection