@@ -2,26 +2,26 @@
|
||||
@section('title', trans_choice('common.download', 2))
|
||||
|
||||
@section('content')
|
||||
@include('flash::message')
|
||||
<div class="row">
|
||||
<div class="row-sm-12">
|
||||
<h2>{{ trans_choice('common.download', 2) }}</h2>
|
||||
</div>
|
||||
@include('flash::message')
|
||||
<div class="row">
|
||||
<div class="row-sm-12">
|
||||
<h2>{{ trans_choice('common.download', 2) }}</h2>
|
||||
</div>
|
||||
@if(!$grouped_files || \count($grouped_files) === 0)
|
||||
<div class="jumbotron text-center">@lang('downloads.none')</div>
|
||||
@else
|
||||
@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>
|
||||
@if(!$grouped_files || \count($grouped_files) === 0)
|
||||
<div class="jumbotron text-center">@lang('downloads.none')</div>
|
||||
@else
|
||||
@foreach($grouped_files as $group => $files)
|
||||
<div class="row" style="margin-bottom: 40px;">
|
||||
<div class="col-12">
|
||||
<h4 class="description">{{ $group }}</h4>
|
||||
</div>
|
||||
@endforeach
|
||||
@endif
|
||||
|
||||
<div class="col-12">
|
||||
@include('downloads.table', ['files' => $files])
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
@endif
|
||||
@endsection
|
||||
|
||||
|
||||
@@ -1,15 +1,16 @@
|
||||
<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>
|
||||
@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.' '.trans_choice('common.download', $file->download_count) }}</span>
|
||||
</li>
|
||||
@endforeach
|
||||
{{-- only show description is one is provided --}}
|
||||
@if($file->description)
|
||||
- {{$file->description}}
|
||||
@endif
|
||||
<span
|
||||
style="margin-left: 20px">{{ $file->download_count.' '.trans_choice('common.download', $file->download_count) }}</span>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
|
||||
Reference in New Issue
Block a user