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

Messages

{{--
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
  • @if ($chat->admin_type == 1)
    img {{ $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') }}
    @else
    img Chemical Wholesale Admin
    (Chemical Wholesale)
    support@chemicalwholesale.com
    {{ $chat->updated_at->format('m/d/y') }}
    @endif @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')