@extends('layouts.lawyer.layout') @section('title') {{ $website_lang->where('lang_key','message')->first()->custom_lang }} @endsection @section('lawyer-content')
    @foreach ($users as $user)
  • @php $lawyer=Auth::guard('lawyer')->user(); $count=App\Message::where(['lawyer_id'=>$lawyer->id,'user_id'=>$user->user->id,'lawyer_view'=>0])->count(); @endphp @if ($count>0) {{ $count }} @endif
    user image

    {{ $user->user->name }}

  • @endforeach
@endsection