@extends('adminlte::page') @section('title', 'チャット') @section('content_header')
@stop @section('content')
@foreach ($messages as $message) @php $buttonClass = $message->is_pinned ? 'button-go' : 'button-back'; @endphp @if ($message->kind == 'OSADA') @include('components.chat.chat_left', ['message' => $message, 'user' => $message->employee, 'buttonClass' => $buttonClass]) @else @include('components.chat.chat_right', ['message' => $message, 'user' => $staff, 'buttonClass' => $buttonClass]) @endif @endforeach
@csrf
{{--
--}}
@php $userAgent = $_SERVER['HTTP_USER_AGENT']; $isDesktop = strpos($userAgent, 'Windows') !== false || strpos($userAgent, 'Macintosh') !== false; @endphp
@if ($isDesktop)

{!! __("clinic-repair-request.create03.span_file_drag") !!}

{!! __("clinic-repair-request.create03.text_or") !!}


@else
@endif
@if(!empty($files)) @foreach($files as $id => $file)

{{ \Arr::get($file, 'name') }}

@endforeach @endif
@include('clinic.chat.modal.pinned_message', ['pinnedmessages' => $pinnedMessages]) @stop @section('css') @stop @section('js') @include('components.chat.js-chat', ['channel_id' => $channel->id, 'clinic_id' => 0, 'user' => $staff, 'targetMessageId' => $targetChatId]) @stop