@extends('frontend.layout') @section('title', 'Refund Policy — ' . config('app.name')) {{-- See terms.blade.php — same rationale for hiding the chrome. --}} @section('hide_chrome', '1') @php // Admin can save EITHER a structured array (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 --}}

Refund Policy

{{ __('We want you to be happy with your purchase. Here\'s our refund policy.') }}

Last Updated: {{ $c['last_updated'] ?? '' }}
Buyer Protection
{{-- 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 --}}

{{ __('Need a refund?') }} {{ __('Contact our support team') }}

@endsection