@if ($setting->type == "text")
@elseif($setting->type == "text_area")
@elseif($setting->type == "rich_text_box")
@elseif($setting->type == "code_editor")
Warning: Undefined variable $setting in
/var/www/lindinhas.net/resources/views/vendor/voyager/settings/index.blade.php on line
339
Warning: Attempt to read property "details" on null in
/var/www/lindinhas.net/resources/views/vendor/voyager/settings/index.blade.php on line
339
{{ $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)*/)
@php
$imageUrl = null;
$decodedValue = json_decode($setting->value, true);
if (is_array($decodedValue) && isset($decodedValue[0]['download_link'])) {
$imageUrl = Storage::disk(config('voyager.storage.disk'))->url($decodedValue[0]['download_link']);
} elseif (filter_var($setting->value, FILTER_VALIDATE_URL)) {
$imageUrl = Storage::disk(config('voyager.storage.disk'))->url($setting->value);
} else {
$imageUrl = Storage::disk(config('voyager.storage.disk'))->url($setting->value);
}
$imageUrl = urldecode($imageUrl);
@endphp
@if($imageUrl)
@endif
@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")
Warning: Undefined variable $setting in
/var/www/lindinhas.net/resources/views/vendor/voyager/settings/index.blade.php on line
378
Warning: Attempt to read property "details" on null in
/var/www/lindinhas.net/resources/views/vendor/voyager/settings/index.blade.php on line
378
@elseif($setting->type == "radio_btn")
Warning: Undefined variable $setting in
/var/www/lindinhas.net/resources/views/vendor/voyager/settings/index.blade.php on line
390
Warning: Attempt to read property "details" on null in
/var/www/lindinhas.net/resources/views/vendor/voyager/settings/index.blade.php on line
390
@elseif($setting->type == "checkbox")
Warning: Undefined variable $setting in
/var/www/lindinhas.net/resources/views/vendor/voyager/settings/index.blade.php on line
406
Warning: Attempt to read property "details" on null in
/var/www/lindinhas.net/resources/views/vendor/voyager/settings/index.blade.php on line
406
@if (isset($options->on) && isset($options->off))
@else
@endif
@endif