@extends('frontend.layout') @section('title', 'Terms of Service — ' . config('app.name')) {{-- Opt out of the marketing nav + footer chrome. The Terms page is usually reached from the login screen, where dropping a user into the full marketing site is jarring. --}} @section('hide_chrome', '1') @php // Admin can save EITHER a structured array (subtitle / sections[]) // OR a raw HTML string (whole-page template). Detect which one and // render the right path below. $rawHtml = is_string($content) && trim($content) !== '' ? $content : null; $c = is_array($content) ? $content : []; $sections = $c['sections'] ?? []; @endphp @section('content')
{{-- Header --}}

Terms of Service

{{ __('Please read these terms carefully before using our platform.') }}

Last Updated: {{ $c['last_updated'] ?? '' }}
Legally Binding
{{-- Body: either admin-pasted raw HTML, or the structured card list. --}} @if($rawHtml)
{!! $rawHtml !!}
@else
@foreach($sections as $index => $section) @if(!empty($section['title']))
{{ str_pad($index + 1, 2, '0', STR_PAD_LEFT) }}

{{ $section['title'] }}

{{ $section['content'] ?? '' }}

@endif @endforeach
@endif {{-- Bottom CTA --}}

{{ __('Questions about our terms?') }} {{ __('Contact us') }}

@endsection