Case Details

Case #{{ $case->id }}

@can('cases.edit') Edit @endcan
Client
{{ $case->client->name ?? '—' }}
Label
{{ $case->label }}
Status
{{ $case->status }}
Sentiment
@php $sentimentClass = match ($case->sentiment) { 'Positive' => 'sentiment-positive', 'Neutral' => 'sentiment-neutral', 'Negative' => 'sentiment-negative', 'Critical' => 'sentiment-critical', default => 'badge-status', }; @endphp {{ $case->sentiment }}
Source
{{ $case->source }}
Post Date / Time
{{ $case->post_date?->format('Y-m-d') }} {{ $case->post_time }}
Created By
{{ $case->creator->name ?? '—' }}
Created
{{ $case->created_at?->toDayDateTimeString() }}
Last Updated
{{ $case->updated_at?->toDayDateTimeString() }}
Closed At
{{ $case->closed_at?->toDayDateTimeString() ?? '—' }}
Original Post
{{ $case->post_text ?? '—' }}
Translation
{{ $case->translation ?? '—' }}
Post Link
@if ($case->post_link) {{ $case->post_link }} @else — @endif
Activity Log
@forelse ($activities as $activity) @php $kind = 'General Update'; $properties = json_decode($activity->properties ?? '{}', true) ?: []; $attrs = $properties['attributes'] ?? []; $old = $properties['old'] ?? []; if (($activity->description ?? '') === 'alert email sent') { $kind = 'Alert Email Sent'; } elseif (array_key_exists('status', $attrs) && (($old['status'] ?? null) !== ($attrs['status'] ?? null))) { $kind = 'Status Change'; } elseif (array_key_exists('notes_social', $attrs)) { $kind = 'Notes Update'; } elseif (array_key_exists('action_social', $attrs)) { $kind = 'Action Update'; } elseif (($activity->event ?? null) === 'created') { $kind = 'Case Created'; } @endphp
{{ $activity->description }}
{{ $kind }}
{{ $activity->created_at }} · by {{ $activity->causer_name ?? 'System' }}
@empty
No activity yet.
@endforelse
Comments
@forelse ($case->comments as $comment)
{{ $comment->body }}
{{ $comment->user->name ?? '—' }} · {{ $comment->created_at?->diffForHumans() }}
@empty
No comments yet.
@endforelse
@can('cases.edit')
@csrf @error('body')
{{ $message }}
@enderror
@endcan
Assigned Owners
@forelse ($case->owners as $owner)
{{ $owner->name }}
@empty
No owners assigned.
@endforelse
@can('cases.edit')
@csrf
@endcan
Agency Notes
{{ $case->notes_social ?? '—' }}
Action (Social Media Team)
{{ $case->action_social ?? '—' }}
User Reply
{{ $case->user_reply ?? '—' }}