@extends('layouts.app-sidebar') @section('content')

Global Broadcasts

Send messages to all active streams

{{ $activeStreams }} Active Streams
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif

Send Instant Broadcast

Message will be sent to all {{ $activeStreams }} active streams immediately

@csrf

Max 500 characters

Before sending:

  • This will send to ALL {{ $activeStreams }} active streams instantly
  • Message cannot be recalled once sent
@if($timerBroadcasts->count() > 0)

Timer Broadcasts

Recurring messages sent to all active streams

@foreach($timerBroadcasts as $timer)
@if($timer->is_active) Active @else Inactive @endif Every {{ $timer->interval_minutes }} min | {{ $timer->min_chat_lines }} users @if($timer->admin) by {{ $timer->admin->name }} @endif

{{ $timer->message }}

@if($timer->notes)

{{ $timer->notes }}

@endif
{{ $timer->total_sends }} total sends @if($timer->last_sent_at) Last: {{ $timer->last_sent_at->diffForHumans() }} @endif
@csrf
@csrf @method('DELETE')
@endforeach
@endif

Instant Broadcast History

Previous instant broadcasts sent to streams

@if($broadcasts->count() > 0)
@foreach($broadcasts as $broadcast)
@php $statusColors = [ 'pending' => 'bg-amber-500/10 text-amber-400 border-amber-500/20', 'sending' => 'bg-blue-500/10 text-blue-400 border-blue-500/20', 'completed' => 'bg-emerald-500/10 text-emerald-400 border-emerald-500/20', 'failed' => 'bg-red-500/10 text-red-400 border-red-500/20', ]; @endphp {{ ucfirst($broadcast->status) }} {{ $broadcast->created_at->diffForHumans() }} @if($broadcast->admin) by {{ $broadcast->admin->name }} @endif

{{ $broadcast->message }}

@if($broadcast->notes)

{{ $broadcast->notes }}

@endif
{{ $broadcast->sent_count }} sent @if($broadcast->failed_count > 0) {{ $broadcast->failed_count }} failed @endif {{ $broadcast->target_streams }} targeted
@csrf
@csrf @method('DELETE')
@endforeach
@if($broadcasts->hasPages())
{{ $broadcasts->links() }}
@endif @else

No instant broadcasts yet

Send your first instant broadcast above.

@endif
@endsection