@extends('layouts.client') @section('content')
@php $headerClass = 'bg-gradient-secondary'; if ($occurrence->status === 'open') $headerClass = 'bg-gradient-success'; if ($occurrence->status === 'closed') $headerClass = 'bg-gradient-dark'; @endphp
Ocorrência #{{ $occurrence->id }} - {{ ucfirst($occurrence->status) }}
@if(session('message'))
{{ session('message') }}
@endif
{{ $occurrence->title ?? ($occurrence->type->name ?? 'Ocorrência') }}

{{ $occurrence->type->name ?? '' }} • Registrada em {{ $occurrence->created_at->format('d/m/Y H:i') }} por {{ $occurrence->user->name ?? 'Sistema' }}

Voltar {{-- Toggle status form --}}
@csrf

{{-- Use an alert card similar to template notifications to present the content nicely --}} @php $details = trim($occurrence->details ?? ''); $isLong = strlen(strip_tags($details)) > 400; @endphp
@if($occurrence->attachments->count())
Anexos
@endif
@endsection @push('scripts') @endpush