@extends('layouts.app') @section('content')

{{ isset($selectedAction) ? 'Edit' : 'Create' }} Action

@csrf
@error('iDayID') {{ $message }} @enderror
@error('vTitle') {{ $message }} @enderror
Image Link Must be under 100KB. Only jpg format is allowed. @error('vBackgroundImg') {{ $message }} @enderror
@error('iNum') {{ $message }} @enderror
@error('iABTest') {{ $message }} @enderror
@error('chkbFree') {{ $message }} @enderror
@error('chkbOptional') {{ $message }} @enderror
@error('chkbTool') {{ $message }} @enderror
@error('chkbOnlyTool') {{ $message }} @enderror
@error('tDescription') {{ $message }} @enderror
@error('tGoal') {{ $message }} @enderror
Hover over the three-line handle to reorder cards. Empty cards are removed when you save.

@if (Auth::guard('admin')->user()->bContent == 1) @endif

Actions List

@foreach ($actions as $action) @endforeach
ID Day Title Background Num A/B Test Cards Active Actions
{{ $action->iActionID }} @if ($action->day) {{ $action->day->vDay }} @endif {{ $action->vTitle }} @if ($action->vBackgroundImg) {{ $action->vTitle }} @else No Image @endif {{ $action->iNum }} {{ $action->iABTest }} @php // Handle both array and double-encoded string formats $cardsData = $action->setActionCards; if (is_string($cardsData)) { $cardsData = json_decode($cardsData, true) ?: []; } $cardsData = is_array($cardsData) ? $cardsData : []; $cardsCount = count($cardsData); $cardsJson = json_encode($cardsData); @endphp {{ $cardsCount }} card(s) user()->bContent == 1 ? '':'disabled'}} type="checkbox" class="js-switch active-toggle" data-id="{{ $action->iActionID }}" value="1" {{ $action->bActive ? 'checked' : '' }} /> @if (Auth::guard('admin')->user()->bContent == 1) @endif
@endsection @push('styles') @endpush @push('scripts') @endpush