<?php 

	(defined( 'DASHBOARD_MOD_DIR' ) && isset($ticket)) OR DIE

?>

<?php if( $ticket['status'] == 'open' ): ?>

	<!--- [messager] ---->

	<hr>

	<div class='rounded-3 chat-input-frame'>

		<div class='p-2 px-3 rounded-2 fs-12px user-select-none reply-block'>
			<a href='javascript:void(0)' class='pointer' data-seek></a>
			<a href='javascript:void(0)' class='reply-cancel'>
				<i class='lni lni-close text-danger'></i>
			</a>
			<div class='line-clamp reply-note'>
				I'm fed up of this customer service! <br>
				Give me back my $5,000 USD Immediately <br>
				Pofession genoege 
			</div>
		</div>
		
		<form method='POST'>
		
			<input type='hidden' name='type' value='reply'>
			<input type='hidden' name='parent_id' value=''>
			
			<div class='chat-block position-relative'>
			
				<div class='input-area w-100 grow-wrap'>
					<input type='hidden' name='nonce' value='<?php echo uss::nonce( 'chat' ); ?>'>
					<textarea placeholder='Type here' rows='1' name='message' class='form-control form-control-lg fs-14px' required></textarea>
				</div>
				
				<button class='btn btn-secondary rounded-2 btn-sm'>
					<i class='bi bi-send-fill'></i>
				</button>
				
			</div>
			
		</form>
		
	</div>

<?php else: ?>

	<div class='text-capitalize display-6 text-center'>
		<div class='bg-light p-3'>
			The ticket has been <?php echo $ticket['status']; ?>
		</div>
	</div>

<?php endif; ?>