Format all blade templates to 2 spaces #530 (#531)

This commit is contained in:
Nabeel S
2020-02-01 13:05:56 -05:00
committed by GitHub
parent 06b47d97e0
commit 59d09c0cec
254 changed files with 7109 additions and 6992 deletions
@@ -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>