@extends('voyager::master') @section('page_title', __('voyager::generic.'.(isset($dataTypeContent->id) ? 'edit' : 'add')).' '.$dataType->display_name_singular) @section('css')
@stop @section('page_header')
{{ __('voyager::generic.'.(isset($dataTypeContent->id) ? 'edit' : 'add')).' '.$dataType->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
{{ __('voyager::generic.name') }}
{{ __('voyager::generic.email') }}
{{ __('voyager::generic.password') }}
@if(isset($dataTypeContent->password))
{{ __('voyager::profile.password_hint') }}
@endif
@can('editRoles', $dataTypeContent)
{{ __('voyager::profile.role_default') }}
@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')
{{ __('voyager::profile.status') }}
ACTIVE
INACTIVE
@endcan @php if (isset($dataTypeContent->locale)) { $selected_locale = $dataTypeContent->locale; } else { $selected_locale = config('app.locale', 'en'); } @endphp
{{ __('voyager::generic.locale') }}
@foreach (Voyager::getLocales() as $locale)
{{ $locale }}
@endforeach
@if(isset($dataTypeContent->avatar))
@endif
{{ __('voyager::generic.save') }}
{{ csrf_field() }}
@stop @section('javascript') @stop