@php $edit = !is_null($dataTypeContent->getKey()); $add = is_null($dataTypeContent->getKey()); @endphp @extends('voyager::master') @section('css') @stop @section('page_title', __('voyager::generic.'.($edit ? 'edit' : 'add')).' '.$dataType->display_name_singular) @section('page_header') @include('voyager::multilingual.language-selector') @endsection @section('content')
@include('voyager::multilingual.language-selector')
@if($edit) {{ method_field("PUT") }} @endif {{ csrf_field() }} @if (count($errors) > 0)
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif @php $dataTypeRows = $dataType->{($edit ? 'editRows' : 'addRows' )}; @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 (isset($row->details->legend) && isset($row->details->legend->text)) {{ $row->details->legend->text }} @endif
type == "checkbox") style="border-radius: 8px;border: 1px solid var(--input-border);margin-top: 12px;margin-bottom: 12px;padding-top: 6px;padding-bottom: 6px;" @endif @if($row->flex) style="flex: {{ $row->flex }}" @endif>
@if($row->is_empty)
@endif @if($display_options && isset($display_options->clear) && $display_options->clear == true)
@endif @endforeach
@section('submit-buttons') @stop @yield('submit-buttons')
{{ csrf_field() }}
{{--
{{ __('voyager::generic.guide') }}

{{ __('voyager::generic.lorem_ipsum') }}

--}}
@endsection @section('javascript') @endsection