@extends('adminlte::page') @section('title', 'Communications') @section('content_header')
| Subject | Case | Type | From/To | Date | Priority | Actions | |
|---|---|---|---|---|---|---|---|
| @if(!$communication->is_read) @endif @if($communication->replies->count() > 0) @endif |
{{ Str::limit($communication->subject ?: strip_tags($communication->content), 80) }}
@if($communication->parent_id)
Re: {{ Str::limit($communication->parent->subject ?? 'Previous message', 40) }} @endif |
@if($communication->case) {{ $communication->case->case_number }} @else — @endif | {{ ucfirst($type) }} @if($communication->direction) {{ ucfirst($communication->direction) }} @endif |
{{ $communication->user->name ?? 'Unknown' }}
@if($communication->to_phone)
→ {{ $communication->to_phone }}
@endif
|
{{ $communication->communication_date->format('Y-m-d') }} {{ $communication->communication_date->format('H:i') }} | @php $priorityColors = [ 'low' => 'success', 'medium' => 'info', 'high' => 'warning', 'urgent' => 'danger' ]; $color = $priorityColors[$communication->priority] ?? 'secondary'; @endphp {{ ucfirst($communication->priority) }} @if($communication->external_status) WA: {{ $communication->external_status }} @endif |