@push('styles') @endpush

{{ $otherUser->name }}

@if($conversation->bookingRequest)

{{ $conversation->bookingRequest->course_name }} - {{ $conversation->bookingRequest->formatted_proposed_date }}

@endif
@if($conversation->bookingRequest) View Booking Details @endif
@php $previousSenderId = null; $previousDate = null; @endphp @foreach($conversation->messages as $message) @php $isCurrentUser = $message->sender_id === auth()->id(); $messageDate = $message->created_at->format('Y-m-d'); $showDateSeparator = $previousDate !== $messageDate; $showAvatar = $previousSenderId !== $message->sender_id; $previousSenderId = $message->sender_id; $previousDate = $messageDate; @endphp @if($showDateSeparator)
@if($message->created_at->isToday()) Today @elseif($message->created_at->isYesterday()) Yesterday @else @userDate($message->created_at) @endif
@endif
@if(!$isCurrentUser && $showAvatar)
{{ substr($message->sender->name, 0, 1) }}
@elseif(!$isCurrentUser)
@endif
@if($showAvatar)
{{ $isCurrentUser ? 'You' : $message->sender->name }}
@endif

{!! \App\Helpers\MarkdownHelper::parseSimple($message->content) !!}

{{ $message->formatted_time }}
@endforeach
@csrf
@foreach(['๐Ÿ˜€', '๐Ÿ˜ƒ', '๐Ÿ˜„', '๐Ÿ˜', '๐Ÿ˜†', '๐Ÿ˜…', '๐Ÿคฃ', '๐Ÿ˜‚', '๐Ÿ™‚', '๐Ÿ™ƒ', '๐Ÿ˜‰', '๐Ÿ˜Š', '๐Ÿ˜‡', '๐Ÿฅฐ', '๐Ÿ˜', '๐Ÿคฉ', '๐Ÿ˜˜', '๐Ÿ˜—', '๐Ÿ˜š', '๐Ÿ˜™', '๐Ÿฅฒ', '๐Ÿ˜‹', '๐Ÿ˜›', '๐Ÿ˜œ', '๐Ÿคช', '๐Ÿ˜', '๐Ÿค‘', '๐Ÿค—', '๐Ÿคญ', '๐Ÿคซ', '๐Ÿค”', '๐Ÿค', '๐Ÿคจ', '๐Ÿ˜', '๐Ÿ˜‘', '๐Ÿ˜ถ', '๐Ÿ˜', '๐Ÿ˜’', '๐Ÿ™„', '๐Ÿ˜ฌ', '๐Ÿคฅ', '๐Ÿ˜Œ', '๐Ÿ˜”', '๐Ÿ˜ช', '๐Ÿคค', '๐Ÿ˜ด', '๐Ÿ˜ท', '๐Ÿค’', '๐Ÿค•', '๐Ÿคข', '๐Ÿคฎ', '๐Ÿคง', '๐Ÿฅต', '๐Ÿฅถ', '๐Ÿ˜Ž', '๐Ÿค“', '๐Ÿง', '๐Ÿ˜•', '๐Ÿ˜Ÿ', '๐Ÿ™', 'โ˜น๏ธ', '๐Ÿ˜ฎ', '๐Ÿ˜ฏ', '๐Ÿ˜ฒ', '๐Ÿ˜ณ', '๐Ÿฅบ', '๐Ÿ˜ฆ', '๐Ÿ˜ง', '๐Ÿ˜จ', '๐Ÿ˜ฐ', '๐Ÿ˜ฅ', '๐Ÿ˜ข', '๐Ÿ˜ญ', '๐Ÿ˜ฑ', '๐Ÿ˜–', '๐Ÿ˜ฃ', '๐Ÿ˜ž', '๐Ÿ˜“', '๐Ÿ˜ฉ', '๐Ÿ˜ซ', '๐Ÿฅฑ', '๐Ÿ‘', '๐Ÿ‘Ž', '๐Ÿ‘Œ', '๐Ÿ™', '๐Ÿค', '๐Ÿ‘', '๐Ÿ™Œ', '๐Ÿ’ช', 'โค๏ธ', '๐Ÿงก', '๐Ÿ’›', '๐Ÿ’š', '๐Ÿ’™', '๐Ÿ’œ', '๐Ÿ–ค', '๐Ÿค', '๐ŸคŽ', '๐Ÿ’ฏ', 'โœจ', 'โญ', '๐ŸŒŸ', '๐Ÿ’ซ', '๐ŸŽ‰', '๐ŸŽŠ', '๐Ÿ”ฅ', 'โœ…', 'โŒ'] as $emoji) @endforeach
@push('scripts') @endpush