@extends('layouts.customer') @section('title', ($headerSetting->meta_title ?? ($headerSetting->judul ?? 'Download Dokumen Produk')) . ' - Intisolve') @section('meta_description', $headerSetting->meta_description ?? ($headerSetting->deskripsi ?? 'Temukan dan unduh dokumen informasi produk Intisolve, panduan penggunaan, serta katalog resmi di sini.')) @section('content')
{{-- Page Header --}}

{{ $headerSetting->judul ?? (app()->getLocale() === 'en' ? 'Product Document Download' : 'Download Dokumen Produk') }}

{{ $headerSetting->deskripsi ?? (app()->getLocale() === 'en' ? 'Find and download product specifications, user guides, and official documentation here.' : 'Temukan informasi yang bisa Anda simpan di sini') }}

{{-- Download Grid --}} @if($downloads->isEmpty())

{{ app()->getLocale() === 'en' ? 'No documents available for download.' : 'Belum ada dokumen yang tersedia untuk diunduh.' }}

@else
@foreach($downloads as $item)
{{-- Image Container --}}
@if($item->gambar) @php $ext = strtolower(pathinfo($item->gambar, PATHINFO_EXTENSION)); @endphp @if($ext === 'pdf')
{{ $item->judul }}
@else {{ $item->judul }} @endif @else {{-- Placeholder Image Box --}}
{{ $item->judul }}
@endif {{-- Download Overlay Trigger --}}
{{ app()->getLocale() === 'en' ? 'Download Document' : 'Unduh Dokumen' }}
{{-- Card Body --}}
{{ $item->judul }}
@if($item->deskripsi)

{{ $item->deskripsi }}

@else

-

@endif
@endforeach
{{-- Custom Pagination (Sebelumnya & Selanjutnya) --}} @if($downloads->hasPages())
@if($downloads->onFirstPage()) {{ app()->getLocale() === 'en' ? 'Previous' : 'Sebelumnya' }} @else {{ app()->getLocale() === 'en' ? 'Previous' : 'Sebelumnya' }} @endif @if($downloads->hasMorePages()) {{ app()->getLocale() === 'en' ? 'Next' : 'Selanjutnya' }} @else {{ app()->getLocale() === 'en' ? 'Next' : 'Selanjutnya' }} @endif
@endif @endif
@endsection