@php $edit = !is_null($dataTypeContent->getKey()); $add = is_null($dataTypeContent->getKey()); $errors = $errors ?? new \Illuminate\Support\ViewErrorBag(); @endphp @extends('voyager::master') @section('css') @stop @section('page_title', __('voyager::generic.'.($edit ? 'edit' : 'add')).' '.$dataType->getTranslatedAttribute('display_name_singular')) @section('page_header')

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

@include('voyager::multilingual.language-selector') @stop @section('content')
@if($edit) {{ method_field("PUT") }} @endif {{ csrf_field() }}
@if (isset($errors) && count($errors) > 0)
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif @php $dataTypeRows = $dataType->{($edit ? 'editRows' : 'addRows' )}; if ($add && request()->filled('type')) { $dataTypeContent->type = request('type'); } @endphp @foreach($dataTypeRows as $row) @php $display_options = $row->details->display ?? NULL; if ($dataTypeContent->{$row->field.'_'.($edit ? 'edit' : 'add')}) { $dataTypeContent->{$row->field} = $dataTypeContent->{$row->field.'_'.($edit ? 'edit' : 'add')}; } @endphp @if($row->field === 'publication_logo')
Recommended Publication Logo Resolution & Format
  • Recommended Resolution: 300 × 100 px (approx. 3:1 width-to-height ratio, height 60–80px).
  • Recommended Format: Transparent PNG or SVG vector (renders sharply across light and dark backgrounds).
  • Max File Size: 2 MB.
  • Storage Folder: New uploads are stored directly in storage/publication/ without date or month subfolders, and are instantly reusable across all articles.
{{ $dataTypeContent->publication_logo ? basename($dataTypeContent->publication_logo) : '' }}
Selected Logo
— OR upload new image: —
@if ($errors->has($row->field)) @foreach ($errors->get($row->field) as $error) {{ $error }} @endforeach @endif
@else @endif @endforeach
@stop @section('javascript') @stop