{{-- --}}
{{ Str::upper($type) }}
@if($type == 'notes') @endif
@if($activity->count()) @forelse ($activity ?? [] as $activ)
@if($type == 'activities' || $type == 'chats' || $type == 'email')
{{-- --}} @php $channel = $activ->resourceInfo->channel; $channel = Str::lower($channel); @endphp
@switch($channel) @case('email') @break @case('phone') @break @case('Voice') @break @case('x') @break @case('instagram') @break @case('facebook') @break @case('linkedin') @break @case('youtube') @break @case('whatsapp') @break @case('snapchat') @break @case('tiktok') @break @case('google') @break @case('other') @break @default @break @endswitch
{{-- --}} #{{ $activ->resourceInfo->resource->id }}
{{ $activ->resourceInfo->created_at }}
{{ strlen($activ->resourceInfo->content) > 50 ? substr($activ->resourceInfo->content, 0, 50) . '...' : $activ->resourceInfo->content }}
{{ $activ->resourceInfo?->account_name ?? '-' }}
{{ $activ->resourceInfo->resource->user != null ? $activ->resourceInfo->resource->user->first_name : "-" }}
{{ $activ->resourceInfo?->resource->status ?? '-' }}
@if($activ->resourceInfo->channel=='Email') View @elseif($activ->resourceInfo->channel=='chat') View @elseif($activ->resourceInfo->channel=='Livechat') View @elseif($activ->resourceInfo->channel=='Whatsapp') View @else View @endif
@elseif($type == 'tickets')
{{-- --}} @php $channel = $activ->ticket->ticketInfo->channel; $channel = Str::lower($channel); @endphp
@switch($channel) @case('email') @break @case('phone') @break @case('Voice') @break @case('x') @break @case('instagram') @break @case('facebook') @break @case('linkedin') @break @case('youtube') @break @case('whatsapp') @break @case('snapchat') @break @case('tiktok') @break @case('google') @break @case('other') @break @default @break @endswitch
{{-- --}} #{{ $activ->ticket->id }}
{{ $activ->ticket->ticketInfo->created_at }}
{{ strlen($activ->ticket->ticketInfo->comment) > 50 ? substr($activ->ticket->ticketInfo->comment, 0, 50) . '...' : $activ->ticket->ticketInfo->comment }}
{{ $activ->ticket?->resource?->resourceInfo?->account_name ?? '-' }}
{{ $activ->ticket->ticketInfo->agent_id != null ? \App\Models\Tenant\User::where('id', $activ->ticket->ticketInfo->agent_id)->pluck('first_name')->first() : "-" }}
{{ $activ->ticket?->ticketInfo?->priority ?? '-' }}
View
@elseif($type == 'calls')
{{-- --}} #{{ $activ->id }}
{{ $activ->created_at }}
@if($activ->voiceReportRelation)
@else

No voice report available.

@endif
{{ $activ->direction }}
{{ $activ->user != null ? $activ->user->first_name : "-" }}
{{ $activ->result }}
@elseif($type == 'notes')
{{-- --}}
#{{ $activ->id }}
{{ $activ->created_at }}
@if(strlen($activ->note) > 40) {{ substr($activ->note, 0, 40) }} ...{{ $activ->isArabic() ? 'اقرأ المزيد' : 'Read More' }}
{{ $activ->note }}
@else {{ $activ->note }} @endif
{{ $activ->user != null ? $activ->user->first_name : "-" }}
@endif
@empty

No data found.

@endforelse
@if($activity instanceof \Illuminate\Pagination\LengthAwarePaginator || $activity instanceof \Illuminate\Pagination\Paginator) {{ $activity->links() }} @endif
@else
@endif
@if($profile->contact_profile_image) @else
{{ substr($profile->full_name, 0, 1) }}
@endif {{--
Social
--}}
    @foreach($profile->socials as $social)
  • @switch($social->platform) @case('email') @break @case('phone') @case('Voice') @break @case('x') @break @case('instagram') @break @case('facebook') @break @case('linkedin') @break @case('youtube') @break @case('whatsapp') @break @case('snapchat') @break @case('tiktok') @break @case('google') @break @case('other') @break @default @endswitch
  • {{ rand(100, 1000) }}
    Followers
    @endforeach
{{-- --}}
{{-- {{ \Illuminate\Support\Str::limit($profile->full_name, 16) }} --}} {{ $profile->full_name }}

Customer ID #{{ $profile->id }}

{{ $profile->primary_email }}

{{ $profile->primary_phone }}

Contact Insights
{{-- --}}
Customer Satisfaction
@if(isset($customerSatisfaction) && $customerSatisfaction !== null) {{ $customerSatisfaction }}% @else N/A @endif
{{-- --}}
Feedback Rating
@if(isset($customerRating) && $customerRating !== null) {{ $customerRating }}% @else N/A @endif
@forelse ($ContactInsights as $insight) @php $channel = $insight->channel; $channel = Str::lower($channel); @endphp
@switch($channel) @case('email') @break @case('phone') @break @case('voice') @break @case('x') @break @case('instagram') @break @case('facebook') @break @case('linkedin') @break @case('youtube') @break @case('whatsapp') @break @case('snapchat') @break @case('tiktok') @break @case('google') @break @case('other') @break @default @break @endswitch
Ticket received
{{ $insight->count }}
@empty {{--

No data available.

--}} @endforelse