@php $tenant = \App\Support\Facades\Tenancy::get(); $brandStyle = $tenant->brand_primary_color ? ":root { --color-brand-600: {$tenant->brand_primary_color}; } .dark { --color-brand-600: {$tenant->brand_primary_color}; }" : null; $tenantTimezone = $tenant->timezone ?? config('app.timezone'); $local = fn ($carbon) => $carbon?->copy()->setTimezone($tenantTimezone); @endphp Back

Complaint

{{ $case->description }}

@if($case->respondent_info)

Respondent

{{ $case->respondent_info }}

@endif @if($case->attachment_path)

Attachment

@php $isImageAttachment = preg_match('/\.(jpe?g|png|gif|webp|avif)$/i', $case->attachment_path); @endphp @if($isImageAttachment) Attached evidence @else Download attachment @endif @endif
Complainant
{{ $case->is_anonymous ? 'Anonymous' : ($case->complainant->name ?? 'Unknown') }}
Status
{{ ucfirst(str_replace('_', ' ', $case->status)) }}

Hearings

@forelse($case->hearings as $hearing)

{{ $local($hearing->scheduled_at)->format('d M Y, H:i') }}{{ $hearing->location ? ' · '.$hearing->location : '' }}

@if($hearing->notes)

{{ $hearing->notes }}

@endif
@empty

No hearings scheduled.

@endforelse @can('scheduleHearing', $case)
@csrf
@endcan

Decisions

@forelse($case->decisions as $decision)

{{ $decision->decision }}

{{ ucfirst(str_replace('_', ' ', $decision->outcome)) }} · {{ $decision->decided_at?->format('d M Y') }} · {{ $decision->decidedBy->name ?? 'Unknown' }}

@empty

No decision recorded.

@endforelse @can('decide', $case)
@csrf
@endcan

Committee

@forelse($case->committeeMembers as $member)

{{ $member->user->name ?? 'Unknown' }}

{{ ucfirst($member->role) }}

@if($canManageCommittee)
@csrf @method('DELETE')
@endif
@empty

No committee assigned yet.

@endforelse @if($canManageCommittee)
@csrf
@endif