@extends('layouts/default') {{-- Page title --}} @section('title') Manage {{ trans('admin/custom_fields/general.custom_fields') }} @parent @stop @section('content') @can('view', \App\Models\CustomFieldset::class)

{{ trans('admin/custom_fields/general.fieldsets') }}

@can('create', \App\Models\CustomFieldset::class) {{ trans('admin/custom_fields/general.create_fieldset') }} @endcan
@if(isset($custom_fieldsets)) @foreach($custom_fieldsets AS $fieldset) @endforeach @endif
{{ trans('general.name') }} {{ trans('admin/custom_fields/general.qty_fields') }} {{ trans('admin/custom_fields/general.used_by_models') }} Actions
{{ link_to_route("fieldsets.show",$fieldset->name,['fieldset' => $fieldset->id]) }} {{ $fieldset->fields->count() }} @foreach($fieldset->models as $model) {{ $model->name }} @endforeach @can('delete', $fieldset) {{ Form::open(['route' => array('fieldsets.destroy', $fieldset->id), 'method' => 'delete']) }} @if($fieldset->models->count() > 0) @else @endif {{ Form::close() }} @endcan

{{ trans('admin/custom_fields/general.about_fieldsets_title') }}

{{ trans('admin/custom_fields/general.about_fieldsets_text') }}

@endcan @can('view', \App\Models\CustomField::class)

{{ trans('admin/custom_fields/general.custom_fields') }}

@can('create', \App\Models\CustomField::class) {{ trans('admin/custom_fields/general.create_field') }} @endcan
@foreach($custom_fields as $field) @endforeach
{{ trans('general.name') }} Help Text Email DB Field {{ trans('admin/custom_fields/general.field_format') }} {{ trans('admin/custom_fields/general.field_element_short') }} {{ trans('admin/custom_fields/general.fieldsets') }} Actions
{{ $field->name }} {{ $field->help_text }} {!! ($field->show_in_email=='1') ? '' : '' !!} {{ $field->convertUnicodeDbSlug() }} @if ($field->convertUnicodeDbSlug()!=$field->db_column)
WARNING. This field is in the custom fields table as {{ $field->db_column }} but should be {{ $field->convertUnicodeDbSlug() }}. @endif
{{ $field->format }} {{ $field->element }} @foreach($field->fieldset as $fieldset) {{ $fieldset->name }} @endforeach @can('update', $field) Edit @endcan @can('delete', $field) {{ Form::open(array('route' => array('fields.destroy', $field->id), 'method' => 'delete', 'style' => 'display:inline-block')) }} @if($field->fieldset->count()>0) @else @endif {{ Form::close() }} @endcan
@endcan @stop @section('moar_scripts') @include ('partials.bootstrap-table') @stop