@extends('layouts.master')
@section('title', strip_tags($page->title) . ' | ' . setting('site.title', 'Farmers For Forests'))
@php
$policySlugs = ['privacy-policy', 'donation-policy', 'terms-of-service', 'grievances'];
$isPolicyPage = in_array($page->slug, $policySlugs, true);
// module.css scopes page-specific rules under one of these classes on the
// page's top-level container (previously set as a hardcoded
class).
$pageCssClass = match ($page->slug) {
'approach' => 'mission-vision',
'values' => 'our-values',
default => '',
};
// Seeded pages listed here already ship their own container/row/col
// markup inside body, so wrapping them again would double-constrain
// their width.
$selfContainedSlugs = [
'approach',
'values',
'forest-protection',
'agro-forestry',
'urban-biodiversity',
'human-elephant-conflict-prevention',
'climate-change-education',
'our-technology',
'our-mistakes',
'playbooks-learnings',
'contact-us',
];
$wrapBody = !in_array($page->slug, $selfContainedSlugs, true) && !$isPolicyPage;
@endphp
@if($isPolicyPage)
@push('custom-css')
@endpush
@endif
@section('content')
@if($isPolicyPage)
{!! $page->heading ?: $page->title !!}
@if ($wrapBody)
@else
{!! $page->body !!}
@endif
@endif
@endsection
@if($isPolicyPage)
@section('scripts')
@endsection
@endif