@php $actionRows = isset($actions) && $actions->count() ? $actions : collect([new \App\Models\Action()]); @endphp

Action Taken

Record one or more actions, referrals or services provided over time.

@foreach($actionRows as $i => $action) @php $selectedServices = collect(explode(',', (string)$action->services))->filter()->map(fn($v) => trim($v))->toArray(); @endphp
Action {{ $i + 1 }}
Services Offered To The Survivor
@foreach($services as $service)
@endforeach
@endforeach