@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')