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