@extends('admin.layouts.container') @section('content')

{{ $head ?? '' }}

@if($visitorMessage ?? '' && $visitorMessage->id ?? '') @method('PUT') @endif @csrf @if ($visitorMessage ?? '')
@if(in_array('name', getContactUsFields($routeName)))
@endif @if(in_array('email', getContactUsFields($routeName)))
@endif @if(in_array('phone', getContactUsFields($routeName)))
@endif
{{-- @if(in_array('reservation_id', getContactUsFields($routeName)) && $visitorMessage->reservation()->where('deleted_at', null)->exists()) @endif --}} @if(in_array('type_id', getContactUsFields($routeName)))
@endif @if(in_array('item_id', getContactUsFields($routeName)))
@endif @if(in_array('created_at', getContactUsFields($routeName)))
@endif
@if(in_array('subject', getContactUsFields($routeName)))
@endif
@if(in_array('image', getContactUsFields($routeName)) && is_file($visitorMessage->image))
@endif @endif {{-- Start replies container--}} @if ($replies ?? false) @foreach ($replies as $reply)
{{ $reply->user->name ?? "" }} {{$reply->created_at}}
{{ $reply->subject }} {!! $reply->reply !!}
@endforeach @endif {{-- End replies container--}} @if(in_array($routeName, ['visitorMessages']))

{{ $edit ? ( meta('reply', $lang) ?? __('visitormessages::visitor_messages.replying_message') ) : __('visitormessages::visitor_messages.send_msg') }}

email ?? "") }}">
@else @endif
@endsection @section('inner_js') {{-- --}} @endsection