@extends('frontend.en.layouts.master') @section('content') @php // If you have language switching later, you can change this easily. $title = $content->title ?? 'Transparency'; $desc = $content->description ?? null; // File size helper (bytes -> KB/MB) $humanSize = function ($bytes) { $bytes = (int)($bytes ?? 0); if ($bytes <= 0) return null; $units = ['B','KB','MB','GB','TB']; $i = 0; while ($bytes >= 1024 && $i < count($units)-1) { $bytes /= 1024; $i++; } return round($bytes, 2).' '.$units[$i]; }; $downloadUrl = $content->file_path ? asset($content->file_path) : null; $imageUrl = $content->image_path ? asset($content->image_path) : null; @endphp
{{-- ===== Page Title + Breadcrumbs ===== --}}
Transparency

{!! $title !!}

{{-- ===== Details ===== --}}
{{-- Main Content --}}
{{-- Title --}}

{!! $title !!}

{{-- Meta (optional) --}} {{-- Image (optional) --}} @if ($imageUrl)
{{ strip_tags($title) }}
@endif {{-- Description --}} @if($desc)
{!! $desc !!}
@else
No description available for this item.
@endif {{-- File Download --}} @if ($downloadUrl)
{{ $content->file_name ?? 'Download file' }}
@if($content->file_mime) {{ $content->file_mime }} @endif @if($content->file_size) • {{ $humanSize($content->file_size) }} @endif
@endif
{{-- Sidebar --}}
@endsection