@extends('layouts.app') @section('title', $page->meta_title ?? $page->title) @section('meta_description', $page->meta_description) @section('content')

{{ $page->title }}

@if($page->content)
{!! Str::markdown($page->content) !!}
@else
This page has no content yet.
@endif @if($page->html_content)
{!! $page->html_content !!}
@endif {{-- Display Custom Buttons --}} @if($page->buttons && count($page->buttons) > 0)
@foreach($page->buttons as $button) @if(!empty($button['icon'])) @endif {{ $button['text'] }} @endforeach
@endif {{-- Display Bottom Content --}} @if($page->bottom_content)
{!! Str::markdown($page->bottom_content) !!}
@endif {{-- PDF File Display for Notices --}} @if(isset($page->notice) && $page->notice && $page->notice->file_url) @php $fileUrl = $page->notice->file; $embedUrl = null; // Convert Google Drive share link to embed URL if (preg_match('/drive\.google\.com\/file\/d\/([^\/]+)/', $fileUrl, $matches)) { $fileId = $matches[1]; // Use uc?export=view format for direct download $downloadUrl = "https://drive.google.com/uc?export=download&id={$fileId}"; $previewUrl = "https://drive.google.com/file/d/{$fileId}/preview"; } else { $downloadUrl = $fileUrl; $previewUrl = $fileUrl; } @endphp
Attached Document
If PDF doesn't display above, please use "Open in New Tab" or "Download PDF" button.
@endif
@endsection