@component('app_settings::input_group', compact('field'))
@if( $filePath = \setting($field['name'])) @php $fileUrl = \Storage::disk(Arr::get($field, 'disk', 'public'))->url($filePath) @endphp @if(in_array(pathinfo($filePath, PATHINFO_EXTENSION), ["gif", "jpg", "jpeg", "png", "tiff", "tif"])) {{ $field['name'] }} @else View {{ $field['label'] }} @endif @endif @endcomponent