<div class="server">
	<h3>{name}</h3>

	<div class="map-image" style="background: url({map_img});"></div>

	<p><font color="#e2771b"><i class="fas fa-image"></i></font> Карта: {map_name}</p>
	<p onclick="get_players({id});" data-toggle="modal" data-target="#server{id}"><font color="#e2771b"><i class="fas fa-users"></i></font> Игроков: {now}/{max}</p>
	<p><a href="steam://connect/{address}" title="Подключиться к серверу"><font color="#e2771b"><i class="fas fa-map-marker-alt"></i></font> {address}</a></p>

	<div class="modal fade" id="server{id}">
		<div class="modal-dialog modal-lg">
			<div class="modal-content">
				<div class="modal-header">
					<h4 class="modal-title">Игроки</h4>
					<button type="button" class="close" data-dismiss="modal" aria-label="Close">
						<span aria-hidden="true">×</span>
					</button>
				</div>
				<div class="modal-body">
					<div class="table-responsive mb-0">
						<table class="table table-bordered">
							<thead>
								<tr>
									<td>#</td>
									<td>Ник</td>
									<td>Убийств</td>
									<td>Время</td>
									{if('{rcon}' == '1' && isset($_SESSION['id']) && is_worthy_specifically("s", {id}))}
									<td>Действие</td>
									{/if}
								</tr>
							</thead>
							<tbody id="players{id}">
								<tr>
									<td colspan="10">
										<div class="loader"></div>
									</td>
								</tr>
							</tbody>
						</table>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>