@extends(auth()->user()->isCoach() ? 'coach.layouts.app' : 'athlete.layouts.app') @php $isCoachViewer = auth()->user()->isCoach(); $otherPartyName = $isCoachViewer ? $coachRequest->athlete->user->fullName() : $coachRequest->coach->user->fullName(); $backRoute = $isCoachViewer ? route('coach.requests.index') : route('athlete.requests.index'); @endphp @section('title', 'گفتگو با ' . $otherPartyName) @section('content') ← بازگشت
{{ $otherPartyName }}
@foreach($messages as $message)
{{ $message->body }}
{{ verta($message->created_at)->format('H:i') }}
@endforeach
@csrf
@endsection