@extends('layouts.admin') @section('title', 'Period close') @section('content') @php $open = $periods->where('status', 'open')->count(); $hard = $periods->where('status', 'hard_closed')->count(); @endphp
Periods
{{ $periods->total() }}
Open (page)
{{ $open }}
Hard closed (page)
{{ $hard }}
Period Status Checklist Snapshot @forelse($periods as $period) @php $tone = match($period->status) { 'open' => 'success', 'soft_closed' => 'warning', 'hard_closed' => 'muted', default => 'info' }; $done = $period->checklistItems->where('status', 'done')->count(); $total = $period->checklistItems->count(); @endphp
{{ $period->name }}
{{ $period->starts_on->format('d M Y') }} → {{ $period->ends_on->format('d M Y') }}
{{ str($period->status)->headline() }} {{ $done }}/{{ $total }} {{ $period->snapshot_hash ? substr($period->snapshot_hash, 0, 12).'…' : '—' }} Open @empty No fiscal periods. @endforelse {{ $periods->links() }}
@endsection