@extends('customer.layouts.app') @section('title') All Messages @endsection @section('css') @endsection @section('content')
@if(count($msgs) > 0)
    @foreach ($msgs as $msg) @php $count_unread = \App\Models\MessageReply::where('message_id', $msg->id) ->where('sender_id', '!=', Auth::user()->id) ->where('msg_status', 'unread') ->count(); @endphp
  • @if ($count_unread > 0) {{ $count_unread }} @endif
  • @endforeach


@else

--------------

@endif
@endsection @section('js') @endsection