Concern Detail
{{-- LEFT: Details --}}
Concern
{{ $concern->reference_no }}
{{ $concern->created_at?->setTimezone('Asia/Kuala_Lumpur')->format('d/m/Y H:i') }}
{{ data_get($concern, 'user.name') }}
{{ data_get($concern, 'user.organization.name') }} - Site {{ data_get($concern, 'employee.site.site_name') }}
{{ data_get($concern, 'issue_category') }}
{{ $concern->description }}
@foreach ($images as $img) @endforeach

@if ($concern->latest_status != 'resolved')
Action
@error('status') {{ $message }} @enderror
@error('description') {{ $message }} @enderror
@error('photos.*')
{{ $message }}
@enderror
@forelse($items as $i => $item) @empty @endforelse
Photos Action
@if ($item['type'] === 'existing')
{{ $item['name'] }}
@else
{{ $item['name'] }}
@endif
No photos
Cancel
@endif
{{-- Activity / History (optional) --}}
History
@forelse($histories as $h)
{{-- dot + line --}}
{{-- content --}}
{{ ucfirst($h->status) }}
{{ $h->created_at->format('d/m/Y h:i A') }} • by {{ data_get($h, 'admin.name', 'Admin') }}
@if ($h->description)
{{ $h->description }}
@endif {{-- images --}} @if ($h->media && $h->media->count())
@foreach ($h->media as $m) @endforeach
@endif
@empty
No history yet.
@endforelse