@extends('layouts.site') @section('content')
@if ($errors->any())
@endif @if(Session::has('status')) @endif

{{$data->user->name}}

{{ $data->main_specialty }}


{{--
@foreach($allMessages as $messageInfo) @endforeach
# {{trans('home.subject')}}
{{$x}} {{ $messageInfo->message }}
--}}
@if($treatInfo->allow_chat==0)
@csrf

@lang('home.if you need to allow the client send messages to you click ')

@else
@csrf

@lang('home.if you need to disallow the client send messages to you click')

@endif @foreach($allMessages as $key=>$messageInfo)
{{date('Y-m-d H:i:s', strtotime($messageInfo->created_at))}}
الإجابة:
@if($messageInfo->answer) {{ $messageInfo->answer }} @else @if( $messageInfo->type =='therapist')

في انتظار رد العميل

@else
@endif @endif
@endforeach
@if($treatInfo->allow_chat)
@csrf {{-- --}}

نص الرسالة

{{ Form::textarea('message',old('message'), ['placeholder' => 'اكتب نص رسالتك كاملة', 'class' => 'form-control forminput' , 'cols' => 20, 'rows' =>5, 'required' => 'required']) }}
@if ($errors->has('message')) {{ $errors->first('message') }} @endif
@endif
@endsection @section('scriptSection') @endsection