@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') }} getSetting('group.key')

@endif
{{ method_field("PUT") }} {{ csrf_field() }}
{{-- Payments additional info --}}
In order to be able to receive payment updates from the settings providers, please use these webhooks endpoints:
  • {{route('paypal.payment.update')}}
  • {{route('stripe.payment.update')}}
@foreach($settings as $group => $group_settings)
@foreach($group_settings as $setting)
key}}>

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

@if((env('APP_ENV') != 'production' && env('APP_DEBUG') == true))
@can('delete', Voyager::model('Setting')) @endcan
@endif
key}}>
@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($hasDescription)
{{$settingDetails->description}}
@endif @if(!$loop->last)
key}}> @endif @endforeach
@endforeach
@can('add', Voyager::model('Setting')) @if((env('APP_ENV') != 'production' && env('APP_DEBUG') == true))

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

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