@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:
| Category |
18–35 Years |
35–59 Years |
Above 60 Years |
Total |
@foreach(['male' => 'Male', 'female' => 'Female', 'disability' => 'Disability', 'vmgs' => 'VMGs'] as $key => $cat)
| {{ $cat }} |
@for($i=0; $i<3; $i++)
{{ $report->participants[$key][$i] ?? '' }} |
@endfor
{{ $report->participants[$key]['total'] ?? '' }} |
@endforeach
Introduction:
{!! nl2br(e($report->introduction)) !!}
Objective:
{!! nl2br(e($report->objective)) !!}
Budget / Expenditure:
| Item |
Planned |
Actual |
Variance |
Comment |
@if(isset($report->budget['item']) && is_array($report->budget['item']))
@foreach($report->budget['item'] as $i => $item)
| {{ $item }} |
{{ $report->budget['planned'][$i] ?? '' }} |
{{ $report->budget['actual'][$i] ?? '' }} |
{{ $report->budget['variance'][$i] ?? '' }} |
{{ $report->budget['comment'][$i] ?? '' }} |
@endforeach
@endif
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:
- Attendance list
- Pictures on activity
- Minutes of Decision / Agreement
- Receipts
@if($report->attachments->count())
Attachments:
@foreach($report->attachments as $attachment)
-
{{ $attachment->original_name }}
@if($attachment->file_path)
Download/View
@endif
@endforeach
@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