@extends('layouts.app') @section('title') {{__("Setting")}} - @endsection @section('content')
{{-- list side bar start--}}
@include('components.err')

{{__("Tips")}}

  • {{__("Recommends")}}

{{__("Sections")}}

@foreach(\App\Models\Setting::groupBy('section')->pluck('section')->toArray() as $sec) {{__(ucfirst($sec))}} @endforeach

{{__("Add new setting")}}

@if(auth()->user()->hasRole('developer'))
@csrf
@endif
@csrf @foreach(\App\Models\Setting::groupBy('section')->pluck('section')->toArray() as $sec)
@foreach($settings as $setting) @if($setting->section == $sec) @include('components.setting-field') @endif @endforeach
@endforeach
 
@endsection