@extends('voyager::master') @section('page_title', __('voyager::generic.viewing').' '.__('voyager::generic.settings')) @section('css') @stop @section('page_header')

{{ __('voyager::generic.settings') }}

@stop @section('content')
@include('voyager::alerts') @if(config('voyager.show_dev_tips'))
{{ __('voyager::generic.how_to_use') }}:

{{ __('voyager::settings.usage_help') }} setting('group.key')

@endif
{{ method_field("PUT") }} {{ csrf_field() }}
@foreach($settings as $group => $group_settings)
@foreach($group_settings as $setting)

{{ $setting->display_name }} @if(config('voyager.show_dev_tips'))setting('{{ $setting->key }}')@endif

@can('delete', Voyager::model('Setting')) @endcan
@if ($setting->type == "text") @elseif($setting->type == "text_area") @elseif($setting->type == "rich_text_box") @elseif($setting->type == "code_editor")
{{ $setting->value ?? '' }}
@elseif($setting->type == "image" || $setting->type == "file") @if(isset( $setting->value ) && !empty( $setting->value ) && Storage::disk(config('voyager.storage.disk'))->exists($setting->value))
@elseif($setting->type == "file" && isset( $setting->value )) @if(json_decode($setting->value) !== null) @foreach(json_decode($setting->value) as $file) @endforeach @endif @endif @elseif($setting->type == "select_dropdown") @elseif($setting->type == "radio_btn")
    @if(isset($options->options)) @foreach($options->options as $index => $option)
  • @endforeach @endif
@elseif($setting->type == "checkbox") @if (isset($options->on) && isset($options->off)) @else @endif @endif
@if(!$loop->last)
@endif @endforeach
@endforeach
@can('add', Voyager::model('Setting'))

{{ __('voyager::settings.new') }}

{{ csrf_field() }}
{{ mb_strtoupper(__('voyager::generic.options')) }}
@endcan
@can('delete', Voyager::model('Setting')) @endcan @stop @section('javascript')
{{ csrf_field() }}
@stop