@extends('layouts.app') @section('title', 'Issue #' . $issue->id) @section('content')

Issue #{{ $issue->id }}

{{ $issue->job_no }} · {{ $issue->responsible_officer }}

{{ ucfirst($issue->category) }} {{ ucfirst($issue->status) }}

Subcategory: {{ $issue->subcategory }}

@if ($issue->job_description)

Project description: {{ $issue->job_description }}

@endif

Officer: {{ $issue->responsible_officer }}

@if ($issue->description)

Details:
{{ $issue->description }}

@endif @if ($issue->reported_by)

Reported by {{ $issue->reported_by }} on {{ $issue->created_at->format('Y-m-d H:i') }}

@endif

Photos

@if ($issue->photos->count())
@foreach ($issue->photos as $photo) @php $mismatch = $photo->ai_suggested_category && $photo->ai_suggested_category !== $issue->category; @endphp {{ $photo->original_filename }}
{{ $photo->original_filename }}
@if ($photo->ai_analyzed_at) 🤖 AI suggested: @if ($photo->ai_suggested_category) {{ ucfirst($photo->ai_suggested_category) }}@if ($photo->ai_suggested_subcategory) — {{ $photo->ai_suggested_subcategory }} @endif @else (no suggestion) @endif @if ($mismatch) · differs from logged category @endif @if ($photo->ai_summary) {{ $photo->ai_summary }} @endif @endif
@endforeach
@else

No photos attached.

@endif
Back to List @endsection