@php $items = \App\Models\Backend\ContentDownload::published() ->where('download_language', $lang) ->whereIn('download_category', ['REPORT', 'POLICY', 'MANUAL']) ->orderBy('download_date', 'desc') ->get(); $categories = \App\Models\Backend\Ref::where('cat', 'DOWNLOAD_CAT')->orderBy('sort')->pluck('descr', 'code'); @endphp @if($items->isNotEmpty())
Penerbitan

Penerbitan

Koleksi laporan, dasar dan manual rasmi.

@foreach($items as $item) @php $isPdf = $item->download_file && strtolower(pathinfo($item->download_file, PATHINFO_EXTENSION)) === 'pdf'; @endphp
{{ $item->download_title }} {{ $categories[$item->download_category] ?? $item->download_category }} @if($item->download_source){{ $item->download_source }}@endif
@if($item->download_file)
@if($isPdf) Baca Online @endif Muat Turun
@else Segera @endif
@endforeach
@else

Tiada Penerbitan

Tiada penerbitan buat masa ini.

Kembali
@endif