@extends('layouts.public.app') @section('title', 'My Messages | Chemical Wholesale') @section('content')

My Messages

{{--
profile
Hello!
--}}
    @if (count($chats) > 0) @foreach ($chats as $chat) @php $images = @$chat->getProduct->getimages ? @$chat->getProduct->getimages->groupBy('section') : ''; $supplierlogo = @$chat->getBusiness->getLogo->path ?: ''; //$mainImagePath = @$images && @$images['mainimage']? @$images['mainimage']->first()->path: $supplierlogo; $mainImagePath = $supplierlogo; @endphp
  • getBusiness) data-sender-name="Seller" @else data-sender-name="CW Admin" @endif>
    @if ($chat->getBusiness)
    img {{ $chat->getBusiness->getOwner->first_name . ' ' . $chat->getBusiness->getOwner->last_name }}
    ({{ $chat->getBusiness->company }})
    {{ $chat->getBusiness->company_email }}
    @else
    img Chemical Wholesale Admin
    (Chemical Wholesale)
    support@chemicalwholesale.com
    @endif
    {{ $chat->updated_at->format('m/d/y') }}
    @if ($chat->unseen_messages_from_admin()->count() > 0)
    {{ $chat->unseen_messages_from_admin()->count() }}
    @endif
  • @endforeach @else
  • You have no chats to display.

  • @endif
@if (0 < count($chats)) @endif
Back
@endsection @push('css') @endpush @push('js')