{{ $settings->get('company_name', 'Stephup Construction Report') }}

{{ $settings->get('pdf_header', 'Approved field report') }} {{ $report->reference_number }}
Project{{ $report->project->name }}
{{ $report->project->code }}
Work Date{{ $report->work_date->format('M j, Y') }} Status{{ $report->status }}
Technician{{ $report->technician->name }} Supervisor{{ $report->supervisor?->name ?: 'Not recorded' }} Approved{{ $report->reviewed_at?->format('M j, Y g:i A') ?: 'Not recorded' }}

{{ $report->title }}

Weather{{ $report->weather ?: 'Not recorded' }} Manpower{{ $report->manpower_count }} Equipment{{ $report->equipment ?: 'Not recorded' }}
@if (count($report->customChecklistFlags()) > 0)

Custom Checklist

@foreach (array_chunk($report->customChecklistFlags(), 4, true) as $row) @foreach ($row as $label => $checked) @endforeach @endforeach
{{ $checked ? 'Yes' : 'No' }}
{{ $label }}
@endif @foreach ([ 'Work completed' => $report->work_completed, 'Issues' => $report->issues, 'Safety notes' => $report->safety_notes, ] as $label => $value)

{{ $label }}

{!! nl2br(e($value ?: 'Not recorded')) !!}
@endforeach

Construction Checklist

@foreach (array_chunk($report->checklistFlags(), 4, true) as $row) @foreach ($row as $label => $checked) @endforeach @endforeach
{{ $checked ? 'Yes' : 'No' }}
{{ $label }}
@foreach ([ 'Incident details' => $report->incident_details, 'Delay details' => $report->delay_details, 'Materials used or delivered' => $report->materials_used, 'Quality notes' => $report->quality_notes, 'Client instructions' => $report->client_instructions, 'Snag items' => $report->snag_items, 'Next steps' => $report->next_steps, ] as $label => $value)

{{ $label }}

{!! nl2br(e($value ?: 'Not recorded')) !!}
@endforeach

Attachments

Photos: {{ $report->photos->count() }} @if ($report->photos->isNotEmpty()) @endif
Documents: {{ $report->files->count() }} @if ($report->files->isNotEmpty()) @endif

Approval History

@foreach ($report->statusLogs->sortBy('created_at') as $log)
{{ str_replace('_', ' ', $log->to_status) }} by {{ $log->user->name }} on {{ $log->created_at->format('M j, Y g:i A') }} @if ($log->note)
{{ $log->note }} @endif
@endforeach