@extends('layouts/default') {{-- Page title --}} @section('title') {{ trans('admin/settings/general.labels_title') }} @parent @stop @section('header_right') {{ trans('general.back') }} @stop {{-- Page content --}} @section('content')
@include('partials.custom-label-preview')
@csrf @if (($formMethod ?? 'POST') !== 'POST') @method($formMethod) @endif @if (! empty($importedConfig)) @endif @php $printable = $config['label_printable_area'] ?? $config['printable_area'] ?? null; @endphp
@php $defaultName = $selectedLabel ? 'Copy of '.$selectedLabel : 'Custom Label'; @endphp

Unit: {{ $config['unit'] }} (applies to all dimensions)

@if(isset($sections['supports']))
@include('partials.label-editor-section', [ 'sectionKey' => 'supports', 'section' => $sections['supports'], 'config' => $config, 'inlineFields' => true, 'showLegend' => true, ])
@endif @if(isset($sections['content']))
@include('partials.label-editor-section', [ 'sectionKey' => 'content', 'section' => $sections['content'], 'config' => $config, 'inlineFields' => false, 'showLegend' => true, ])
@endif @if(isset($sections['layout']))
@include('partials.label-editor-section', [ 'sectionKey' => 'layout', 'section' => $sections['layout'], 'config' => $config, 'inlineFields' => false, ])
@endif
@stop @push('js') @livewireScripts @endpush