@extends('adminlte::page') @section('title', 'Cron Schedule') @section('content_header') @stop @section('content')

 Cron Schedule — Auto Event Scheduler

America/Los_Angeles  |  {{ $nowLa->format('D, d M Y H:i:s') }} Event List
{{-- Two cron info cards --}}
events:schedule  (dailyAt 04:50 LA) @if($diffH > 0) {{ $diffH }}h {{ $diffM }}m @else {{ $diffM }}m @endif
@php $pct = 100 - round(($diffSec / 86400) * 100); @endphp
Next run: {{ $nextRun->format('D d M, H:i') }} LA
calculate_total_point  (every :00 & :30) {{ $cronDiffM2 }}m {{ $cronDiffSec % 60 }}s
@php $pct2 = 100 - round(($cronDiffSec / 1800) * 100); @endphp
Next run: {{ $nextCronLa->format('H:i') }} LA
{{-- Weekly Schedule --}}
Weekly Auto-Schedule
@foreach($weeklySchedule as $dow => $cfg) @php $isToday = ($dow == $todayDow); $daysUntil = ($dow - $todayDow + 7) % 7; if ($daysUntil == 0 && $nowLa->format('H:i') >= '04:50') $daysUntil = 7; @endphp @endforeach
Day Events Scheduled Duration Status
{{ $cfg['day'] }} @if($isToday) Today @elseif($daysUntil == 0) Today @else in {{ $daysUntil }}d @endif @foreach($cfg['events'] as $ev) {{ $ev }} @endforeach {{ $cfg['duration'] }} @if($daysUntil == 0 && $nowLa->format('H:i') < '04:50') @elseif($isToday && $nowLa->format('H:i') >= '04:50') @else @endif
{{-- Full week view --}}
Full Week Overview
@php $allDays = [ 1 => 'Mon', 2 => 'Tue', 3 => 'Wed', 4 => 'Thu', 5 => 'Fri', 6 => 'Sat', 7 => 'Sun' ]; @endphp @foreach($allDays as $d => $dName) @php $hasCron = isset($weeklySchedule[$d]); $isToday = ($d == $todayDow); $col = $hasCron ? $weeklySchedule[$d]['color'] : 'default'; $bg = $isToday ? '#f39c12' : ($hasCron ? '' : '#ecf0f1'); $textCol = $isToday ? '#fff' : ($hasCron ? '' : '#aaa'); @endphp
{{ $dName }}
@if($hasCron)
@foreach($weeklySchedule[$d]['events'] as $ev)
{{ str_replace('EVENT_', '', $ev) }}
@endforeach
@else
@endif
@endforeach
Monthly Triggers
Trigger days: @foreach($monthlyTriggers as $d) {{ $d }} @endforeach  of each month
@foreach($monthlyEvents as $ev) {{ $ev }} @endforeach
@if($todayDom == 12)
Today (12th): EVENT_TOP_HOL_GUILD scheduled (13th–23rd)
@endif
@if($nextMonthlyDiff == 0) Monthly events ran today! @else Next trigger in {{ $nextMonthlyDiff }} day(s) (day {{ $nextMonthlyDom }}) @endif
Chain Events
@foreach($chainEvents as $chain)
{{ $chain }}
@endforeach
Auto-chained when trigger event ends
Special Monthly
Day 12: EVENT_TOP_HOL_GUILD
Runs 13th–23rd • All servers except last
Day 2, 12, 22: EVENT_TOP_ARENA
Start: next day • End: +10 days • If February: ends last day of Feb
@stop @section('js') @stop