@extends('layouts.site') @section('content')

{{$userData->name}}

@if (session()->has('success'))
{!! session()->get('success') !!}
@endif

{{trans('home.client-send-message') }}

@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 =='patient')

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

@else
@endif @endif
@endforeach
@if($treatmentPlan->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
@else
@lang('home.you need the therapist to allow chat with him')
@endif
@endsection @section('scriptSection') @endsection