@extends('layouts.admin') @section('title', 'Settings') @section('heading', 'Settings') @section('content') @php $icon = function (string $title): string { $t = strtolower($title); return match (true) { str_contains($t, 'contact'), str_contains($t, 'email'), str_contains($t, 'phone') => 'phone', str_contains($t, 'social') => 'users', str_contains($t, 'regist'), str_contains($t, 'legal'), str_contains($t, 'tax') => 'shield', str_contains($t, 'pay'), str_contains($t, 'donat') => 'heart', str_contains($t, 'seo'), str_contains($t, 'search') => 'search', str_contains($t, 'address'), str_contains($t, 'location') => 'pin', default => 'cog', }; }; @endphp

Site settings

Contact details, registrations and impact numbers shown across your website.

View website
@csrf @method('PUT') @foreach ($sections as $section)

{{ $section['title'] }}

@foreach ($section['fields'] as $f) @php $err = $errors->first($f['key']); $id = 's-'.$f['key']; $val = old($f['key'], \App\Models\Setting::get($f['key'], '')); @endphp
! empty($f['half'])])>
@if ($f['type'] === 'textarea') @else @endif
@if (! empty($f['hint']))

{{ $f['hint'] }}

@endif @if ($err)

{{ $err }}

@endif
@endforeach
@endforeach

Impact numbers

Shown on the home and Our Impact pages. Leave a row empty to hide it. Use real, verifiable figures.

@foreach ($stats as $i => $row)
Number {{ $i + 1 }}
@endforeach
Changes go live on the website straight away.
@endsection