@extends('layouts.app') @section('page-title', __('View Field Report')) @section('page-heading', $report->title) @section('content')
@include('partials.messages')
Back to List
@if($report->status !== 'approved') @if($report->created_by === auth()->id() || auth()->user()->hasRole(['Admin', 'Manager'])) Edit Report
@csrf @method('DELETE')
@endif @if($report->status === 'submitted' && $report->can_approve)
@csrf
@endif @endif
County
{{ $report->county->name }}
@if($report->content)
Report Content
{!! $report->content !!}
@endif @if($report->summary)
Summary
{{ $report->summary }}
@endif @if($report->recommendations)
Recommendations
{{ $report->recommendations }}
@endif
Report Status
Status {{ ucfirst($report->status) }}
Created By {{ $report->creator->name }}
Role {{ $report->creator->role->display_name }}
Created At {{ $report->created_at->format('M d, Y H:i') }}
@if($report->approved_by)
Approved By {{ $report->approver->name }}
Approved At {{ $report->approved_at->format('M d, Y H:i') }}
@endif
Attachments
@forelse($report->attachments as $attachment)
{{ $attachment->original_name }}
{{ number_format($attachment->file_size / 1024, 2) }} KB
@if($report->status !== 'approved' && ($report->created_by === auth()->id() || auth()->user()->hasRole(['Admin', 'Manager'])))
@csrf @method('DELETE')
@endif
@empty

No attachments added to this report.

@endforelse
@endsection