Only sections registered by the app appear here. A section stays free for everyone until you switch paid unlocking on and save a price. Players who already unlocked a section keep it, whatever you change later.
@foreach ($sections as $section) @endforeach
@if ($hasChanges) Unsaved changes @else Saved @endif @if ($savedLabel) Saved price: {{ $savedLabel }} @else Currently free @endif
Cancel Save price
@if ($selected)

{{ $selected['title'] }}

{{ $selected['description'] }}

@if ($enabled && $draftPrice) Unlock · {{ number_format($draftPrice) }} Coins @else Free @endif

@if ($enabled && $draftPrice && $hasChanges) This is the draft. Players see it only after you save. @elseif ($enabled && $draftPrice) This is what players who have not unlocked it see now. @elseif ($enabled) Enter a price of at least 1 coin to see the lock. @else Paid unlocking is off, so players see no lock on this section. @endif

@endif
Section Status Price Unlocked by Last changed @foreach ($sections as $section)

{{ $section['title'] }}

{{ $section['key'] }}

@if ($section['saved']?->is_enabled) Paid @else Free @endif {{ $section['saved'] ? number_format($section['saved']->price_coins).' coins' : '—' }} {{ number_format($section['players']) }} {{ \Illuminate\Support\Str::plural('player', $section['players']) }} {{ number_format($section['coins']) }} coins collected @if ($section['saved']) @if ($section['saved']->updatedBy) by {{ $section['saved']->updatedBy->display_name }} @endif @else — @endif @endforeach
@if ($history->isEmpty()) @else
    @foreach ($history as $entry) @php($m = $entry->metadata ?? [])
  • {{ $sections->firstWhere('key', $m['section'] ?? '')['title'] ?? ($m['section'] ?? 'Section') }}: @if (($m['old_price'] ?? null) === null) price set to {{ number_format($m['new_price'] ?? 0) }} coins @elseif (($m['old_price'] ?? null) !== ($m['new_price'] ?? null)) price {{ number_format($m['old_price']) }} → {{ number_format($m['new_price'] ?? 0) }} coins @else price unchanged at {{ number_format($m['new_price'] ?? 0) }} coins @endif @if (($m['old_enabled'] ?? false) !== ($m['new_enabled'] ?? false)) · paid unlocking turned {{ ($m['new_enabled'] ?? false) ? 'on' : 'off' }} @endif

    by {{ $entry->actorLabel() }}

  • @endforeach
@endif