@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
@if(isset($dataTypeContent->password))
{{ __('voyager::profile.password_hint') }} @endif
@php $dataTypeRows = $dataType->{(isset($dataTypeContent->id) ? 'editRows' : 'addRows' )}; $row = $dataTypeRows->where('field', 'user_belongsto_role_relationship')->first(); if(is_string($row->details)){ $options = json_decode($row->details); } else { $options = $row->details; } @endphp
@php $roles = TCG\Voyager\Models\Role::all(); @endphp
@php $row = $dataTypeRows->where('field', 'user_belongstomany_role_relationship')->first(); if(is_string($row->details)){ $options = json_decode($row->details); } else { $options = $row->details; } @endphp @include('voyager::formfields.relationship')
@if(isset($dataTypeContent->avatar)) @endif
{{ csrf_field() }}
@stop @section('javascript') @stop