<div class="row mb-4">
	<div class="col-lg-12 col-md-12 mb-md-0">
		<div class="card">
			<div class="card-header pb-0">
				<div class="row">
					<div class="col-lg-6 col-7">
						<h6>Manage Intro</h6>
					</div>
					<?php
					$activeChecked = "";
					if ($introInfo['active'] == "1") {
						$activeChecked = "checked";
					}
					?>
				</div>
			</div>
			<div class="card-body px-0 pb-2">
				<div class="container">
					<div class="row">
						<div class="col-xl-12 col-lg-12 col-md-12 d-flex flex-column ms-auto me-auto ms-lg-auto me-lg-12">
							<div class="card card-plain">
								<div class="card-body">
									<form action="action.php" method="post" role="form" enctype="multipart/form-data">
  <?php echo '<input type="hidden" name="op_action" value="apps.updateintro">'; ?>
    <?php echo csrf_input(); ?>

										<div class="input-group input-group-outline mb-3 is-filled">
											<label class="form-label">MP4 File</label>
											<input name="mp4file" type="file" class="form-control">
										</div>
										<div class="form-check form-switch d-flex align-items-center mb-3">
											<input class="form-check-input" type="checkbox" id="active" name="active" <?php echo $activeChecked; ?>>
											<label class="form-check-label mb-0 ms-3" for="active">Active</label>
										</div>
										<div class="text-center">
											<button name="updateintro" type="submit" class="btn btn-lg bg-gradient-secondary btn-lg w-100 mt-4 mb-0">Update</button>
										</div>
									</form>
									<hr>
									<div style="text-align:center;">
										<?php
										if (isset($introInfo['path'])) {
										?>
											<video style="width:50%" controls src="intro-videos/<?php echo $introInfo['path']; ?>" />
										<?php
										} ?>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>

			</div>
		</div>
	</div>
</div>