@php $edit = !is_null($dataTypeContent->getKey()); $add = is_null($dataTypeContent->getKey()); $errors = $errors ?? new \Illuminate\Support\ViewErrorBag(); $currentIcon = (string) ($dataTypeContent->icon ?? ''); $isImg = $dataTypeContent->is_image_icon ?? false; $iconUrl = $dataTypeContent->icon_url ?? null; $faClass = $dataTypeContent->fa_class ?? 'fas fa-leaf'; $citations = is_array($dataTypeContent->citations) ? $dataTypeContent->citations : []; @endphp @extends('voyager::master') @section('page_title', __('voyager::generic.'.($edit ? 'edit' : 'add')).' '.$dataType->getTranslatedAttribute('display_name_singular')) @section('css') @stop @section('page_header')

{{ __('voyager::generic.'.($edit ? 'edit' : 'add')).' '.$dataType->getTranslatedAttribute('display_name_singular') }}

@include('voyager::multilingual.language-selector') @stop @section('content')
@if($edit) @method('PUT') @endif @csrf
@if (isset($errors) && count($errors) > 0)
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
The headline of this core methodology/principle.
Narrative explaining why and how this principle is implemented.
Suitable Image Resolution: Recommended 256 × 256 px (1:1 square ratio, transparent PNG or SVG vector). Rendered at 48px max height on the website for Retina sharpness. Max file size: 2 MB.
@if($isImg && $iconUrl) @else @endif
{{ $dataTypeContent->icon ?: '(No icon set)' }}
Active Icon
— OR upload new image: —
Direct image path (e.g. assets/icons/forest-protection.png), uploaded storage path, or Font Awesome class (e.g. fa-users).
Lower numbers appear first on the homepage.
Inactive principles will be hidden from the homepage.
@forelse($citations as $cite)
@empty
@endforelse
@stop @section('javascript') @stop