@extends('layouts.dashboard.app') @section('content')

Messages

@if (Auth::user()->trade_role == 4) New Chat @endif
{{--
profile
Hello Mahri!
--}}
    @if (count($chats) > 0) @foreach ($chats as $chat) @php $images = @$chat->getProduct->getimages ? @$chat->getProduct->getimages->groupBy('section') : ''; $userlogo = @$chat->getUser->userprofile->profile_image ?: ''; //$mainImagePath = @$images && @$images['mainimage']? @$images['mainimage']->first()->path: $userlogo; $mainImagePath = $userlogo; @endphp
  • user {{ $chat->getUser->first_name . ' ' . $chat->getUser->middle_name . ' ' . $chat->getUser->last_name }}
    ({{ $chat->getUser->email }})
    {{ @$chat['getBusiness']['company'] }}
    {{ $chat->updated_at->format('m/d/y') }}
    @if ($chat->unseen_messages()->count() > 0)
    {{ $chat->unseen_messages()->count() }}
    @endif
  • @endforeach @else
  • You have no chats to display.

  • @endif
Back
@endsection @push('css') @endpush @push('js')