{{-- ── Gradient Header ──────────────────────────────────── --}}

Routines

Manage your daily, weekly, and monthly routines

New Routine
{{-- ── Stats Row ─────────────────────────────────────────── --}} @php $daily = count($upcomingDailyRoutines); $weekly = count($upcomingWeeklyRoutines); $monthly = count($upcomingMonthlyRoutines); $total = $daily + $weekly + $monthly; @endphp
{{ $daily }}
Daily
{{ $weekly }}
Weekly
{{ $monthly }}
Monthly
{{ $total }}
Active Today
{{-- ── Kanban Columns ────────────────────────────────────── --}}
{{-- Daily --}}
Daily Routines {{ $daily }}
@forelse($upcomingDailyRoutines as $routine)
{{ $routine->title }}
@if($routine->description)
{{ Str::limit(strip_tags($routine->description), 90) }}
@endif
@if($routine->days) {{ implode(', ', array_map('ucfirst', json_decode($routine->days, true) ?? [])) }} @endif @if($routine->start_time && $routine->end_time) {{ \Carbon\Carbon::parse($routine->start_time)->format('g:i A') }} – {{ \Carbon\Carbon::parse($routine->end_time)->format('g:i A') }} @endif
@empty

No daily routines active today

@endforelse
{{-- Weekly --}}
Weekly Routines {{ $weekly }}
@forelse($upcomingWeeklyRoutines as $routine)
{{ $routine->title }}
@if($routine->description)
{{ Str::limit(strip_tags($routine->description), 90) }}
@endif
@if($routine->weeks) Week {{ implode(', ', json_decode($routine->weeks, true) ?? []) }} @endif @if($routine->start_time && $routine->end_time) {{ \Carbon\Carbon::parse($routine->start_time)->format('g:i A') }} – {{ \Carbon\Carbon::parse($routine->end_time)->format('g:i A') }} @endif
@empty

No weekly routines this week

@endforelse
{{-- Monthly --}}
Monthly Routines {{ $monthly }}
@forelse($upcomingMonthlyRoutines as $routine)
{{ $routine->title }}
@if($routine->description)
{{ Str::limit(strip_tags($routine->description), 90) }}
@endif
@if($routine->months) @php $monthNames = array_map(fn($m) => \Carbon\Carbon::createFromDate(null, (int)$m, 1)->format('M'), json_decode($routine->months, true) ?? []); @endphp {{ implode(', ', $monthNames) }} @endif @if($routine->start_time && $routine->end_time) {{ \Carbon\Carbon::parse($routine->start_time)->format('g:i A') }} – {{ \Carbon\Carbon::parse($routine->end_time)->format('g:i A') }} @endif
@empty

No monthly routines this month

@endforelse
{{-- end .cu-kanban --}}