@extends('layouts.frontend.app') @section('title', 'Downloads') @section('meta_keys', 'download') @section('meta_description', 'download') @section('content')
@include('inner.breadcrumb', ['pageTitle' => trans('general.download')])
@forelse ($downloads as $download) @php $fileExtension = pathinfo( $download->file, PATHINFO_EXTENSION, ); $displayName = Helper::getElibraryFileName($fileExtension) ?? 'File'; $cssClass = strtolower( Helper::getElibraryFileName($fileExtension), ); @endphp @empty No records found. @endforelse
SN. Title File Type Category Action
{{ ($downloads->currentPage() - 1) * $downloads->perPage() + $loop->index + 1 }} {{ $download->title }} {{ $displayName }} {{ $mainCategory->title }} {{ trans('general.download') }}
@if (isset($downloads) && !empty($downloads) && !$downloads->isEmpty($downloads)) {!! $downloads->appends(request()->query())->links('layouts.frontend.inc.pagination') !!} @endif
@if (isset($otherCategories) && $otherCategories->count() > 0)

{{ trans('general.download') }}

{{--
--}}
@foreach ($otherCategories as $category)

{{ $category->title }}

@if (!$loop->last)
@endif @endforeach
@endif
@endsection