@extends('admin.layouts.app') @section('title', 'Campaign Settings') @section('content') {{-- Current Status --}}

Month {{ $currentCycle }}

Current Cycle

{{ $wrapperRatio }}

Wrappers per Point

{{ $startDate ? \Carbon\Carbon::parse($startDate)->format('M d, Y') : '—' }}

Campaign Start

{{-- Wrapper Ratio --}}
Wrapper Ratio
@csrf
@error('wrapper_ratio')
{{ $message }}
@enderror Currently: {{ $wrapperRatio }} wrappers = 1 point
@if(auth()->user()->hasPermission('edit_settings')) @endif
@if($allSettings->has('wrapper_ratio') && $allSettings->get('wrapper_ratio')->updater)
Last updated by {{ $allSettings->get('wrapper_ratio')->updater->full_name }} on {{ $allSettings->get('wrapper_ratio')->updated_at->format('M d, Y h:i A') }}
@endif
{{-- Reset Dates --}}
Monthly Reset Dates

Set when each month cycle ends. Points are preserved but a new cycle begins after each reset date.

{{-- Existing Reset Dates --}}
@forelse($resetDates as $rd) @empty @endforelse
Month Reset Date Status Action
Month {{ $rd->month_number }} {{ $rd->reset_date->format('M d, Y') }} at {{ $rd->reset_date->format('h:i A') }} @if($rd->is_reset_done) Completed @elseif($rd->hasPassed()) Passed (pending reset) @else Active @endif @if(!$rd->is_reset_done && auth()->user()->hasPermission('edit_settings'))
@csrf @method('DELETE')
@endif
No reset dates configured.
{{-- Add New Reset Dates --}} @if(auth()->user()->hasPermission('edit_settings'))
Add / Update Reset Dates
@csrf
@endif
@endsection @push('scripts') @endpush