@extends('voyager::master') @section('css') @stop @section('page_title', __('voyager::generic.'.(!is_null($dataTypeContent->getKey()) ? 'edit' : 'add')).' '.$dataType->display_name_singular) @section('page_header')

{{ __('voyager::generic.'.(!is_null($dataTypeContent->getKey()) ? 'edit' : 'add')).' '.$dataType->display_name_singular }}

@include('voyager::multilingual.language-selector') @stop @section('content')
@if(!is_null($dataTypeContent->getKey())) {{ method_field("PUT") }} @endif {{ csrf_field() }}
@if (count($errors) > 0)
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif @php $dataTypeRows = $dataType->{(!is_null($dataTypeContent->getKey()) ? 'editRows' : 'addRows' )}; @endphp @foreach($dataTypeRows as $row) @php $options = json_decode($row->details); $display_options = isset($options->display) ? $options->display : NULL; @endphp @if ($options && isset($options->legend) && isset($options->legend->text)) {{$options->legend->text}} @endif @if ($options && isset($options->formfields_custom)) @include('voyager::formfields.custom.' . $options->formfields_custom) @else @endif @endforeach
{{ csrf_field() }}
@stop @section('javascript') @stop