@extends('admin.layouts.master') @section('page_title', __('admin.Add New :name', ['name' => __('admin.Archived Message')])) @section('page_heading', __('admin.Add New :name', ['name' => __('admin.Archived Message')])) @section('page_text', __('admin.Add New :name', ['name' => __('admin.eArchived Message')])) @section('page_breadcrumb_icon') @endsection @section('page_breadcrumb_item', 'Archived Message') @section('page_breadcrumb_item2', 'Archived Message') @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 (($msg->sender_id != Auth::user()->id && $msg->msg_status == 'read') || $msg->sender_id == Auth::user()->id)
  • @if ($count_unread > 0) {{ $count_unread }} @endif
  • @endif @endforeach


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