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

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

@include('voyager::multilingual.language-selector') @stop @section('content')
@if(isset($dataTypeContent->id)) {{ method_field("PUT") }} @endif {{ csrf_field() }}
@if (count($errors) > 0)
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif @php $dataTypeRows = $dataType->{(isset($dataTypeContent->id) ? '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->formfields_custom)) @include('voyager::formfields.custom.' . $options->formfields_custom) @else @endif @endforeach
{{ csrf_field() }}
@stop @section('javascript') @stop