@php require_frontend_packages(['datatables']); @endphp @extends('layout.default') @if($mode == 'edit') @section('title', $__t('Edit quantity unit')) @else @section('title', $__t('Create quantity unit')) @endif @section('content')

@yield('title')


@if($mode == 'edit') @endif
{{ $__t('A name is required') }}
@if($pluralCount > 2)
@endif
active == 1) checked @endif class="form-check-input custom-control-input" type="checkbox" id="active" name="active" value="1">
@include('components.userfieldsform', array( 'userfields' => $userfields, 'entity' => 'quantity_units' )) {{ $__t('Save & continue to add conversions') }} @if($pluralCount > 2) @endif
@if($mode == "edit") @foreach($defaultQuConversions as $defaultQuConversion) @endforeach @endif
{{ $__t('Factor') }} {{ $__t('Unit') }}
{{ $defaultQuConversion->factor }} {{ FindObjectInArrayByPropertyValue($quantityUnits, 'id', $defaultQuConversion->to_qu_id)->name }}
@stop