@extends('adminlte::page') @section('title', 'チャット') @section('content_header')
@stop @section('content')
@if ($messages->count() > 0)
@foreach ($messages as $message) @php $buttonClass = $message->is_pinned ? 'button-go' : 'button-back'; @endphp @if ($message->kind == 'CLINIC') @include('components.chat.search_chat_left', ['message' => $message, 'user' => $message->clinic_staff, 'buttonClass' => $buttonClass]) @else @include('components.chat.search_chat_right', ['message' => $message, 'user' => $employee, 'buttonClass' => $buttonClass]) @endif @endforeach
@else
検索条件に当てはまるものはありませんでした。
キーワードを変えてお試しください。
@endif
@if ($messages->count() > 0)
{{ $messages->appends(request()->input())->links() }}
@endif
@stop @section('css') @stop @section('js') @php $latestMessageId = $messages->first() ? $messages->first()->id : 0; @endphp @include('components.chat.js-chat', ['channel_id' => $channel->id, 'clinic_id' => $clinic_id, 'user' => $employee, 'targetMessageId' => $latestMessageId]) @stop