@extends('backend.partials.master') @section('title') {{ ___('admin.communication_history_5444e7') }} @endsection @section('maincontent') @foreach($activities as $a) @php $map = ['Email'=>'primary','Call'=>'success','SMS'=>'info','WhatsApp'=>'success','Meeting'=>'warning']; $cls = $map[$a->channel] ?? 'primary'; @endphp {{ $a->activity_date?->translatedFormat('d M Y') ?: '—' }} @if($a->channel){{ admin_label($a->channel) }}@else — @endif {{ $a->customer_name }} {{ $a->subject }} {{ $a->body }} @endforeach @endsection