@extends('layouts.admin') @section('title', 'General Settings') @section('header', 'General Settings') @section('content') @php use App\Models\Setting; $groups = ['general' => 'General', 'contact' => 'Contact', 'social' => 'Social', 'advanced' => 'Advanced']; $currentGroup = request('group', 'general'); @endphp
@foreach($groups as $key => $label) {{ $label }} @endforeach
@if(session('success'))
{{ session('success') }}
@endif @if($currentGroup === 'general')

Site Information

@csrf

Site Logo

@csrf
@if(Setting::getValue('site_logo'))
Current Logo
@endif

Contact Information

@csrf
@endif

Add New Setting

@csrf

All {{ ucfirst($currentGroup) }} Settings

@forelse($settings as $setting) @empty @endforelse
Key Value Type Actions
{{ $setting->key }} @if($setting->type === 'textarea') {{ $setting->value }} @elseif($setting->type === 'boolean') {{ $setting->value === 'true' ? 'True' : 'False' }} @elseif($setting->type === 'url' || $setting->type === 'image') {{ $setting->value }} @else {{ $setting->value }} @endif {{ $setting->type }}
@csrf @method('PUT')
@csrf @method('DELETE')
No settings found in this group
@endsection