<?php $this->layout('layouts/main'); ?>

<section class="section download-section">
	<div class="container">
		<div class="row">
			<div class="col-md-12">
				<?php $this->insert('components/breadcrumb', ['items' => [
					[
						"url" => url('download'),
						"text" => t__("Download")
					],
					[
						"text" => $file["name"]
					]
				]]) ?>
			</div>
			<div class="col-md-12">
				<div class="card">
					<div class="card-header">
						<h2 class="card-title"><?php echo $file["name"]; ?></h2>
					</div>
					<div class="card-body">
						<div class="ck-content">
							<?php echo $file["content"]; ?>
						</div>
						<div class="mt-3">
							<a class="btn btn-success" href="<?php echo $file["downloadURL"]; ?>" rel="external">
								<i class="shi-download me-1"></i> <?php e__('Download') ?>
							</a>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</section>