@extends('layouts.app') @section('title', 'Reward Cycles') @push('styles') @endpush @section('content')

All Cycles

{{ $cycles->total() }} cycle{{ $cycles->total() !== 1 ? 's' : '' }}
@if($cycles->count()) @foreach($cycles as $cycle) @endforeach
Name Start Date End Date Duration Status Created By Created
{{ $cycle->name }} {{ $cycle->start_date->format('d M Y') }} {{ $cycle->end_date->format('d M Y') }} {{ $cycle->start_date->diffInDays($cycle->end_date) }} days @if($cycle->status === 'active') Active @else Closed @endif {{ $cycle->createdBy?->name ?? '—' }} {{ $cycle->created_at->format('d M Y') }}
@if($cycles->hasPages())
Showing {{ $cycles->firstItem() }}–{{ $cycles->lastItem() }} of {{ $cycles->total() }} {{ $cycles->links() }}
@endif @else

No reward cycles yet. Create the first one.

@endif
@endsection