@extends('layouts/default') {{-- Page title --}} @section('title') Manage {{ trans('admin/custom_fields/general.custom_fields') }} @parent @stop @section('content')

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

@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') }}
{{ link_to_route("admin.custom_fields.show",$fieldset->name,['id' => $fieldset->id]) }} {{ $fieldset->fields->count() }} @foreach($fieldset->models as $model) {{ link_to_route("view/model",$model->name,[$model->id]) }} @endforeach {{ Form::open(array('route' => array('admin.custom_fields.destroy', $fieldset->id), 'method' => 'delete')) }} @if($fieldset->models->count() > 0) @else @endif {{ Form::close() }}

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

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

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

@foreach($custom_fields AS $field) @endforeach
{{ trans('general.name') }} {{ trans('admin/custom_fields/general.field_format') }} {{ trans('admin/custom_fields/general.field_element_short') }} {{ trans('admin/custom_fields/general.fieldsets') }}
{{ $field->name }} {{ $field->format }} {{ $field->element }} @foreach($field->fieldset as $fieldset) {{link_to_route("admin.custom_fields.show",$fieldset->name,[$fieldset->id])}} @endforeach {{ Form::open(array('route' => array('admin.custom_fields.delete-field', $field->id), 'method' => 'delete')) }} @if($field->fieldset->count()>0) @else @endif {{ Form::close() }}
@stop