@props([ 'resource', 'variables', 'type', 'title', 'view', 'variablesLabel', ]) @php $alphabeticalPositions = $variables->sortBy('key')->values()->pluck('id')->flip(); $sharedVariableRows = $variables ->map(fn($variable) => [ 'key' => mb_strtolower($variable->key), 'comment' => mb_strtolower($variable->comment ?? ''), 'scope' => mb_strtolower(str($type)->headline()), ]) ->values(); @endphp
{{ $view === 'normal' ? 'Developer view' : 'Normal view' }} {{ $view === 'normal' ? 'Developer' : 'Normal' }} @if ($view === 'normal')
@can('update', $resource) @endcan
@if ($variables->isEmpty())
@else
Name Scope Comment Multiline
@foreach ($variables as $env) @endforeach
@endif @else
@endif