diff --git a/resources/lang/en/button.php b/resources/lang/en/button.php index fe659171f0..438dac3cac 100644 --- a/resources/lang/en/button.php +++ b/resources/lang/en/button.php @@ -20,4 +20,5 @@ return [ 'bulk_actions' => 'Bulk Actions', 'add_maintenance' => 'Add Maintenance', 'append' => 'Append', + 'remove' => 'Remove', ]; diff --git a/resources/views/custom_fields/fieldsets/view.blade.php b/resources/views/custom_fields/fieldsets/view.blade.php index ef58e86368..f4c5f1b682 100644 --- a/resources/views/custom_fields/fieldsets/view.blade.php +++ b/resources/views/custom_fields/fieldsets/view.blade.php @@ -57,6 +57,7 @@ {{$field->element}} {{ $field->field_encrypted=='1' ? trans('general.yes') : trans('general.no') }} + @if ($field->pivot->required)
@csrf @@ -70,11 +71,13 @@
@endif + @can('update', $custom_fieldset) - {{ trans('button.remove') }} - @endcan +
+ @csrf + @endcan @endforeach