<?php
/**
 * @package     Joomla.Administrator
 * @subpackage  com_messages
 *
 * @copyright   (C) 2008 Open Source Matters, Inc. <https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Router\Route;

HTMLHelper::_('behavior.core');
?>
<form action="<?php echo Route::_('index.php?option=com_messages'); ?>" method="post" name="adminForm" id="adminForm">
	<div class="card">
		<div class="card-body">
			<fieldset>
				<div class="form-group">
					<div class="control-label">
						<?php echo Text::_('COM_MESSAGES_FIELD_USER_ID_FROM_LABEL'); ?>
					</div>
					<div class="p-3 bg-light border rounded">
						<?php echo $this->item->get('from_user_name'); ?>
					</div>
				</div>
				<div class="form-group">
					<div class="control-label">
						<?php echo Text::_('COM_MESSAGES_FIELD_DATE_TIME_LABEL'); ?>
					</div>
					<div class="p-3 bg-light border rounded">
						<?php echo HTMLHelper::_('date', $this->item->date_time, Text::_('DATE_FORMAT_LC2')); ?>
					</div>
				</div>
				<div class="form-group">
					<div class="control-label">
						<?php echo Text::_('COM_MESSAGES_FIELD_SUBJECT_LABEL'); ?>
					</div>
					<div class="p-3 bg-light border rounded">
						<?php echo $this->item->subject; ?>
					</div>
				</div>
				<div class="form-group">
					<div class="control-label">
						<?php echo Text::_('COM_MESSAGES_FIELD_MESSAGE_LABEL'); ?>
					</div>
					<div class="p-3 bg-light border rounded">
						<?php echo $this->item->message; ?>
					</div>
				</div>
				<input type="hidden" name="task" value="">
				<input type="hidden" name="reply_id" value="<?php echo $this->item->message_id; ?>">
				<?php echo HTMLHelper::_('form.token'); ?>
			</fieldset>
		</div>
	</div>
</form>
