@extends('layouts.school') @section('title', 'Website') @section('header', 'Website') @php $tab = request('tab', 'branding'); $tabs = [ 'branding' => 'Branding & Contact', 'theme' => 'Theme', 'content' => 'Homepage Content', 'sections' => 'Homepage Sections', 'navigation' => 'Navigation & Footer', 'seo' => 'SEO', ]; $branding = $ws->branding(); $contact = $ws->contact(); $social = $ws->social(); $seo = $ws->seo(); @endphp @section('content')

Public site: {{ $publicUrl }}

{{-- Tabs --}}
@foreach ($tabs as $key => $label) {!! $label !!} @endforeach
@if (session('success'))
{{ session('success') }}
@endif @if ($errors->any())
{{ $errors->first() }}
@endif @if ($tab === 'branding')
@csrf @method('PUT')

Identity

@if ($branding['logo']) Logo @endif
Favicon

PNG, ICO, JPG or WebP up to 2MB. Leave empty to keep the current one.

@if ($favicon['is_default'])

Using platform default favicon. Upload a file above to set a custom one.

@else
Custom favicon active @csrf @method('DELETE')
@endif

Brand colors

@foreach ([['color_primary', 'Primary', $branding['primary']], ['color_secondary', 'Secondary', $branding['secondary']], ['color_accent', 'Accent', $branding['accent']]] as [$name, $label, $value])
{{ strtoupper($value) }}
@endforeach

Fonts

Contact information

whatsapp()['enabled'])>

Social media

@foreach ([['social_facebook', 'Facebook', $social['facebook']], ['social_instagram', 'Instagram', $social['instagram']], ['social_x', 'X (Twitter)', $social['x']], ['social_youtube', 'YouTube', $social['youtube']], ['social_linkedin', 'LinkedIn', $social['linkedin']]] as [$field, $label, $value])
@endforeach
@elseif ($tab === 'theme')
@csrf @method('PUT')

Choose a theme

Themes set the default palette and fonts. Custom colors from the Branding tab always win.

@foreach ($themes as $key => $theme) @endforeach
@elseif ($tab === 'content')
@csrf @method('PUT')

Hero banner

Welcome section

Principal's message

@if ($ws->get('website.content.principal_photo')) Principal @endif

"Why choose us" highlights

@foreach ($ws->whyUs() as $i => $item)
@endforeach

Facilities

@foreach ($ws->facilities() as $i => $item)
@endforeach

Admissions call-to-action

Newsletter signup (footer)

@elseif ($tab === 'sections')
@csrf @method('PUT')

Homepage sections

Tick the sections to show on your homepage and arrange their order with the arrows.

    @foreach ($ws->sections() as $key) @php $meta = $sectionCatalog[$key]; @endphp
  • ☰ disabledSections()))>

    {{ $meta['label'] }}

    {{ $meta['description'] ?? '' }}

  • @endforeach
@elseif ($tab === 'navigation') @elseif ($tab === 'seo')
@csrf @method('PUT')

:page is replaced by the page name.

@if ($seo['og_image']) OG image @endif
@endif
@endsection