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

{{ $custom_fieldset->name }} {{ trans('admin/custom_fields/general.fieldset') }}

{{-- Hide the sorting handle if we can't update the fieldset --}} @can('update', $custom_fieldset) @endcan @foreach($custom_fieldset->fields as $field) {{-- Hide the sorting handle if we can't update the fieldset --}} @can('update', $custom_fieldset) @endcan @endforeach
{{ trans('admin/custom_fields/general.order') }} {{ trans('admin/custom_fields/general.field_name') }} {{ trans('admin/custom_fields/general.field_format') }} {{ trans('admin/custom_fields/general.field_element') }} {{ trans('admin/custom_fields/general.encrypted') }} {{ trans('admin/custom_fields/general.required') }}
{{$field->pivot->order}} {{$field->name}} {{$field->format}} {{$field->element}} {{ $field->field_encrypted=='1' ? trans('general.yes') : trans('general.no') }} {{$field->pivot->required ? "REQUIRED" : "OPTIONAL"}} @can('update', $custom_fieldset) Remove @endcan
@can('update', $custom_fieldset) {{ Form::open(['route' => ["fieldsets.associate",$custom_fieldset->id], 'class'=>'form-horizontal', 'id' => 'ordering']) }} {{ Form::checkbox("required","on") }} {{ trans('admin/custom_fields/general.required') }} {{ Form::text("order",$maxid)}} {{ Form::select("field_id",$custom_fields_list,"",["onchange" => "$('#ordering').submit()"]) }} first('field_id'); ?> {{ Form::close() }} @endcan
@stop @section('moar_scripts') @can('update', $custom_fieldset) @endcan @stop