@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 {{--this +1 needs to exist to keep the first row from reverting to 0 if you edit/delete fields in/from a fielset--}} @endforeach @can('update', $custom_fieldset) @endcan
{{ trans('admin/custom_fields/general.reorder') }} {{ 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->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-inline', 'id' => 'ordering']) }}
{{ Form::select("field_id",$custom_fields_list,"",['aria-label'=>'field_id', 'class'=>'select2', 'style' => 'min-width:400px;']) }}
{{ Form::close() }}
@stop @push('js') @can('update', $custom_fieldset) @endcan @endpush