<div class="container search">

	<h1>
		<?= __("Search"); ?>
		<small class="text-muted"><?= __("Ready to find a QSO?"); ?></small>
	</h1>

	<div class="card text-center">
	  <div class="card-header">
	    <ul class="nav nav-tabs card-header-tabs">
	      <li class="nav-item">
	        <a class="nav-link" href="<?php echo site_url('search'); ?>"><?= __("Search"); ?></a>
	      </li>
	      <li class="nav-item">
	        <a class="nav-link" href="<?php echo site_url('search/filter'); ?>"><?= __("Advanced Search"); ?></a>
	      </li>
		  <li class="nav-item">
	        <a class="nav-link active" href="<?php echo site_url('search/lotw_unconfirmed'); ?>"><?= __("QSOs unconfirmed on LoTW"); ?></a>
	      </li>
	    </ul>
	  </div>
	  <div class="card-body">
        <?= __("The search displays QSOs which are unconfirmed on LoTW, but the callsign worked has uploaded to LoTW after your QSO date."); ?>
		<?php if ($stations_active_log_only) { ?><br /><span class="badge text-bg-info"><i class="fa-solid fa-info"></i></span> <?= __("All is limited to station locations linked to active logbook") ?><?php } ?>
		<br/><br />
	  	<form method="post" action="" id="search_box" name="test">
			<div class="mb-3 row">
				<label for="callsign" class="w-auto col-form-label"><?= __("Station location"); ?>:</label>
				<select id="station_id" name="station_profile" class="form-select form-select-sm mb-3 w-auto">
					<option value="All"><?= __("All"); ?></option>
					<?php if($station_profile !== FALSE) { foreach ($station_profile->result() as $station) { ?>
						<option value="<?php echo $station->station_id; ?>"><?= __("Callsign"); ?>: <?php echo $station->station_callsign; ?> (<?php echo $station->station_profile_name; ?>)</option>
					<?php } } ?>
				</select>
				<div class="col-sm-2">
					<button onclick="findlotwunconfirmed();" class="btn btn-sm btn-outline-success my-2 my-sm-0" type="submit"><i class="fas fa-search"></i> <?= __("Search"); ?></button>
				</div>
			</div>
		</form>

		<div id="partial_view"></div>

	  </div>
	</div>

</div>
