@php $tz = config('app.display_timezone'); $cardMeta = [ ['key' => 'all', 'label' => __('Logged'), 'icon' => 'chat-bubble-left-right', 'accent' => '#6366f1', 'action' => "setGroup('')", 'active' => $group === '' && $direction === '' && $type === ''], ['key' => 'calls', 'label' => __('Calls'), 'icon' => 'phone', 'accent' => '#0ea5e9', 'action' => "setGroup('calls')", 'active' => $group === 'calls'], ['key' => 'messages', 'label' => __('Emails and messages'), 'icon' => 'envelope', 'accent' => '#8b5cf6', 'action' => "setGroup('messages')", 'active' => $group === 'messages'], ['key' => 'meetings', 'label' => __('Meetings and events'), 'icon' => 'user-group', 'accent' => '#10b981', 'action' => "setGroup('meetings')", 'active' => $group === 'meetings'], ['key' => 'inbound', 'label' => __('Inbound'), 'icon' => 'inbox-arrow-down', 'accent' => '#f59e0b', 'action' => 'setInbound', 'active' => $direction === 'inbound' && $group === ''], ]; $periodLabel = __(\App\Livewire\Crm\Communications\Index::PERIODS[$period] ?? ''); $hasFilters = $type !== '' || $direction !== '' || $group !== '' || trim($q) !== '' || $record; @endphp
{{ $scope === 'team' ? __('Logged by anyone') : __('Logged by you') }} · {{ $periodLabel }} @if ($record) · {{ $record instanceof \App\Models\Opportunity ? $record->title : $record->name }} @endif
| {{ __('When') }} | {{ __('Channel') }} | {{ __('With') }} | {{ __('What was said') }} | {{ __('By') }} |
|---|---|---|---|---|
| {{ $entry->occurred_at?->copy()->timezone($tz)->format('D j M') }} {{ $entry->occurred_at?->copy()->timezone($tz)->format('H:i') }} |
|
@if ($entry->subject instanceof \App\Models\Opportunity) {{ $entry->subject->title }} @endif @if ($entry->customer) {{ $entry->customer->name }} @elseif (! $entry->subject instanceof \App\Models\Opportunity) {{ $entry->subject->name ?? __('Not recorded') }} @endif @if ($entry->contact) {{ $entry->contact->name }} @endif |
{{ \Illuminate\Support\Str::limit($entry->body, 220) }} @if ($entry->outcome){{ __('Outcome') }}: {{ $entry->outcome }} @endif |
{{ $entry->user?->name ?? __('System') }} |
|
|
||||