1
0
mirror of https://github.com/freescout-helpdesk/freescout.git synced 2024-11-24 11:22:42 +01:00

Show customer channel as tag

This commit is contained in:
FreeScout 2021-03-01 23:00:31 -08:00
parent b7d6e06530
commit aec129f6bb
3 changed files with 9 additions and 1 deletions

View File

@ -1828,7 +1828,7 @@ class Conversation extends Model
public function getChannelName()
{
return \Eventy::filter('conversation.channel_name', '', $this->channel);
return \Eventy::filter('channel.name', '', $this->channel);
}
// /**

View File

@ -1295,4 +1295,9 @@ class Customer extends Model
return false;
}
}
public function getChannelName()
{
return \Eventy::filter('channel.name', '', $this->channel);
}
}

View File

@ -6,6 +6,9 @@
@if ($customer->getFullName(true, true))
<a href="{{ route('customers.update', ['id' => $customer->id]) }}" class="customer-name">{{ $customer->getFullName(true, true) }}</a>
@endif
@if ($customer->getChannelName())
<div class="customer-tags"><span class="fs-tag"><span class="fs-tag-name">{{ $customer->getChannelName() }}</span></span>@action('customer.tags', $customer, $conversation ?? null)</div>
@endif
<ul class="customer-contacts customer-section">
@if (!empty($main_email))
@foreach ($customer->emails as $email)