Meeting REF: #{!! $mom->reference_no !!}
Date: {!! $mom->date_time !!}

{!! strtoupper($mom->title) !!}

Total attachment: {!! sizeof($mom->attachments) !!}
Created by: {!! $mom->creator->name !!}

FACILITATOR

{!! strtoupper($mom->facilitator) !!}

Venue: {!! $mom->meeting_venue !!}
Participants: {!! $mom->total_participant !!}

Present Member:
{!! sizeof($mom->present_members) !!}
Absent Member:
{!! sizeof($mom->absent_members) !!}
Action Done:
@php $action_completed = 0; foreach($mom->meeting_actions as $action){ $action_completed += $action->issue_details->where('action_taken_by_user','Completed')->count(); } $action_pending = 0; foreach($mom->meeting_actions as $action){ $action_pending += $action->issue_details->where('action_taken_by_user','Pending')->count(); } @endphp
{!! $action_completed !!}
Action Pending:
{!! $action_pending !!}

Member details

Present Member's: @foreach($mom->present_members as $present_member) {!! $present_member->user->name !!}   @endforeach
Absent Member's: @if(sizeof($mom->absent_members) > 0) @foreach($mom->absent_members as $absent_members) {!! $absent_members->user->name !!}   @endforeach @else N/A @endif

Issue Details

@foreach($mom->meeting_actions as $index=>$actions)

#{!! ($index+1) !!} - {!! $actions->title !!}

@foreach($actions->issue_details as $index=>$issue_detail) @endforeach
SL Department Decision/Advice/Suggestion Due Date Actioner Status
{!! ($index+1) !!} {!! $issue_detail->department !!} {!! $issue_detail->remarks !!} {!! $issue_detail->date !!} {!! $issue_detail->user->name !!} {!! $issue_detail->action_taken_by_user !!}
@endforeach