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

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

@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
@if(isset($dataTypeContent->password))
{{ __('voyager::profile.password_hint') }} @endif
@can('editRoles', $dataTypeContent)
@php $dataTypeRows = $dataType->{(isset($dataTypeContent->id) ? 'editRows' : 'addRows' )}; $row = $dataTypeRows->where('field', 'user_belongsto_role_relationship')->first(); $options = $row->details; @endphp @include('voyager::formfields.relationship')
@php $row = $dataTypeRows->where('field', 'user_belongstomany_role_relationship')->first(); $options = $row->details; @endphp @include('voyager::formfields.relationship')
@endcan @php if (isset($dataTypeContent->locale)) { $selected_locale = $dataTypeContent->locale; } else { $selected_locale = config('app.locale', 'en'); } @endphp
@if(isset($dataTypeContent->avatar)) @endif
{{ csrf_field() }}
@stop @section('javascript') @stop