@php $typeIcons = [ 'call' => 'phone', 'email' => 'envelope', 'whatsapp' => 'whatsapp', 'sms' => 'chat-bubble-left-right', 'meeting' => 'users', 'note' => 'pencil-square', ]; @endphp

{{ __('Activity') }}

{{ trans_choice('{0}Nothing logged yet|{1}:count entry, newest first|[2,*]:count entries, newest first', $total, ['count' => $total]) }}

@if ($entries->isEmpty()) @else
    @foreach ($entries as $entry)
  1. {{ __($types[$entry->type] ?? \App\Models\Interaction::TYPES[$entry->type] ?? ucfirst((string) $entry->type)) }} @if ($entry->direction) {{ __($directions[$entry->direction] ?? $entry->direction) }} @endif @if ($entry->contact) {{ __('with :name', ['name' => $entry->contact->name]) }} @endif @if ($entry->subject_type === $opportunityClass && $entry->subject) {{ $entry->subject->title }} @endif
    @if ($entry->body)

    {{ $entry->body }}

    @endif @if ($entry->outcome)

    {{ __('Outcome:') }} {{ $entry->outcome }}

    @endif

    {{ $entry->occurred_at?->timezone(config('app.display_timezone'))->format('j M Y, H:i') ?? __('Date not recorded') }} ยท {{ $entry->user?->name ?? __('System') }}

  2. @endforeach
@if ($entries->count() < $total)
{{ __('Show more') }}
@endif @endif