@extends('voyager::master') @if (isset($dataType->id)) @section('page_title', __('voyager::bread.edit_bread_for_table', ['table' => $dataType->name])) @php $display_name = $dataType->getTranslatedAttribute('display_name_singular'); $display_name_plural = $dataType->getTranslatedAttribute('display_name_plural'); @endphp @else @section('page_title', __('voyager::bread.create_bread_for_table', ['table' => $table])) @endif @section('page_header')
@if (isset($dataType->id)) {{ __('voyager::bread.edit_bread_for_table', ['table' => $dataType->name]) }} @else {{ __('voyager::bread.create_bread_for_table', ['table' => $table]) }} @endif
@php $isModelTranslatable = (!isset($isModelTranslatable) || !isset($dataType)) ? false : $isModelTranslatable; if (isset($dataType->name)) { $table = $dataType->name; } @endphp @include('voyager::multilingual.language-selector') @stop @section('breadcrumbs') @endsection @section('content')
@if(isset($dataType->id)) {{ method_field("PUT") }} @endif {{ csrf_field() }}

{{ ucfirst($table) }} {{ __('voyager::bread.bread_info') }}

@if($isModelTranslatable) @include('voyager::multilingual.input-hidden', [ 'isModelTranslatable' => true, '_field_name' => 'display_name_singular', '_field_trans' => get_field_translations($dataType, 'display_name_singular') ]) @endif
@if($isModelTranslatable) @include('voyager::multilingual.input-hidden', [ 'isModelTranslatable' => true, '_field_name' => 'display_name_plural', '_field_trans' => get_field_translations($dataType, 'display_name_plural') ]) @endif


@if (isset($scopes) && isset($dataType))
@endif

{{ __('voyager::bread.edit_rows', ['table' => $table]) }}:

{{ __('voyager::database.field') }}
{{ __('voyager::database.visibility') }}
{{ __('voyager::database.input_type') }}
{{ __('voyager::bread.display_name') }}
{{ __('voyager::database.optional_details') }}
@php $r_order = 0; @endphp @foreach($fieldOptions as $data) @php $r_order += 1; @endphp @if(isset($dataType->id))