@if(!$modal)
@else @if($start)

{{$settings->header_one}}

{{$settings->description_one}}

{{$settings->header_two}}

{{$settings->description_two}}

@if($email_enter) @if($settings->start_by_email)
@error('email') {{$message}} @enderror @if($settings->start_by_phone)
Use phone number
@endif
@elseif($settings->start_by_phone)
@error('phone') {{$message}} @enderror
@endif @else @if($settings->start_by_phone)
@error('phone') {{$message}} @enderror
Using email address
@endif @endif
@else

{{$settings->header_one}}

{{$settings->description_one}}

@forelse($botMessages->messages ?? [] as $message) @if($message->type == 'Inbound')
@if($message->attachment != null) @if($message->mime_type == 'audio/ogg; codecs=opus') @elseif($message->mime_type == 'video/mp4')

{{ $message->text }}

@elseif($message->mime_type == 'application/pdf') attachment) }}" download> attachment) }}" type="application/pdf" width="100%" height="100%">

Alternative text - include a link attachment) }}">to the PDF!

@elseif($message->mime_type == 'application/vnd.openxmlformats-officedocument.wordprocessingml.document' ) attachment) }}" download> @elseif( $message->mime_type == 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet') attachment) }}" download> @else attachment) }}" target="_blank" > attachment) }}" alt="{{$message->attachment}}" style="padding: 0 37px;width: 280px">

{{ $message->message }}

@endif @else {{ $message->message }} @endif

{{$message->created_at->format('D h:i:A')}}

@else
mdo
@if($message->attachment != null) @if($message->mime_type == 'audio/ogg; codecs=opus') @elseif($message->mime_type == 'video/mp4')

{{ $message->text }}

@elseif($message->mime_type == 'application/pdf' ) attachment) }}" download> attachment) }}" type="application/pdf" width="100%" height="100%">

Alternative text - include a link attachment) }}">to the PDF!

@elseif($message->mime_type == 'application/vnd.openxmlformats-officedocument.wordprocessingml.document' ) attachment) }}" download> @elseif( $message->mime_type == 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet') attachment) }}" download> @else attachment) }}" target="_blank" > attachment) }}" alt="{{$message->attachment}}" style="padding: 0 17px;width: 280px">

{{ $message->message }}

@endif @else {!! $message->message !!} @endif
{{$message->created_at->format('D h:i:A')}}
@endif @empty @endforelse @forelse($messages->messages ?? [] as $message) @if($message->type == 'Inbound')
@if($message->attachment != null) @if($message->mime_type == 'audio/ogg; codecs=opus') @elseif($message->mime_type == 'video/mp4')

{{ $message->text }}

@elseif($message->mime_type == 'application/pdf') attachment) }}" download> attachment) }}" type="application/pdf" width="100%" height="100%">

Alternative text - include a link attachment) }}">to the PDF!

@elseif($message->mime_type == 'application/vnd.openxmlformats-officedocument.wordprocessingml.document' ) attachment) }}" download> @elseif( $message->mime_type == 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet') attachment) }}" download> @else attachment) }}" target="_blank" > attachment) }}" alt="{{$message->attachment}}" style="padding: 0 37px;width: 280px">

{{ $message->message }}

@endif @else {{ $message->message }} @endif

{{$message->created_at->format('D h:i:A')}}

@else
mdo
@if($message->attachment != null) @if($message->mime_type == 'audio/ogg; codecs=opus') @elseif($message->mime_type == 'video/mp4')

{{ $message->text }}

@elseif($message->mime_type == 'application/pdf' ) attachment) }}" download> attachment) }}" type="application/pdf" width="100%" height="100%">

Alternative text - include a link attachment) }}">to the PDF!

@elseif($message->mime_type == 'application/vnd.openxmlformats-officedocument.wordprocessingml.document' ) attachment) }}" download> @elseif( $message->mime_type == 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet') attachment) }}" download> @else attachment) }}" target="_blank" > attachment) }}" alt="{{$message->attachment}}" style="padding: 0 17px;width: 280px">

{{ $message->message }}

@endif @else {{ $message->message }} @endif
{{$message->created_at->format('D h:i:A')}}
{{--
--}} {{--
--}} {{--
--}} {{-- mdo--}} {{--
--}} {{--
--}} {{-- @if($message->attachment != null)--}} {{-- attachment) }}" alt="{{$message->attachment}}" height="90px">--}} {{--

{{ $message->message }}

--}} {{-- @else--}} {{-- {{$message->message}}--}} {{-- @endif--}} {{--
--}} {{--
--}} {{--
--}} {{--

{{$message->created_at->format('D h:i:A')}}

--}}
@endif @empty @endforelse

@if($counter) @if(!$counterDownRe)
The session will be closed after : 00:00:59
@endif @endif @if(!$counterDownRe)
@if ($attachment)
@if( in_array($attachment->extension(), ['png','jpg','jpeg','gif']) ) @endif @if( in_array($attachment->extension(), ['wav', 'mp3']) ) @endif @if( $attachment->extension() === 'pdf') @endif @if( $attachment->extension() == 'docx') @endif @if( $attachment->extension() == 'xlsx') @endif @if( $attachment->extension() === 'mp4') @endif
@if( in_array($attachment->extension(), ['png','jpg','jpeg','gif','pdf','wav','mp3','docx','xlsx','mp4']) )
@endif @endif @if($showEmoji) @endif
@error('attachment') {{ $message }} @enderror @error('body') {{ $message }} @enderror
@else
Selected Rating: {{ $rating }}
@endif
@endif @endif