@include('admin.includes.header') @include('admin.includes.sidebar') @php if (auth()->user()->id == $caseUser->sender_id) $receiver_id = $caseUser->receiver_id; else $receiver_id = $caseUser->sender_id; $receiver = \App\User::query()->withoutGlobalScope(\App\Scopes\BranchScope::class)->where('id', $receiver_id)->first(); @endphp
{{$receiver->name}}
                           
كود القضية: {{$caseUser->case_id}}
                           
اسم الموكل: @if(\App\Casee::query()->withoutGlobalScope(\App\Scopes\GetRecordsThroughUserBranchScope::class)->where('id', $caseUser->case_id)->first()->client()?->withoutGlobalScope(\App\Scopes\GetRecordsThroughUserBranchScope::class)) {{\App\Casee::query()->where('id', $caseUser->case_id)->first()->client()->client->name}} @endif
@foreach($messages as $message) @if(auth()->user()->id == $message->senderable_id)

{{$message->message}}

{{\Carbon\Carbon::parse($message->created_at)->diffForHumans()}}
@else

{{$message->message}}

{{\Carbon\Carbon::parse($message->created_at)->diffForHumans()}}
@endif @endforeach {{--
--}} {{--
--}} {{-- --}} {{-- --}} {{-- --}} {{--
--}} {{--
--}} {{--
--}} {{--

How can we help? We're here for you!

--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{-- --}} {{-- --}} {{-- --}} {{--
--}} {{--
--}} {{--
--}} {{--

Absolutely!

--}} {{--
--}} {{--
--}} {{--

Vuexy admin is the responsive bootstrap 4 admin--}} {{-- template.

--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{-- --}} {{-- --}} {{-- --}} {{--
--}} {{--
--}} {{--
--}} {{--

Looks clean and fresh UI.

--}} {{--
--}} {{--
--}} {{--

It's perfect for my next project.

--}} {{--
--}} {{--
--}} {{--

How can I purchase it?

--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{-- --}} {{-- --}} {{-- --}} {{--
--}} {{--
--}} {{--
--}} {{--

Thanks, from ThemeForest.

--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{-- --}} {{-- --}} {{-- --}} {{--
--}} {{--
--}} {{--
--}} {{--

I will purchase it for sure.

--}} {{--
--}} {{--
--}} {{--

Thanks.

--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{-- --}} {{-- --}} {{-- --}} {{--
--}} {{--
--}} {{--
--}} {{--

Great, Feel free to get in touch on

--}} {{--
--}} {{--
--}} {{--

https://pixinvent.ticksy.com/

--}} {{--
--}} {{--
--}} {{--
--}}
@csrf
{{-- --}} {{-- --}} {{-- --}}