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:
parent
b7d6e06530
commit
aec129f6bb
@ -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);
|
||||
}
|
||||
|
||||
// /**
|
||||
|
@ -1295,4 +1295,9 @@ class Customer extends Model
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public function getChannelName()
|
||||
{
|
||||
return \Eventy::filter('channel.name', '', $this->channel);
|
||||
}
|
||||
}
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user