Rapport-Laravel/resources/views/form/download.blade.php

50 lines
2.4 KiB
PHP
Executable File

<!DOCTYPE html>
<html lang="en">
<head>
@include('layouts.shared/title-meta', ['title' => "Form"])
@include('layouts.shared/head-css', ["mode" => $mode ?? '', "demo" => $demo ?? ''])
<link href="{{asset('assets/libs/sweetalert2/sweetalert2.min.css')}}" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="account-pages mt-2 mb-2">
<div class="container">
<div class="row justify-content-center">
<div class="col-md-8 col-lg-6 col-xl-5">
<div class="card bg-pattern">
@if(isset($pdf_file) && $pdf_file != '')
<div class="card-body p-1">
<iframe src="/storage/{{$folder}}{{$pdf_file}}" style="border: none; width: 100%; height:70vh;"></iframe>
<div class="text-center">
<p class="text-muted font-14 mt-2"> Now click below button to download the PDF</p>
<a href="/storage/{{$folder}}{{$pdf_file}}" download class="btn btn-primary waves-effect waves-light mt-3">Download PDF</a>
<!-- <a href="/" class="btn btn-dark waves-effect waves-light mt-3">Homepage</a> -->
</div>
</div> <!-- end card-body -->
@endif
@foreach($images as $image)
<div class="card-body p-1">
<img src="/storage/{{$folder}}{{$image}}" class="img-fluid">
<div class="text-center">
<p class="text-muted font-14 mt-2"> Now click below button to download </p>
<a href="/storage/{{$folder}}{{$image}}" download class="btn btn-primary waves-effect waves-light mt-3">Download Image</a>
<!-- <a href="/" class="btn btn-dark waves-effect waves-light mt-3">Homepage</a> -->
</div>
</div> <!-- end card-body -->
@endforeach
</div>
<!-- end card -->
</div> <!-- end col -->
</div>
<!-- end row -->
</div>
<!-- end container -->
</div>
<!-- end page -->
</body>
</html>