@php $breakings = Cache::remember('breaking.bar', 300, fn() => \App\Models\Breaking::where('active', 1) ->where(function($q) { $now = now(); $q->whereNull('starts_at')->orWhere('starts_at', '<=', $now); }) ->where(function($q) { $now = now(); $q->whereNull('ends_at')->orWhere('ends_at', '>=', $now); }) ->orderBy('priority')->latest()->limit(10)->get() ); @endphp @if($breakings->isNotEmpty())