@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 @can('update', $custom_fieldset) @endcan
{{ trans('admin/custom_fields/general.reorder') }}{{ 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') }} {{ trans('button.remove') }}
{{$field->pivot->order}} {{$field->name}} {{$field->format}} {{$field->element}} {{ $field->field_encrypted=='1' ? trans('general.yes') : trans('general.no') }} @if ($field->pivot->required)
@csrf
@else
@csrf
@endif
@can('update', $custom_fieldset)
@csrf
@endcan
{{ Form::open(['route' => ["fieldsets.associate",$custom_fieldset->id], 'class'=>'form-horizontal', 'id' => 'ordering']) }}
{{ Form::select("field_id",$custom_fields_list,"",['aria-label'=>'field_id', 'class'=>'select2']) }}
{{ Form::text('order', $maxid, array('class' => 'form-control col-sm-1 col-md-1', 'style'=> 'width: 80px; padding-;right: 10px;', 'aria-label'=>'order', 'maxlength'=>'3', 'size'=>'3')) }}
{{ Form::close() }}
@stop @push('js') @can('update', $custom_fieldset) @endcan @endpush