@extends('admin.layout.app') @section('content')
@include('admin.user.header')
{{$user->sender()->where('status','accepted')->count() ?? ''}} Connections
{{$user->followers()->count() ?? ''}} Followers

Profile

{{--

--}} {{-- Experienced and creative professional with a passion great--}} {{-- as for problem-solving and a commitment to excellence.--}} {{--

--}}
{{--
--}} {{-- --}} {{-- --}} {{-- --}} {{-- https://keenthemes.com--}} {{-- --}} {{--
--}} @foreach($user->socialLinks as $link) @php // Extract the icon class (e.g. fab fa-facebook-f) $iconClass = explode(' ', $link->icon)[1]; // Get the second part of the class, e.g., 'fa-facebook-f' // Remove 'fa-' and '-f' dynamically $platform = str_replace('fa-', '', $iconClass); // Remove 'fa-' // Handle special cases like Facebook 'fa-facebook-f' and 'google-plus-square' if (strpos($platform, '-f') !== false) { $platform = str_replace('-f', '', $platform); // Remove '-f' for Facebook and similar } // Platform mapping for supported icons $platforms = [ 'facebook' => 'Facebook', 'twitter' => 'Twitter', 'instagram' => 'Instagram', 'youtube' => 'YouTube', 'google-plus-square' => 'Google+', 'behance-square' => 'Behance', 'pinterest' => 'Pinterest', 'globe-americas' => 'Website', ]; // Check if the platform is available in the list if (array_key_exists($platform, $platforms)) { $platformName = $platforms[$platform]; } else { $platformName = 'Abstract'; // Fallback name $platform = 'abstract-22'; // Fallback icon } @endphp @endforeach
@if($user->chat->isEmpty()) @else @foreach($user->chat as $chat)
{{$user->name ??''}}
{{ $chat->title ?? '' }}

{{ $chat->sub_title ?? '' }}

{{$chat->description ?? ''}}

@foreach($chat->comments->take(2) as $comment)
{{$comment->user->name ?? ''}} {{$comment->created_at->diffForHumans() ?? ''}}

{{$comment->comment ?? ''}}

@endforeach
@endforeach @endif
@endsection