@extends('layouts.vertical', ['page_title' => 'Action Plan Report']) @section('css') @endsection @section('content')
| SBM /ME Action Plan | Total | @foreach ($timelineCols as $col){{ ucfirst(str_replace('_', ' ', $col)) }} | @endforeach @foreach ($adherenceCols as $col){{ ucfirst(str_replace('_', ' ', $col)) }} | @endforeach
|---|---|---|---|
| {{ $plan }} | {{ $slugs->total ?? 0 }} | @foreach ($timelineCols as $col){{ $slugs->{$col} ?? 0 }} | @endforeach @foreach ($adherenceCols as $col){{ $slugs->{$col} ?? 0 }} | @endforeach
| Action Plan Item | Total Users | @foreach ($allTimelines as $timeline){{ ucfirst(str_replace('_', ' ', $timeline)) }} | @endforeach
|---|---|---|
| {{ ucfirst(str_replace('_', ' ', $row->action_plan_item)) }} | {{ $row->total_user_count }} | @foreach ($allTimelines as $timeline) @php $count = collect($row->timelines) ->firstWhere('timeline', $timeline)->user_count ?? 0; @endphp{{ $count }} | @endforeach
No data available.
@endif