@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 ?? false; $iconUrl = $dataTypeContent->icon_url ?? null; $faClass = $dataTypeContent->fa_class ?? 'fa-solid fa-leaf'; @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
@if($edit) Unique machine identifier for template rendering. @else Unique machine identifier (lowercase, words separated by underscores, e.g. trees_planted). @endif
The counter value displayed prominently on the homepage.
Description text displayed next to or below the number.
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/carbon.png), uploaded storage path, or Font Awesome class (e.g. fa-leaf).
@stop @section('javascript') @stop