@extends('layouts.pdf') @section('page-title', 'Back to Office Report PDF') @section('content')

Back to Office Report


Project Name: {{ $report->project_name ?? 'N/A' }}
Date: {{ $report->activity_date?->format('M d, Y') ?? 'N/A' }}
Activity: {{ $report->activity ?? 'N/A' }}
Venue: {{ $report->venue ?? 'N/A' }}

Participants: @foreach(['male' => 'Male', 'female' => 'Female', 'disability' => 'Disability', 'vmgs' => 'VMGs'] as $key => $cat) @for($i=0; $i<3; $i++) @endfor @endforeach
Category 18–35 Years 35–59 Years Above 60 Years Total
{{ $cat }}{{ $report->participants[$key][$i] ?? '' }}{{ $report->participants[$key]['total'] ?? '' }}

Introduction:

{!! nl2br(e($report->introduction)) !!}

Objective:

{!! nl2br(e($report->objective)) !!}


Budget / Expenditure: @if(isset($report->budget['item']) && is_array($report->budget['item'])) @foreach($report->budget['item'] as $i => $item) @endforeach @endif
Item Planned Actual Variance Comment
{{ $item }} {{ $report->budget['planned'][$i] ?? '' }} {{ $report->budget['actual'][$i] ?? '' }} {{ $report->budget['variance'][$i] ?? '' }} {{ $report->budget['comment'][$i] ?? '' }}

Output:

{!! nl2br(e($report->output)) !!}

Key Highlights:

{!! nl2br(e($report->key_highlights)) !!}

Challenges & Risks:

{!! nl2br(e($report->challenges_and_risks)) !!}

Best Practices:

{!! nl2br(e($report->best_practices)) !!}

Lessons Learnt:

{!! nl2br(e($report->lessons_learnt)) !!}

Recommendations:

{!! nl2br(e($report->recommendations)) !!}

Way Forward:

{!! nl2br(e($report->way_forward)) !!}


Annexes: @if($report->attachments->count()) Attachments: @endif
Created By: {{ $report->creator->name }}
Created At: {{ $report->created_at->format('M d, Y H:i') }}
County: {{ $report->county->name ?? 'N/A' }}
@if($report->status === 'approved') Approved By: {{ $report->approver->name ?? 'N/A' }}
Approved At: {{ $report->approved_at?->format('M d, Y H:i') ?? 'N/A' }}
@endif
@endsection