@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')
@include('voyager::alerts')
@if(isset($dataTypeContent->id)) {{ method_field("PUT") }} @endif {{ csrf_field() }}
@if (count($errors) > 0)
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif @foreach($dataType->addRows as $row)
{!! Voyager::formField($row, $dataType, $dataTypeContent) !!}
@endforeach
{{ __('voyager::generic.select_all') }} / {{ __('voyager::generic.deselect_all') }}
    @foreach(Voyager::model('Permission')->all()->groupBy('table_name') as $table => $permission)
    • @foreach($permission as $perm)
    • key, $role_permissions)) checked @endif>
    • @endforeach
  • @endforeach
{{ csrf_field() }}
@stop @section('javascript') @stop