Meeting Title: {{ $meeting->title }}
Date: {{ \Carbon\Carbon::parse($meeting->meeting_date)->format('d M Y h:i A') ?? '' }}
Venue/Platform: {{ $meeting->venue }}
Client: {{ $meeting->clientmodal->name }}
Organizer: {{ $meeting->organizer }}
Attendees:
@foreach ($meeting->attendee_names ?? [] as $attendee)
- {{ $attendee }}
@endforeach
Agenda Items:
@foreach (explode("\n", $meeting->agenda ?? '') as $item)
@if (trim($item) != '')
- {{ $item }}
@endif
@endforeach
Discussion Points & Key Decisions:
| Agenda Item |
Discussion Summary |
Action Items |
Responsible Person(s) |
Deadline |
@foreach ($meeting->actionItems ?? [] as $row)
| {{ $row->agenda_item ?? '' }} |
{{ $row->discussion_summary ?? '' }} |
{{ $row->action_item ?? '' }} |
@php
$names = [];
$ids = json_decode($row->responsible_persons, true);
if (is_array($ids)) {
$names = \App\Models\User::whereIn('id', $ids)->pluck('name')->toArray();
}
@endphp
{{ implode(', ', $names) }}
|
{{ \Carbon\Carbon::parse($row->deadline)->format('d M Y h:i A') ?? '' }} |
@endforeach
{{--
Action Items & Next Steps:
@foreach ($meeting->actionItems ?? [] as $step)
{{ $step->discussion_summary ?? '' }} - @php
$names = [];
$ids = json_decode($step->responsible_persons, true);
if (is_array($ids)) {
$names = \App\Models\User::whereIn('id', $ids)->pluck('name')->toArray();
}
@endphp
{{ implode(', ', $names) }}
@endforeach
--}}
Action Items & Next Steps:
@foreach ($meeting->actionItems ?? [] as $step)
@php
$names = [];
$ids = json_decode($step->responsible_persons, true);
if (is_array($ids)) {
$names = \App\Models\User::whereIn('id', $ids)->pluck('name')->toArray();
}
$responsibleText = '';
if (count($names) === 1) {
$responsibleText = $names[0] . ' will handle this task.';
} elseif (count($names) === 2) {
$responsibleText = $names[0] . ' and ' . $names[1] . ' will work together on this.';
} elseif (count($names) > 2) {
$last = array_pop($names);
$responsibleText = implode(', ', $names) . ', and ' . $last . ' will collaboratively complete this.';
}
@endphp
-
{{ ucfirst($step->discussion_summary ?? '') }} {{ $responsibleText }}
@endforeach
Sessions and Coverage:
@foreach (explode("\n", $meeting->discussion_points ?? '') as $points)
@if (trim($points) != '')
- {{ $points }}
@endif
@endforeach
Decisions Made:
@foreach (explode("\n", $meeting->decisions_made ?? '') as $decision)
@if (trim($decision) != '')
- {{ $decision }}
@endif
@endforeach
Next Meeting Details:
Date & Time: {{ \Carbon\Carbon::parse($meeting->next_meeting_date)->format('d M Y h:i A') ?? 'To be updated' }}
Location/Platform: {{ $meeting->next_meeting_location ?? 'Online' }}
Agenda: {{ $meeting->next_meeting_agenda ?? 'Checking status of first meeting actions' }}
Prepared By: {{ $meeting->prepared_by }}
Reviewed & Approved By: {{ $meeting->approved_by }}