Add downloads page
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
@extends('app')
|
||||
@section('title', 'downloads')
|
||||
|
||||
@section('content')
|
||||
@include('flash::message')
|
||||
<div class="row">
|
||||
<div class="row-sm-12">
|
||||
<h2 class="description">Downloads</h2>
|
||||
</div>
|
||||
</div>
|
||||
@foreach($grouped_files as $group => $files)
|
||||
<div class="row" style="margin-bottom: 40px;">
|
||||
<div class="col-12">
|
||||
<h4 class="description">{{ $group }}</h4>
|
||||
</div>
|
||||
|
||||
<div class="col-12">
|
||||
@include('downloads.table', ['files' => $files])
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
@endsection
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
<ul class="list-group">
|
||||
@foreach($files as $file)
|
||||
<li class="list-group-item">
|
||||
<a href="{{route('frontend.downloads.download', [$file->id])}}" target="_blank">
|
||||
{{ $file->name }}
|
||||
</a>
|
||||
|
||||
{{-- only show description is one is provided --}}
|
||||
@if($file->description)
|
||||
- {{$file->description}}
|
||||
@endif
|
||||
<span style="margin-left: 20px">{{$file->download_count}} downloads</span>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
Reference in New Issue
Block a user