A free open source IT asset/license management system
Replace inline errors in blades with new blade version
snipea0ba9655dfe6
diff --git a/resources/views/accessories/checkin.blade.php b/resources/views/accessories/checkin.blade.phpindex b1af8a860d..d61b6a6b51 100755--- a/resources/views/accessories/checkin.blade.php+++ b/resources/views/accessories/checkin.blade.php@@ -41,7 +41,7 @@:value="old('checkin_at', date('Y-m-d'))"end_date="0d"/>- {!! $errors->first('checkin_at', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="checkin_at" /></div></div></div>diff --git a/resources/views/accessories/checkout.blade.php b/resources/views/accessories/checkout.blade.phpindex 91d7c1a0cb..caf7320db2 100755--- a/resources/views/accessories/checkout.blade.php+++ b/resources/views/accessories/checkout.blade.php@@ -48,7 +48,7 @@<input class="form-control" type="number" name="checkout_qty" id="checkout_qty" value="{{ old('checkout_qty', 1) }}" min="1" max="{{ $accessory->numRemaining() }}" aria-label="{{ trans('general.qty') }}" /></div></div>- {!! $errors->first('checkout_qty', '<div class="col-md-8 col-md-offset-3"><span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span></div>') !!}+ <div class="col-md-8 col-md-offset-3"><x-form.error name="checkout_qty" /></div></div>@if ($accessory->requireAcceptance() || (string) $snipeSettings->require_accept_signature === '1' || $accessory->getEula() || ($snipeSettings->webhook_endpoint != ''))diff --git a/resources/views/accessories/edit.blade.php b/resources/views/accessories/edit.blade.phpindex 072c2dee7b..76e1961000 100644--- a/resources/views/accessories/edit.blade.php+++ b/resources/views/accessories/edit.blade.php@@ -77,7 +77,7 @@id="purchase_date":value="old('purchase_date', $item->purchase_date ? date('Y-m-d', strtotime($item->purchase_date)) : '')"/>- {!! $errors->first('purchase_date', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="purchase_date" /></div></div>diff --git a/resources/views/account/change-password.blade.php b/resources/views/account/change-password.blade.phpindex d04ca3e21e..0d5bf80ff7 100755--- a/resources/views/account/change-password.blade.php+++ b/resources/views/account/change-password.blade.php@@ -24,7 +24,7 @@</label><div class="col-md-5 required"><input class="form-control" type="password" name="current_password" id="current_password" required {{ (config('app.lock_passwords') ? ' disabled' : '') }}>- {!! $errors->first('current_password', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="current_password" />@if (config('app.lock_passwords')===true)<p class="text-warning"><i class="fas fa-lock"></i> {{ trans('general.feature_disabled') }}</p>@endif@@ -35,7 +35,7 @@<label for="password" class="col-md-3 control-label">{{ trans('general.new_password') }}</label><div class="col-md-5 required"><input class="form-control" type="password" name="password" id="password" required {{ (config('app.lock_passwords') ? ' disabled' : '') }}>- {!! $errors->first('password', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="password" />@if (config('app.lock_passwords')===true)<p class="text-warning"><i class="fas fa-lock"></i> {{ trans('general.feature_disabled') }}</p>@endif@@ -47,7 +47,7 @@<label for="password_confirmation" class="col-md-3 control-label">{{ trans('general.new_password') }}</label><div class="col-md-5 required"><input class="form-control" type="password" name="password_confirmation" id="password_confirmation" {{ (config('app.lock_passwords') ? ' disabled' : '') }} aria-label="password_confirmation">- {!! $errors->first('password_confirmation', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="password_confirmation" />@if (config('app.lock_passwords')===true)<p class="text-warning"><i class="fas fa-lock"></i> {{ trans('general.feature_disabled') }}</p>@endifdiff --git a/resources/views/account/profile.blade.php b/resources/views/account/profile.blade.phpindex e4ce40fca4..2557ad9e8f 100755--- a/resources/views/account/profile.blade.php+++ b/resources/views/account/profile.blade.php@@ -29,7 +29,7 @@@if (!config('app.lock_passwords'))<x-input.locale-select name="locale" :selected="old('locale', $user->locale)"/>- {!! $errors->first('locale', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="locale" />@else<p class="help-block">{{ trans('general.feature_disabled') }}</p>@endif@@ -42,7 +42,7 @@<label for="nav_link_color" class="col-md-3 control-label">{{ trans('admin/settings/general.nav_link_color') }}</label><div class="col-md-9"><x-input.colorpicker :item="$user" placeholder="#ffffff" div_id="nav-link-color" id="nav-link-color" :value="old('nav_link_color', ($user->nav_link_color ?? '#ffffff'))" name="nav_link_color" />- {!! $errors->first('nav_link_color', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="nav_link_color" /><p class="help-block">{{ trans('admin/settings/general.nav_link_color_help') }}</p></div></div>@@ -52,7 +52,7 @@<label for="link_light_color" class="col-md-3 control-label">{{ trans('admin/settings/general.link_light_color') }}</label><div class="col-md-9"><x-input.colorpicker :item="$user" id="link_light_color" placeholder="{{ $link_light_color }}" :value="old('link_light_color', ($user->link_light_color ?? $link_light_color))" name="link_light_color" />- {!! $errors->first('link_light_color', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="link_light_color" /><p class="help-block">{{ trans('admin/settings/general.link_light_color_help') }}</p></div></div>@@ -62,7 +62,7 @@<label for="link_dark_color" class="col-md-3 control-label">{{ trans('admin/settings/general.link_dark_color') }}</label><div class="col-md-9"><x-input.colorpicker :item="$user" id="link_dark_color" placeholder="{{ $link_light_color }}" :value="old('link_dark_color', $link_light_color)" name="link_dark_color" />- {!! $errors->first('link_dark_color', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="link_dark_color" /><p class="help-block">{{ trans('admin/settings/general.link_dark_color_help') }}</p></div></div>@@ -113,7 +113,7 @@</label><div class="col-md-8 required"><input class="form-control" type="text" name="first_name" id="first_name" value="{{ old('first_name', $user->first_name) }}" required />- {!! $errors->first('first_name', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="first_name" /></div></div>@@ -124,7 +124,7 @@</label><div class="col-md-8 required"><input class="form-control" type="text" name="last_name" id="last_name" value="{{ old('last_name', $user->last_name) }}" />- {!! $errors->first('last_name', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="last_name" /></div></div>@@ -140,7 +140,7 @@<label class="col-md-3 control-label" for="phone">{{ trans('admin/users/table.phone') }}</label><div class="col-md-4"><input class="form-control" type="text" name="phone" id="phone" value="{{ old('phone', $user->phone) }}" />- {!! $errors->first('phone', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="phone" /></div></div>@@ -149,7 +149,7 @@<label for="website" class="col-md-3 control-label">{{ trans('general.website') }}</label><div class="col-md-8"><input class="form-control" type="text" name="website" id="website" value="{{ old('website', $user->website) }}" />- {!! $errors->first('website', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="website" /></div></div>@@ -163,7 +163,7 @@<input type="checkbox" name="image_delete" id="image_delete" value="1" @checked(old('image_delete')) aria-label="image_delete">{{ trans('general.image_delete') }}</label>- {!! $errors->first('image_delete', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="image_delete" />@endif</div></div>@@ -171,7 +171,7 @@<div class="form-group"><div class="col-md-9 col-md-offset-3"><img src="{{ (($user->isAvatarExternal()) ? $user->avatar : Storage::disk('public')->url(app('users_upload_path').e($user->avatar))) }}" class="img-responsive">- {!! $errors->first('image_delete', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="image_delete" /></div></div>@@ -183,7 +183,7 @@</label><div class="col-md-8"><input class="form-control" type="text" name="gravatar" id="gravatar" value="{{ old('gravatar', $user->gravatar) }}" />- {!! $errors->first('gravatar', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="gravatar" /><p style="padding-top: 3px;"><img src="//secure.gravatar.com/avatar/{{ md5(strtolower(trim($user->gravatar))) }}" width="30" height="30" alt="{{ $user->display_name }} avatar image">{!! trans('general.gravatar_url') !!}diff --git a/resources/views/auth/login.blade.php b/resources/views/auth/login.blade.phpindex 8af53b0b79..8d85b47e23 100755--- a/resources/views/auth/login.blade.php+++ b/resources/views/auth/login.blade.php@@ -47,7 +47,7 @@@endif<!-- Notifications -->- @include('notifications')+ <x-notifications />@if (!config('app.require_saml'))<div class="col-md-12">@@ -62,7 +62,7 @@{{ trans('admin/users/table.username') }}</label><input class="form-control" placeholder="{{ trans('admin/users/table.username') }}" name="username" type="text" id="username" autocomplete="{{ (config('auth.login_autocomplete') === true) ? 'on' : 'off' }}" autocapitalize="off" spellcheck="false" autofocus>- {!! $errors->first('username', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="username" /></div>@@ -80,7 +80,7 @@</span></div>- {!! $errors->first('password', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="password" /></div><div class="form-group">diff --git a/resources/views/auth/passwords/email.blade.php b/resources/views/auth/passwords/email.blade.phpindex 18f0d1a47f..cc3b92ee13 100644--- a/resources/views/auth/passwords/email.blade.php+++ b/resources/views/auth/passwords/email.blade.php@@ -48,7 +48,7 @@<!-- Notifications -->- @include('notifications')+ <x-notifications />@@ -57,7 +57,7 @@<div class="col-md-12"><label for="username"><x-icon type="user" /> {{ trans('admin/users/table.username') }} </label><input type="text" class="form-control" name="username" value="{{ old('username') }}" placeholder="{{ trans('admin/users/table.username') }}" aria-label="username">- {!! $errors->first('username', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times"></i> :message</span>') !!}+ <x-form.error name="username" /></div></div></div>diff --git a/resources/views/auth/passwords/reset.blade.php b/resources/views/auth/passwords/reset.blade.phpindex 9287ba9622..d0178dc67d 100644--- a/resources/views/auth/passwords/reset.blade.php+++ b/resources/views/auth/passwords/reset.blade.php@@ -23,7 +23,7 @@<div class="row"><!-- Notifications -->- @include('notifications')+ <x-notifications />@@ -34,7 +34,7 @@<div class="col-md-6"><input type="text" class="form-control" name="username" value="{{ old('username', $username) }}">- {!! $errors->first('username', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times"></i> :message</span>') !!}+ <x-form.error name="username" /></div></div>@@ -47,7 +47,7 @@<div class="col-md-6"><input type="password" class="form-control" name="password" aria-label="password">- {!! $errors->first('password', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="password" /></div></div>@@ -57,7 +57,7 @@{{ trans('admin/users/table.password_confirm') }}</label><div class="col-md-6"><input type="password" class="form-control" name="password_confirmation" aria-label="password_confirmation">- {!! $errors->first('password_confirmation', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="password_confirmation" /></div></div>diff --git a/resources/views/auth/two_factor.blade.php b/resources/views/auth/two_factor.blade.phpindex ca722d4eff..348d6a4c9f 100644--- a/resources/views/auth/two_factor.blade.php+++ b/resources/views/auth/two_factor.blade.php@@ -22,7 +22,7 @@<!-- Notifications -->- @include('notifications')+ <x-notifications /><div class="col-md-12"><!-- CSRF Token -->@@ -31,7 +31,7 @@<fieldset><div class="form-group{{ $errors->has('secret') ? ' has-error' : '' }}"><input class="form-control" placeholder="{{ trans('admin/settings/general.two_factor_secret') }}" name="two_factor_secret" type="text" aria-label="two_factor_secret" autofocus>- {!! $errors->first('two_factor_secret', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="two_factor_secret" /></div></fieldset></div>diff --git a/resources/views/auth/two_factor_enroll.blade.php b/resources/views/auth/two_factor_enroll.blade.phpindex d476a294db..8ecc252a77 100644--- a/resources/views/auth/two_factor_enroll.blade.php+++ b/resources/views/auth/two_factor_enroll.blade.php@@ -21,7 +21,7 @@<div class="row"><!-- Notifications -->- @include('notifications')+ <x-notifications /><div class="col-md-12">{{ trans('admin/settings/general.two_factor_enrollment_text') }}@@ -41,7 +41,7 @@<fieldset><div class="form-group{{ $errors->has('secret') ? ' has-error' : '' }}"><input class="form-control" placeholder="{{ trans('admin/settings/general.two_factor_secret') }}" name="two_factor_secret" type="text" aria-label="two_factor_secret" autofocus>- {!! $errors->first('two_factor_secret', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="two_factor_secret" /></div></fieldset></div>diff --git a/resources/views/blade/form/checkbox-row.blade.php b/resources/views/blade/form/checkbox-row.blade.phpindex c6ed076ff5..0f9b49da2d 100644--- a/resources/views/blade/form/checkbox-row.blade.php+++ b/resources/views/blade/form/checkbox-row.blade.php@@ -124,14 +124,11 @@</div>@endif- @error($name)+ @if ($errors->has($name))<div class="col-md-8 col-md-offset-3">- <span class="alert-msg" role="alert" aria-live="assertive">- <x-icon type="x" />- {{ $message }}- </span>+ <x-form.error :name="$name" /></div>- @enderror+ @endif@if ($help_text)<div class="col-md-8 col-md-offset-3">diff --git a/resources/views/blade/form/radio-row.blade.php b/resources/views/blade/form/radio-row.blade.phpindex 373207ffe3..fdfc215fd7 100644--- a/resources/views/blade/form/radio-row.blade.php+++ b/resources/views/blade/form/radio-row.blade.php@@ -67,14 +67,11 @@</div>@endif- @error($name)+ @if ($errors->has($name))<div class="col-md-8 col-md-offset-3">- <span class="alert-msg" role="alert" aria-live="assertive">- <x-icon type="x" />- {{ $message }}- </span>+ <x-form.error :name="$name" /></div>- @enderror+ @endif@if ($help_text)<div class="col-md-8 col-md-offset-3">diff --git a/resources/views/blade/form/row.blade.php b/resources/views/blade/form/row.blade.phpindex b90dba6bd7..0f8d3be1ea 100644--- a/resources/views/blade/form/row.blade.php+++ b/resources/views/blade/form/row.blade.php@@ -53,14 +53,9 @@@endif- @error($name)<div class="col-md-8 col-md-offset-3">- <span class="alert-msg" role="alert" aria-live="assertive">- <x-icon type="x" />- {{ $message }}- </span>+ <x-form.error :name="$name" /></div>- @enderror@if ($help_text)<!-- Help Text -->diff --git a/resources/views/blade/input/category-select.blade.php b/resources/views/blade/input/category-select.blade.phpindex 5ab7eb4bf8..608031a735 100644--- a/resources/views/blade/input/category-select.blade.php+++ b/resources/views/blade/input/category-select.blade.php@@ -49,5 +49,5 @@</div>@endunless- {!! $errors->first($name, '<div class="col-md-8 col-md-offset-3"><span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span></div>') !!}+ <div class="col-md-8 col-md-offset-3"><x-form.error :name="$name" /></div></div>diff --git a/resources/views/blade/input/company-select.blade.php b/resources/views/blade/input/company-select.blade.phpindex d4383dd949..7133e35e53 100644--- a/resources/views/blade/input/company-select.blade.php+++ b/resources/views/blade/input/company-select.blade.php@@ -61,5 +61,5 @@@endcan@endif- {!! $errors->first($name, '<div class="col-md-8 col-md-offset-3"><span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span></div>') !!}+ <div class="col-md-8 col-md-offset-3"><x-form.error :name="$name" /></div></div>diff --git a/resources/views/blade/input/location-select.blade.php b/resources/views/blade/input/location-select.blade.phpindex efb8f4a244..3a7964e586 100644--- a/resources/views/blade/input/location-select.blade.php+++ b/resources/views/blade/input/location-select.blade.php@@ -65,7 +65,7 @@@endunless</div>- {!! $errors->first($name, '<div class="col-md-8 col-md-offset-3"><span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span></div>') !!}+ <div class="col-md-8 col-md-offset-3"><x-form.error :name="$name" /></div>@if ($helpText)<div class="col-md-7 col-sm-11 col-md-offset-3">diff --git a/resources/views/blade/input/manufacturer-select.blade.php b/resources/views/blade/input/manufacturer-select.blade.phpindex 9704431f64..e64280fa19 100644--- a/resources/views/blade/input/manufacturer-select.blade.php+++ b/resources/views/blade/input/manufacturer-select.blade.php@@ -48,5 +48,5 @@</div>@endunless- {!! $errors->first($name, '<div class="col-md-8 col-md-offset-3"><span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span></div>') !!}+ <div class="col-md-8 col-md-offset-3"><x-form.error :name="$name" /></div></div>diff --git a/resources/views/blade/input/minimum-quantity.blade.php b/resources/views/blade/input/minimum-quantity.blade.phpindex 685e918ec1..f33276bd9a 100644--- a/resources/views/blade/input/minimum-quantity.blade.php+++ b/resources/views/blade/input/minimum-quantity.blade.php@@ -29,7 +29,7 @@<x-form.tooltip>{{ trans('general.min_amt_help') }}</x-form.tooltip></div><div class="col-md-12">- {!! $errors->first('min_amt', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="min_amt" /></div></div></div>diff --git a/resources/views/blade/input/purchase-cost.blade.php b/resources/views/blade/input/purchase-cost.blade.phpindex feadba6ce3..508f9d5964 100644--- a/resources/views/blade/input/purchase-cost.blade.php+++ b/resources/views/blade/input/purchase-cost.blade.php@@ -34,7 +34,7 @@</span></div><div class="col-md-9" style="padding-left: 0">- {!! $errors->first('purchase_cost', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="purchase_cost" /><p class="help-block">{{ trans('general.purchase_cost_format_help', ['format' => $snipeSettings->digit_separator]) }}</p></div></div>diff --git a/resources/views/blade/input/quantity.blade.php b/resources/views/blade/input/quantity.blade.phpindex 8e5b76ebca..ca8f45dd49 100644--- a/resources/views/blade/input/quantity.blade.php+++ b/resources/views/blade/input/quantity.blade.php@@ -35,7 +35,7 @@/></div><div class="col-md-12" style="padding-left: 0">- {!! $errors->first($name, '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error :name="$name" />@if ($help_text)<p class="help-block">{{ $help_text }}</p>@endifdiff --git a/resources/views/blade/input/supplier-select.blade.php b/resources/views/blade/input/supplier-select.blade.phpindex 7e8250c30f..8ba68a7f92 100644--- a/resources/views/blade/input/supplier-select.blade.php+++ b/resources/views/blade/input/supplier-select.blade.php@@ -50,5 +50,5 @@</div>@endunless- {!! $errors->first($name, '<div class="col-md-8 col-md-offset-3"><span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span></div>') !!}+ <div class="col-md-8 col-md-offset-3"><x-form.error :name="$name" /></div></div>diff --git a/resources/views/categories/edit.blade.php b/resources/views/categories/edit.blade.phpindex 1167597039..38d8729df3 100755--- a/resources/views/categories/edit.blade.php+++ b/resources/views/categories/edit.blade.php@@ -29,7 +29,7 @@style="min-width:350px"aria-label="category_type"/>- {!! $errors->first('category_type', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="category_type" /></div><div class="col-md-7 col-md-offset-3"><p class="help-block">{!! trans('admin/categories/message.update.cannot_change_category_type') !!} </p>@@ -58,7 +58,7 @@aria-label="notes"rows="5"/>- {!! $errors->first('notes', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="notes" /></div></div>@@ -95,7 +95,7 @@</label><div class="col-md-9"><x-input.colorpicker :item="$item" id="color" :value="old('color', ($item->color ?? '#f4f4f4'))" name="tag_color" id="tag_color" />- {!! $errors->first('tag_color', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="tag_color" /></div></div></fieldset>diff --git a/resources/views/companies/edit.blade.php b/resources/views/companies/edit.blade.phpindex 41eb74b514..164ace0085 100644--- a/resources/views/companies/edit.blade.php+++ b/resources/views/companies/edit.blade.php@@ -70,7 +70,7 @@<label for="tag_color" class="col-md-3 control-label">{{ trans('general.tag_color') }}</label><div class="col-md-9"><x-input.colorpicker :item="$item" id="tag_color" :value="old('tag_color', ($item->tag_color ?? '#f4f4f4'))" name="tag_color" />- {!! $errors->first('tag_color', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="tag_color" /></div></div></fieldset>diff --git a/resources/views/components/edit.blade.php b/resources/views/components/edit.blade.phpindex 5c9b9e3919..c1c2557d0c 100644--- a/resources/views/components/edit.blade.php+++ b/resources/views/components/edit.blade.php@@ -87,7 +87,7 @@id="purchase_date":value="old('purchase_date', $item->purchase_date ? date('Y-m-d', strtotime($item->purchase_date)) : '')"/>- {!! $errors->first('purchase_date', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="purchase_date" /></div></div>diff --git a/resources/views/consumables/checkout.blade.php b/resources/views/consumables/checkout.blade.phpindex b45068edcc..8eaf3f2d00 100644--- a/resources/views/consumables/checkout.blade.php+++ b/resources/views/consumables/checkout.blade.php@@ -76,7 +76,7 @@<input class="form-control" type="number" name="checkout_qty" id="checkout_qty" value="{{ old('checkout_qty', 1) }}" min="1" max="{{ $consumable->numRemaining() }}" aria-label="{{ trans('general.qty') }}" /></div></div>- {!! $errors->first('qty', '<div class="col-md-8 col-md-offset-3"><span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span></div>') !!}+ <div class="col-md-8 col-md-offset-3"><x-form.error name="qty" /></div></div><x-form.rowdiff --git a/resources/views/consumables/edit.blade.php b/resources/views/consumables/edit.blade.phpindex 66105170f5..a4b22d08e8 100644--- a/resources/views/consumables/edit.blade.php+++ b/resources/views/consumables/edit.blade.php@@ -87,7 +87,7 @@id="purchase_date":value="old('purchase_date', $item->purchase_date ? date('Y-m-d', strtotime($item->purchase_date)) : '')"/>- {!! $errors->first('purchase_date', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="purchase_date" /></div></div>diff --git a/resources/views/custom_fields/fields/edit.blade.php b/resources/views/custom_fields/fields/edit.blade.phpindex 0cdbb00dda..936bd3133c 100644--- a/resources/views/custom_fields/fields/edit.blade.php+++ b/resources/views/custom_fields/fields/edit.blade.php@@ -39,7 +39,7 @@</label><div class="col-md-8 required"><input class="form-control" aria-label="name" name="name" type="text" required value="{{ old('name', $field->name) }}">- {!! $errors->first('name', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="name" /></div></div>@@ -64,7 +64,7 @@'radio' => trans('admin/custom_fields/general.types.radio'),]"/>- {!! $errors->first('element', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="element" /></div></div>@@ -82,7 +82,7 @@rows="4"aria-label="field_values"/>- {!! $errors->first('field_values', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="field_values" /><p class="help-block">{{ trans('admin/custom_fields/general.field_values_help') }}</p></div></div>@@ -107,7 +107,7 @@style="width:100%"aria-label="format"/>- {!! $errors->first('format', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="format" /></div></div><!-- Custom Format -->@@ -119,7 +119,7 @@<input class="form-control" id="custom_format" aria-label="custom_format" maxlength="191" placeholder="regex:/^[0-9]{15}$/" name="custom_format" type="text" value="{{ old('custom_format', (($field->format!='') && (stripos($field->format,'regex')===0)) ? $field->format : '') }}"><p class="help-block">{!! trans('admin/custom_fields/general.field_custom_format_help') !!}</p>- {!! $errors->first('custom_format', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="custom_format" /></div></div>@@ -132,7 +132,7 @@<div class="col-md-8"><input class="form-control" aria-label="help_text" name="help_text" type="text" value=" {{ old('help_text', $field->help_text) }}"><p class="help-block">{{ trans('admin/custom_fields/general.help_text_description') }}</p>- {!! $errors->first('help_text', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="help_text" /></div></div>@@ -257,7 +257,7 @@<div class="col-md-4"><h4>{{ trans('admin/custom_fields/general.fieldsets') }}</h4>- {!! $errors->first('associate_fieldsets', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="associate_fieldsets" /><label class="form-control"><input type="checkbox" id="checkAll">@@ -286,7 +286,7 @@value="{{ $fieldset->id }}"{{ $checked }}>{{ $fieldset->name }}- {!! $errors->first('associate_fieldsets.'.$fieldset->id, '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error :name="'associate_fieldsets.'.$fieldset->id" /></label>diff --git a/resources/views/departments/edit.blade.php b/resources/views/departments/edit.blade.phpindex ec5a5cb75a..782eaf3a0a 100644--- a/resources/views/departments/edit.blade.php+++ b/resources/views/departments/edit.blade.php@@ -38,7 +38,7 @@aria-label="notes"rows="5"/>- {!! $errors->first('notes', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="notes" /></div></div>@@ -53,7 +53,7 @@</label><div class="col-md-9"><x-input.colorpicker :item="$item" id="color" :value="old('color', ($item->color ?? '#f4f4f4'))" name="tag_color" id="tag_color" />- {!! $errors->first('tag_color', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="tag_color" /></div></div></fieldset>diff --git a/resources/views/depreciations/edit.blade.php b/resources/views/depreciations/edit.blade.phpindex a7024b91e5..daf9468fe4 100755--- a/resources/views/depreciations/edit.blade.php+++ b/resources/views/depreciations/edit.blade.php@@ -17,7 +17,7 @@</label><div class="col-md-9 col-sm-12"><input class="form-control" type="number" min="0" max="3600" name="months" id="months" value="{{ old('months', $item->months) }}" style="width: 90px;"{!! (\App\Helpers\Helper::checkIfRequired($item, 'months')) ? ' required' : '' !!} />- {!! $errors->first('months', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="months" /></div></div>@@ -32,7 +32,7 @@<option value="amount" {{ old('depreciation_type', $item->depreciation_type) == 'amount' ? 'selected' : '' }}>{{ trans('general.depreciation_options.amount') }}</option><option value="percent" {{ old('depreciation_type', $item->depreciation_type) == 'percent' ? 'selected' : '' }}>{{ trans('general.depreciation_options.percent') }}</option></select>- {!! $errors->first('depreciation_min', '<span class="col-md-7 col-md-offset-3 alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <div class="col-md-7 col-md-offset-3"><x-form.error name="depreciation_min" /></div></div></div>diff --git a/resources/views/groups/edit.blade.php b/resources/views/groups/edit.blade.phpindex fd1fa0ee5e..96d79721a2 100755--- a/resources/views/groups/edit.blade.php+++ b/resources/views/groups/edit.blade.php@@ -19,7 +19,7 @@<label for="name" class="col-md-3 control-label">{{ trans('admin/groups/titles.group_name') }}</label><div class="col-md-8 required"><input class="form-control" type="text" name="name" id="name" value="{{ old('name', $group->name) }}" required />- {!! $errors->first('name', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="name" /></div></div>@@ -35,7 +35,7 @@rows="2"/>- {!! $errors->first('notes', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="notes" /></div></div>diff --git a/resources/views/hardware/audit.blade.php b/resources/views/hardware/audit.blade.phpindex 59339a38ec..84bf23a27a 100644--- a/resources/views/hardware/audit.blade.php+++ b/resources/views/hardware/audit.blade.php@@ -110,7 +110,7 @@<input type="text" class="form-control" placeholder="{{ trans('general.next_audit_date') }}" name="next_audit_date" id="next_audit_date" value="{{ old('next_audit_date', $next_audit_date) }}"><span class="input-group-addon"><x-icon type="calendar" /></span></div>- {!! $errors->first('next_audit_date', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="next_audit_date" /><p class="help-block">{!! trans('general.next_audit_date_help') !!}</p></div></div>@@ -123,7 +123,7 @@</label><div class="col-md-8"><textarea class="col-md-6 form-control" id="note" name="note">{{ old('note', $asset->note) }}</textarea>- {!! $errors->first('note', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="note" /></div></div>diff --git a/resources/views/hardware/bulk-checkin.blade.php b/resources/views/hardware/bulk-checkin.blade.phpindex 8d1f52a0b6..b6be9f999f 100644--- a/resources/views/hardware/bulk-checkin.blade.php+++ b/resources/views/hardware/bulk-checkin.blade.php@@ -70,7 +70,7 @@style="width: 100%;"aria-label="status_id"/>- {!! $errors->first('status_id', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="status_id" /></div></div>@@ -100,7 +100,7 @@<input type="text" class="form-control" placeholder="{{ trans('general.select_date') }}" name="checkin_at" id="checkin_at" value="{{ old('checkin_at') }}"><span class="input-group-addon"><x-icon type="calendar" /></span></div>- {!! $errors->first('checkin_at', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="checkin_at" /></div></div>@@ -111,7 +111,7 @@</label><div class="col-md-8"><textarea class="col-md-6 form-control" id="note" name="note">{{ old('note') }}</textarea>- {!! $errors->first('note', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="note" /></div></div>diff --git a/resources/views/hardware/bulk-checkout.blade.php b/resources/views/hardware/bulk-checkout.blade.phpindex 7a62fbbf16..6bb599b12f 100644--- a/resources/views/hardware/bulk-checkout.blade.php+++ b/resources/views/hardware/bulk-checkout.blade.php@@ -72,7 +72,7 @@style="width: 100%;"aria-label="status_id"/>- {!! $errors->first('status_id', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="status_id" /></div></div>@@ -92,7 +92,7 @@style="width: 100%;"aria-label="set_not_requestable"/>- {!! $errors->first('set_not_requestable', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="set_not_requestable" /></div></div>@@ -116,7 +116,7 @@<input type="text" class="form-control" placeholder="{{ trans('general.select_date') }}" name="checkout_at" id="checkout_at" value="{{ old('checkout_at') }}"><span class="input-group-addon"><x-icon type="calendar" /></span></div>- {!! $errors->first('checkout_at', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="checkout_at" /></div></div>@@ -130,7 +130,7 @@<input type="text" class="form-control" placeholder="{{ trans('general.select_date') }}" name="expected_checkin" id="expected_checkin" value="{{ old('expected_checkin') }}"><span class="input-group-addon"><x-icon type="calendar" /></span></div>- {!! $errors->first('expected_checkin', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="expected_checkin" /></div></div>@@ -142,7 +142,7 @@</label><div class="col-md-8"><textarea class="col-md-6 form-control" id="note" name="note">{{ old('note') }}</textarea>- {!! $errors->first('note', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="note" /></div></div>diff --git a/resources/views/hardware/bulk.blade.php b/resources/views/hardware/bulk.blade.phpindex a47642946c..c6838920b4 100755--- a/resources/views/hardware/bulk.blade.php+++ b/resources/views/hardware/bulk.blade.php@@ -42,8 +42,7 @@</label><div class="col-md-4"><input type="text" class="form-control" name="name" id="name" value="{{ old('name') }}" maxlength="191" style="width:100%">- {!! $errors->first('name', '<span class="alert-msg" role="alert" aria-live="assertive">- <i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="name" /></div><div class="col-md-5"><x-form.checkbox-inline@@ -64,7 +63,7 @@value="{{ old('purchase_date') }}"placeholder="{{ trans('general.select_date') }}"/>- {!! $errors->first('purchase_date', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="purchase_date" /></div><div class="col-md-5"><x-form.checkbox-inline@@ -84,7 +83,7 @@value="{{ old('expected_checkin') }}"placeholder="{{ trans('general.select_date') }}"/>- {!! $errors->first('expected_checkin', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="expected_checkin" /></div><div class="col-md-5"><x-form.checkbox-inline@@ -104,7 +103,7 @@value="{{ old('asset_eol_date') }}"placeholder="{{ trans('general.select_date') }}"/>- {!! $errors->first('asset_eol_date', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="asset_eol_date" /></div><div class="col-md-5"><x-form.checkbox-inline@@ -140,7 +139,7 @@/><p class="help-block">{{ trans('general.status_compatibility') }}</p><p id="selected_status_status" role="status" aria-live="polite" aria-atomic="true" style="display:none;"></p>- {!! $errors->first('status_id', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="status_id" /></div></div>@@ -178,7 +177,7 @@<div class="input-group col-md-3"><span class="input-group-addon">{{ $snipeSettings->default_currency }}</span><input type="text" class="form-control" pattern="^\d+([.,]\d+)?$" maxlength="10" placeholder="{{ trans('admin/hardware/form.cost') }}" name="purchase_cost" id="purchase_cost" value="{{ old('purchase_cost') }}">- {!! $errors->first('purchase_cost', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="purchase_cost" /></div></div>@@ -194,7 +193,7 @@</label><div class="col-md-7"><input class="form-control" type="text" maxlength="200" name="order_number" id="order_number" value="{{ old('order_number') }}" />- {!! $errors->first('order_number', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="order_number" /></div></div>@@ -207,7 +206,7 @@<div class="input-group"><input class="col-md-3 form-control" maxlength="4" type="text" name="warranty_months" id="warranty_months" value="{{ old('warranty_months') }}" /><span class="input-group-addon">{{ trans('admin/hardware/form.months') }}</span>- {!! $errors->first('warranty_months', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="warranty_months" /></div></div></div>@@ -222,7 +221,7 @@value="{{ old('next_audit_date') }}"placeholder="{{ trans('general.select_date') }}"/>- {!! $errors->first('next_audit_date', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="next_audit_date" /></div><div class="col-md-5"><x-form.checkbox-inlinediff --git a/resources/views/hardware/checkin.blade.php b/resources/views/hardware/checkin.blade.phpindex 04173503ae..853847b03b 100755--- a/resources/views/hardware/checkin.blade.php+++ b/resources/views/hardware/checkin.blade.php@@ -95,7 +95,7 @@<div class="col-md-8"><input class="form-control" type="text" name="name" aria-label="name"id="name" value="{{ old('name', $asset->name) }}"/>- {!! $errors->first('name', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="name" /></div></div>@@ -113,7 +113,7 @@style="width: 100%"aria-label="status_id"/>- {!! $errors->first('status_id', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="status_id" /></div></div>@@ -172,7 +172,7 @@<x-icon type="calendar" /></span></div>- {!! $errors->first('checkin_at', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="checkin_at" /></div></div></div>@@ -185,7 +185,7 @@<div class="col-md-8"><textarea class="col-md-6 form-control" id="note" @required($snipeSettings->require_checkinout_notes)name="note">{{ old('note', $asset->note) }}</textarea>- {!! $errors->first('note', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="note" /></div></div>diff --git a/resources/views/hardware/checkout.blade.php b/resources/views/hardware/checkout.blade.phpindex 7b5ddad92b..1a774eb202 100755--- a/resources/views/hardware/checkout.blade.php+++ b/resources/views/hardware/checkout.blade.php@@ -80,7 +80,7 @@<div class="col-md-7"><input class="form-control" type="text" name="name" id="name"value="{{ old('name', $asset->name) }}" tabindex="1">- {!! $errors->first('name', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="name" /></div></div>@@ -97,7 +97,7 @@style="width: 100%;"aria-label="status_id"/>- {!! $errors->first('status_id', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="status_id" /></div></div>@@ -139,7 +139,7 @@placeholder="{{ trans('general.select_date') }}"required="{{ Helper::checkIfRequired($item, 'checkout_at') }}"/>- {!! $errors->first('checkout_at', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="checkout_at" /></div></div>@@ -157,7 +157,7 @@placeholder="{{ trans('general.select_date') }}"required="{{ Helper::checkIfRequired($item, 'expected_checkin') }}"/>- {!! $errors->first('expected_checkin', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="expected_checkin" /></div></div>@@ -170,7 +170,7 @@<div class="col-md-8"><textarea class="col-md-6 form-control" id="note" @required($snipeSettings->require_checkinout_notes)name="note">{{ old('note', $asset->note) }}</textarea>- {!! $errors->first('note', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="note" /></div></div>diff --git a/resources/views/hardware/edit.blade.php b/resources/views/hardware/edit.blade.phpindex e3bd146221..3399700b79 100755--- a/resources/views/hardware/edit.blade.php+++ b/resources/views/hardware/edit.blade.php@@ -33,8 +33,8 @@<div class="col-md-7 col-sm-12"><input class="form-control" type="text" name="asset_tags[1]" id="asset_tag" value="{{ old('asset_tag', $item->asset_tag) }}" required>- {!! $errors->first('asset_tags', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times"></i> :message</span>') !!}- {!! $errors->first('asset_tag', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times"></i> :message</span>') !!}+ <x-form.error name="asset_tags" />+ <x-form.error name="asset_tag" /></div>@else<!-- we are creating a new asset - let people use more than one asset tag -->@@ -42,8 +42,8 @@<input class="form-control"type="text" name="asset_tags[1]" id="asset_tag"value="{{ old('asset_tags.1', \App\Models\Asset::autoincrement_asset()) }}" required>- {!! $errors->first('asset_tags.1', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times"></i> :message</span>') !!}- {!! $errors->first('asset_tag', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times"></i> :message</span>') !!}+ <x-form.error name="asset_tags.1" />+ <x-form.error name="asset_tag" /></div><div class="col-md-2 col-sm-12"><button class="add_field_button btn btn-sm btn-theme" name="add_field_button">@@ -83,7 +83,7 @@<input type="text" class="form-control" name="asset_tags[{{ $i }}]"value="{{ old('asset_tags.'.$i) }}"required>- {!! $errors->first('asset_tags.'.$i, '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times"></i> :message</span>') !!}+ <x-form.error :name="'asset_tags.'.$i" /></div><div class="col-md-2 col-sm-12"><a href="#" class="remove_field btn btn-sm btn-theme"><x-icon type="minus"/></a>diff --git a/resources/views/hardware/quickscan-checkin.blade.php b/resources/views/hardware/quickscan-checkin.blade.phpindex 4f9baf764f..05586a8379 100644--- a/resources/views/hardware/quickscan-checkin.blade.php+++ b/resources/views/hardware/quickscan-checkin.blade.php@@ -37,7 +37,7 @@<input type="text" class="form-control" name="asset_tag" id="asset_tag" value="{{ old('asset_tag') }}" required></div>- {!! $errors->first('asset_tag', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="asset_tag" /></div></div>@@ -54,7 +54,7 @@style="width:100%"aria-label="status_id"/>- {!! $errors->first('status_id', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="status_id" /></div></div>@@ -66,7 +66,7 @@<label for="note" class="col-md-3 control-label">{{ trans('admin/hardware/form.notes') }}</label><div class="col-md-8"><textarea class="col-md-6 form-control" id="note" name="note">{{ old('note') }}</textarea>- {!! $errors->first('note', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="note" /></div></div>diff --git a/resources/views/hardware/quickscan.blade.php b/resources/views/hardware/quickscan.blade.phpindex aac5468116..5db0cacd36 100644--- a/resources/views/hardware/quickscan.blade.php+++ b/resources/views/hardware/quickscan.blade.php@@ -34,7 +34,7 @@<option value="asset_tag">{{ trans('general.asset_tag') }}</option><option value="serial" {{ (($settings->unique_serial != '1') ? 'disabled' : '') }}>{{ trans('general.serial_number') }}</option></select>- {!! $errors->first('audit_by_field', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="audit_by_field" /><p class="help-block"><x-icon type="tip"/>@@ -50,7 +50,7 @@<div class="col-md-8"><input type="text" class="form-control" name="audit_key" id="audit_key" requiredvalue="{{ old('audit_key') }}">- {!! $errors->first('audit_key', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="audit_key" /></div></div>@@ -81,7 +81,7 @@<input type="text" class="form-control" placeholder="{{ trans('general.next_audit_date') }}" name="next_audit_date" id="next_audit_date" value="{{ old('next_audit_date', $next_audit_date) }}"><span class="input-group-addon"><x-icon type="calendar" /></span></div>- {!! $errors->first('next_audit_date', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="next_audit_date" /></div></div>@@ -91,7 +91,7 @@<label for="note" class="col-md-3 control-label">{{ trans('admin/hardware/form.notes') }}</label><div class="col-md-8"><textarea class="col-md-6 form-control" id="note" name="note">{{ old('note') }}</textarea>- {!! $errors->first('note', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="note" /></div></div>diff --git a/resources/views/kits/accessory-edit.blade.php b/resources/views/kits/accessory-edit.blade.phpindex 0babb5737f..be855cb35b 100644--- a/resources/views/kits/accessory-edit.blade.php+++ b/resources/views/kits/accessory-edit.blade.php@@ -13,7 +13,7 @@<div class="col-md-2" style="padding-left:0px"><input class="form-control" type="text" name="quantity" id="quantity" value="{{ old('quantity', $item->quantity) }}" /></div>- {!! $errors->first('quantity', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times"></i> :message</span>') !!}+ <x-form.error name="quantity" /></div></div>diff --git a/resources/views/kits/checkout.blade.php b/resources/views/kits/checkout.blade.phpindex f1b714fa5a..c3555a09c6 100644--- a/resources/views/kits/checkout.blade.php+++ b/resources/views/kits/checkout.blade.php@@ -35,7 +35,7 @@<input type="text" class="form-control" placeholder="{{ trans('general.select_date') }}" name="checkout_at" id="checkout_at" value="{{ old('checkout_at') }}"><span class="input-group-addon"><x-icon type="calendar" /></span></div>- {!! $errors->first('checkout_at', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times"></i> :message</span>') !!}+ <x-form.error name="checkout_at" /></div></div>@@ -49,7 +49,7 @@<input type="text" class="form-control" placeholder="{{ trans('general.select_date') }}" name="expected_checkin" id="expected_checkin" value="{{ old('expected_checkin') }}"><span class="input-group-addon"><x-icon type="calendar" /></span></div>- {!! $errors->first('expected_checkin', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times"></i> :message</span>') !!}+ <x-form.error name="expected_checkin" /></div></div>@@ -61,7 +61,7 @@</label><div class="col-md-8"><textarea class="col-md-6 form-control" id="note" name="note">{{ old('note') }}</textarea>- {!! $errors->first('note', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times"></i> :message</span>') !!}+ <x-form.error name="note" /></div></div>diff --git a/resources/views/kits/consumable-edit.blade.php b/resources/views/kits/consumable-edit.blade.phpindex 8e47ff0534..16c5f7461f 100644--- a/resources/views/kits/consumable-edit.blade.php+++ b/resources/views/kits/consumable-edit.blade.php@@ -14,7 +14,7 @@<div class="col-md-2" style="padding-left:0px"><input class="form-control" type="text" name="quantity" id="quantity" value="{{ old('quantity', $item->quantity) }}" /></div>- {!! $errors->first('quantity', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times"></i> :message</span>') !!}+ <x-form.error name="quantity" /></div></div>diff --git a/resources/views/kits/license-edit.blade.php b/resources/views/kits/license-edit.blade.phpindex 32a20af5f5..509b38cd0d 100644--- a/resources/views/kits/license-edit.blade.php+++ b/resources/views/kits/license-edit.blade.php@@ -13,7 +13,7 @@<div class="col-md-2" style="padding-left:0px"><input class="form-control" type="text" name="quantity" id="quantity" value="{{ old('quantity', $item->quantity) }}" /></div>- {!! $errors->first('quantity', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times"></i> :message</span>') !!}+ <x-form.error name="quantity" /></div></div>diff --git a/resources/views/kits/model-edit.blade.php b/resources/views/kits/model-edit.blade.phpindex 9b1911d397..c759d5ff3f 100644--- a/resources/views/kits/model-edit.blade.php+++ b/resources/views/kits/model-edit.blade.php@@ -14,7 +14,7 @@<div class="col-md-2" style="padding-left:0px"><input class="form-control" type="text" name="quantity" id="quantity" value="{{ old('quantity', $item->quantity) }}" /></div>- {!! $errors->first('quantity', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times"></i> :message</span>') !!}+ <x-form.error name="quantity" /></div></div>diff --git a/resources/views/layouts/default.blade.php b/resources/views/layouts/default.blade.phpindex 4d4fc6254e..9bdf0df720 100644--- a/resources/views/layouts/default.blade.php+++ b/resources/views/layouts/default.blade.php@@ -2030,7 +2030,7 @@</div>@endif- @include('notifications')+ <x-notifications /></div>@@ -2342,6 +2342,10 @@// Screen readers only announce inserted error text when the// error element carries role=alert (aria-live=assertive is// implied, but set explicitly for older AT compatibility).+ // The X icon is applied via the .alert-msg::before CSS rule+ // (see resources/assets/less/app.less); prepending it here+ // would be wiped on re-validation, when jQuery Validate+ // calls label.html(msg) on the existing element.error.attr('role', 'alert');error.attr('aria-live', 'assertive');diff --git a/resources/views/layouts/setup.blade.php b/resources/views/layouts/setup.blade.phpindex 50aeda52e9..b09392bc43 100644--- a/resources/views/layouts/setup.blade.php+++ b/resources/views/layouts/setup.blade.php@@ -126,7 +126,7 @@</div><div class="box-body">- @include('notifications')+ <x-notifications /><!-- Content -->diff --git a/resources/views/licenses/checkin.blade.php b/resources/views/licenses/checkin.blade.phpindex 17efd19cb6..5118c9b0ab 100755--- a/resources/views/licenses/checkin.blade.php+++ b/resources/views/licenses/checkin.blade.php@@ -76,7 +76,7 @@<label for="note" class="col-md-3 control-label">{{ trans('general.checkin_note') }}</label><div class="col-md-8"><textarea class="form-control" id="notes" name="notes" rows="5"></textarea>- {!! $errors->first('notes', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="notes" /></div></div><x-redirect_submit_optionsdiff --git a/resources/views/licenses/checkout.blade.php b/resources/views/licenses/checkout.blade.phpindex 27020951eb..37aead0abb 100755--- a/resources/views/licenses/checkout.blade.php+++ b/resources/views/licenses/checkout.blade.php@@ -82,7 +82,7 @@<label for="note" class="col-md-3 control-label">{{ trans('general.checkout_note') }}</label><div class="col-md-8"><textarea class="col-md-6 form-control" id="notes" name="notes" rows="5">{{ old('note') }}</textarea>- {!! $errors->first('note', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="note" /></div></div></div>diff --git a/resources/views/licenses/edit.blade.php b/resources/views/licenses/edit.blade.phpindex 37fb89c9fd..b0ccc6fe63 100755--- a/resources/views/licenses/edit.blade.php+++ b/resources/views/licenses/edit.blade.php@@ -26,7 +26,7 @@<input class="form-control" type="number" min="0" name="seats" id="seats" value="{{ old('seats', $item->seats) }}" minlength="1" required style="width: 97px;"></div></div>- {!! $errors->first('seats', '<div class="col-md-8 col-md-offset-3"><span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span></div>') !!}+ <div class="col-md-8 col-md-offset-3"><x-form.error name="seats" /></div></div>@include ('partials.forms.edit.minimum_quantity')@@ -36,7 +36,7 @@<label for="serial" class="col-md-3 control-label">{{ trans('admin/licenses/form.license_key') }}</label><div class="col-md-7"><textarea class="form-control" type="text" name="serial" id="serial" rows="5"{{ (Helper::checkIfRequired($item, 'serial')) ? ' required' : '' }}>{{ old('serial', $item->serial) }}</textarea>- {!! $errors->first('serial', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="serial" /></div></div>@endcan@@ -49,7 +49,7 @@<label for="license_name" class="col-md-3 control-label">{{ trans('admin/licenses/form.to_name') }}</label><div class="col-md-7"><input class="form-control" type="text" name="license_name" id="license_name" value="{{ old('license_name', $item->license_name) }}" />- {!! $errors->first('license_name', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="license_name" /></div></div>@@ -58,7 +58,7 @@<label for="license_email" class="col-md-3 control-label">{{ trans('admin/licenses/form.to_email') }}</label><div class="col-md-7"><input class="form-control" type="email" name="license_email" id="license_email" value="{{ old('license_email', $item->license_email) }}" />- {!! $errors->first('license_email', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="license_email" /></div></div>@@ -90,7 +90,7 @@<input type="text" class="form-control" placeholder="{{ trans('general.select_date') }}" name="expiration_date" id="expiration_date" value="{{ old('expiration_date', ($item->expiration_date) ? $item->expiration_date->format('Y-m-d') : '') }}" maxlength="10"><span class="input-group-addon"><x-icon type="calendar" /></span></div>- {!! $errors->first('expiration_date', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="expiration_date" /></div></div>@@ -104,7 +104,7 @@<input type="text" class="form-control" placeholder="{{ trans('general.select_date') }}" name="termination_date" id="termination_date" value="{{ old('termination_date', ($item->termination_date) ? $item->termination_date->format('Y-m-d') : '') }}" maxlength="10"><span class="input-group-addon"><x-icon type="calendar" /></span></div>- {!! $errors->first('termination_date', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="termination_date" /></div></div>@@ -114,7 +114,7 @@<label for="purchase_order" class="col-md-3 control-label">{{ trans('admin/licenses/form.purchase_order') }}</label><div class="col-md-3 text-right"><input class="form-control" type="text" name="purchase_order" id="purchase_order" value="{{ old('purchase_order', $item->purchase_order) }}" maxlength="191" />- {!! $errors->first('purchase_order', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="purchase_order" /></div></div>diff --git a/resources/views/livewire/category-edit-form.blade.php b/resources/views/livewire/category-edit-form.blade.phpindex 94203f40fc..7ea4b06061 100644--- a/resources/views/livewire/category-edit-form.blade.php+++ b/resources/views/livewire/category-edit-form.blade.php@@ -11,7 +11,7 @@/><p class="help-block">{!! trans('admin/categories/general.eula_text_help') !!} </p><p class="help-block">{!! trans('admin/settings/general.eula_markdown') !!} </p>- {!! $errors->first('eula_text', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="eula_text" /></div>@if ($this->eulaTextDisabled)<input type="hidden" name="eula_text" wire:model.live="eulaText" />diff --git a/resources/views/livewire/custom-field-set-default-values-for-model.blade.php b/resources/views/livewire/custom-field-set-default-values-for-model.blade.phpindex 049d40320b..b2dba4c419 100644--- a/resources/views/livewire/custom-field-set-default-values-for-model.blade.php+++ b/resources/views/livewire/custom-field-set-default-values-for-model.blade.php@@ -14,7 +14,7 @@style="width:100%; min-width:350px;"aria-label="custom_fieldset"/>- {!! $errors->first('custom_fieldset', '<span class="alert-msg" role="alert" aria-live="assertive"><br><i class="fas fa-times"></i> :message</span>') !!}+ <x-form.error name="custom_fieldset" /></div><div class="col-md-3">@if ($fieldset_id)@@ -143,7 +143,7 @@<?php$errormessage = $errors->first($field->db_column_name());if ($errormessage) {- print('<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> '.$errormessage.'</span>');+ print('<span class="alert-msg" role="alert" aria-live="assertive">'.$errormessage.'</span>');}?></div>diff --git a/resources/views/livewire/slack-settings-form.blade.php b/resources/views/livewire/slack-settings-form.blade.phpindex 121b893481..a00aa151a5 100644--- a/resources/views/livewire/slack-settings-form.blade.php+++ b/resources/views/livewire/slack-settings-form.blade.php@@ -92,7 +92,7 @@</div><div class="col-md-9 required"><input type="url" wire:model.change.live="webhook_endpoint" class="form-control" placeholder="{{$webhook_placeholder}}" value="{{old('webhook_endpoint', $webhook_endpoint)}}"{{ Helper::isDemoMode() ? ' disabled' : ''}}>- {!! $errors->first('webhook_endpoint', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="webhook_endpoint" /></div></div>@@ -110,7 +110,7 @@<div class="col-md-9 required"><input type="text" wire:model.change.live="webhook_channel" class="form-control" placeholder="#IT-Ops" value="{{ old('webhook_channel', $webhook_channel) }}"{{ Helper::isDemoMode() ? ' disabled' : ''}}>- {!! $errors->first('webhook_channel', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="webhook_channel" /></div></div>@endif@@ -127,7 +127,7 @@</div><div class="col-md-9"><input type="text" wire:model.change.live="webhook_botname" class='form-control' placeholder="Snipe-Bot" {{ old('webhook_botname', $webhook_botname)}}{{ Helper::isDemoMode() ? ' disabled' : ''}}>- {!! $errors->first('webhook_botname', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="webhook_botname" /></div><!--col-md-10--></div>@endifdiff --git a/resources/views/locations/edit.blade.php b/resources/views/locations/edit.blade.phpindex 066876625c..ac67b0ee00 100755--- a/resources/views/locations/edit.blade.php+++ b/resources/views/locations/edit.blade.php@@ -41,12 +41,7 @@</label><div class="col-md-7"><input class="form-control" style="width:100px" type="text" name="currency" aria-label="currency" id="currency" value="{{ old('currency', $item->currency) }}"{!! (Helper::checkIfRequired($item, 'currency')) ? ' required' : '' !!} maxlength="3" />- @error('currency')- <span class="alert-msg" role="alert" aria-live="assertive">- <x-icon type="x" />- {{ $message }}- </span>- @enderror+ <x-form.error name="currency" /></div></div>@@ -61,12 +56,7 @@</label><div class="col-md-7"><input class="form-control" type="text" name="ldap_ou" aria-label="ldap_ou" id="ldap_ou" value="{{ old('ldap_ou', $item->ldap_ou) }}"{!! (Helper::checkIfRequired($item, 'ldap_ou')) ? ' required' : '' !!} maxlength="191" />- @error('ldap_ou')- <span class="alert-msg" role="alert" aria-live="assertive">- <x-icon type="x" />- {{ $message }}- </span>- @enderror+ <x-form.error name="ldap_ou" /></div></div>@endif@@ -85,7 +75,7 @@aria-label="notes"rows="5"/>- {!! $errors->first('notes', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="notes" /></div></div>@@ -100,7 +90,7 @@</label><div class="col-md-9"><x-input.colorpicker :item="$item" id="color" :value="old('color', ($item->color ?? '#f4f4f4'))" name="tag_color" id="tag_color" />- {!! $errors->first('tag_color', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="tag_color" /></div></div></fieldset>diff --git a/resources/views/maintenances/edit.blade.php b/resources/views/maintenances/edit.blade.phpindex 540a9dbfae..9fc1e2e2a1 100644--- a/resources/views/maintenances/edit.blade.php+++ b/resources/views/maintenances/edit.blade.php@@ -131,7 +131,7 @@</option>@endif</select>- {!! $errors->first('responsible_party_id', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="responsible_party_id" /></div></div>@@ -148,7 +148,7 @@placeholder="{{ trans('general.select_date') }}"required="{{ Helper::checkIfRequired($item, 'start_date') }}"/>- {!! $errors->first('start_date', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="start_date" /></div></div>@@ -165,7 +165,7 @@placeholder="{{ trans('general.select_date') }}"required="Helper::checkIfRequired($item, 'completion_date')"/>- {!! $errors->first('completion_date', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="completion_date" /></div></div>@@ -198,7 +198,7 @@</span></div><div class="col-md-9" style="padding-left: 0px;">- {!! $errors->first('cost', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="cost" /><p class="help-block">{{ trans('general.purchase_cost_format_help', ['format' => $snipeSettings->digit_separator]) }}</p></div></div>@@ -208,7 +208,7 @@<label for="url" class="col-md-3 control-label">{{ trans('general.url') }}</label><div class="col-md-7"><input class="form-control" name="url" type="url" id="url" value="{{ old('url', $item->url) }}" placeholder="https://example.com">- {!! $errors->first('url', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="url" /></div></div>@@ -223,7 +223,7 @@<div class="col-md-7"><textarea class="col-md-6 form-control" id="notes" name="notes">{{ old('notes', $item->notes) }}</textarea><p class="help-block">{!! trans('general.markdown') !!}</p>- {!! $errors->first('notes', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="notes" /></div></div></div> <!-- .box-body -->diff --git a/resources/views/manufacturers/edit.blade.php b/resources/views/manufacturers/edit.blade.phpindex a79fd9c508..3fb75584a9 100755--- a/resources/views/manufacturers/edit.blade.php+++ b/resources/views/manufacturers/edit.blade.php@@ -105,7 +105,7 @@</label><div class="col-md-9"><x-input.colorpicker :item="$item" id="color" :value="old('color', ($item->color ?? '#f4f4f4'))" name="tag_color" id="tag_color" />- {!! $errors->first('tag_color', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="tag_color" /></div></div></fieldset>diff --git a/resources/views/modals/add-note.blade.php b/resources/views/modals/add-note.blade.phpindex e8efdbf664..1bbd99b1d1 100644--- a/resources/views/modals/add-note.blade.php+++ b/resources/views/modals/add-note.blade.php@@ -21,7 +21,7 @@<div class="row"><div class="col-md-12"><textarea class="form-control" id="note" name="note" required>{{ old('note') }}</textarea>- {!! $errors->first('note', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="note" /></div></div></div>diff --git a/resources/views/models/bulk-edit.blade.php b/resources/views/models/bulk-edit.blade.phpindex e77ca5a6dd..d65d933c93 100644--- a/resources/views/models/bulk-edit.blade.php+++ b/resources/views/models/bulk-edit.blade.php@@ -63,7 +63,7 @@class="js-fieldset-field"style="width:350px"/>- {!! $errors->first('fieldset_id', '<span class="alert-msg" role="alert" aria-live="assertive"><br><i class="fas fa-times"></i> :message</span>') !!}+ <x-form.error name="fieldset_id" /></div></div>@@ -80,7 +80,7 @@:selected="old('depreciation_id', 'NC')"style="width:350px"/>- {!! $errors->first('depreciation_id', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="depreciation_id" /></div></div>diff --git a/resources/views/models/custom_fields_form.blade.php b/resources/views/models/custom_fields_form.blade.phpindex 88c2f367ab..6f412ba84f 100644--- a/resources/views/models/custom_fields_form.blade.php+++ b/resources/views/models/custom_fields_form.blade.php@@ -115,7 +115,7 @@$errormessage = $errors->first($field->db_column_name());if ($errormessage) {$errormessage = preg_replace('/ snipeit /', '', $errormessage);- print('<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> '.$errormessage.'</span>');+ print('<span class="alert-msg" role="alert" aria-live="assertive">'.$errormessage.'</span>');}?></div>diff --git a/resources/views/models/custom_fields_form_bulk_edit.blade.php b/resources/views/models/custom_fields_form_bulk_edit.blade.phpindex 630543adb9..c6f2f32313 100644--- a/resources/views/models/custom_fields_form_bulk_edit.blade.php+++ b/resources/views/models/custom_fields_form_bulk_edit.blade.php@@ -161,7 +161,7 @@$errormessage=$errors->first($field->db_column_name());if ($errormessage) {$errormessage=preg_replace('/ snipeit /', '', $errormessage);- print('<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> '.$errormessage.'</span>');+ print('<span class="alert-msg" role="alert" aria-live="assertive">'.$errormessage.'</span>');}?></div>diff --git a/resources/views/models/edit.blade.php b/resources/views/models/edit.blade.phpindex 7ea0794798..2ad3eb2f5c 100755--- a/resources/views/models/edit.blade.php+++ b/resources/views/models/edit.blade.php@@ -50,7 +50,7 @@</div></div><div class="col-md-9 col-md-offset-3">- {!! $errors->first('eol', '<span class="alert-msg" role="alert" aria-live="assertive"><br><i class="fas fa-times"></i> :message</span>') !!}+ <x-form.error name="eol" /></div></div>diff --git a/resources/views/partials/forms/checkout-selector.blade.php b/resources/views/partials/forms/checkout-selector.blade.phpindex 150a0e8ec9..eba5094bae 100644--- a/resources/views/partials/forms/checkout-selector.blade.php+++ b/resources/views/partials/forms/checkout-selector.blade.php@@ -28,7 +28,7 @@</label>@endif- {!! $errors->first('checkout_to_type', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="checkout_to_type" /></div></div></div>diff --git a/resources/views/partials/forms/edit/accessory-select.blade.php b/resources/views/partials/forms/edit/accessory-select.blade.phpindex 43fd415caa..ac945a9e5a 100644--- a/resources/views/partials/forms/edit/accessory-select.blade.php+++ b/resources/views/partials/forms/edit/accessory-select.blade.php@@ -23,6 +23,6 @@@endcannot@endif- {!! $errors->first($fieldname, '<div class="col-md-8 col-md-offset-3"><span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times"></i> :message</span></div>') !!}+ <div class="col-md-8 col-md-offset-3"><x-form.error :name="$fieldname" /></div></div>diff --git a/resources/views/partials/forms/edit/address.blade.php b/resources/views/partials/forms/edit/address.blade.phpindex 9e9090a255..948e46fb03 100644--- a/resources/views/partials/forms/edit/address.blade.php+++ b/resources/views/partials/forms/edit/address.blade.php@@ -2,7 +2,7 @@<label for="address" class="col-md-3 control-label">{{ trans('general.address') }}</label><div class="col-md-7"><input class="form-control" aria-label="address" maxlength="191" name="address" type="text" id="address" value="{{ old('address', $item->address) }}">- {!! $errors->first('address', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="address" /></div></div>@@ -10,7 +10,7 @@<label class="sr-only " for="address2">{{ trans('general.address') }}</label><div class="col-md-7 col-md-offset-3"><input class="form-control" aria-label="address2" maxlength="191" name="address2" type="text" value="{{ old('address2', $item->address2) }}">- {!! $errors->first('address2', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="address2" /></div></div>@@ -18,7 +18,7 @@<label for="city" class="col-md-3 control-label">{{ trans('general.city') }}</label><div class="col-md-7"><input class="form-control" aria-label="city" maxlength="191" name="city" type="text" id="city" value="{{ old('city', $item->city) }}">- {!! $errors->first('city', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="city" /></div></div>@@ -26,7 +26,7 @@<label for="state" class="col-md-3 control-label">{{ trans('general.state') }}</label><div class="col-md-7"><input class="form-control" aria-label="state" maxlength="191" name="state" type="text" id="state" value="{{ old('state', $item->state) }}">- {!! $errors->first('state', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="state" /></div></div>@@ -39,7 +39,7 @@:selected="old('country', $item->country)"/><p class="help-block">{{ trans('general.countries_manually_entered_help') }}</p>- {!! $errors->first('country', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="country" /></div></div>@@ -47,6 +47,6 @@<label for="zip" class="col-md-3 control-label" maxlength="10">{{ trans('general.zip') }}</label><div class="col-md-7"><input class="form-control" name="zip" type="text" id="zip" value="{{ old('zip', $item->zip) }}">- {!! $errors->first('zip', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="zip" /></div></div>diff --git a/resources/views/partials/forms/edit/asset-select.blade.php b/resources/views/partials/forms/edit/asset-select.blade.phpindex 0d14359b94..2dacb66f14 100644--- a/resources/views/partials/forms/edit/asset-select.blade.php+++ b/resources/views/partials/forms/edit/asset-select.blade.php@@ -45,6 +45,6 @@@endcannot@endif- {!! $errors->first($fieldname, '<div class="col-md-8 col-md-offset-3"><span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span></div>') !!}+ <div class="col-md-8 col-md-offset-3"><x-form.error :name="$fieldname" /></div></div>diff --git a/resources/views/partials/forms/edit/category-select.blade.php b/resources/views/partials/forms/edit/category-select.blade.phpindex 42c2677e04..a5c302703f 100644--- a/resources/views/partials/forms/edit/category-select.blade.php+++ b/resources/views/partials/forms/edit/category-select.blade.php@@ -34,7 +34,7 @@</div>- {!! $errors->first($fieldname, '<div class="col-md-8 col-md-offset-3"><span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span></div>') !!}+ <div class="col-md-8 col-md-offset-3"><x-form.error :name="$fieldname" /></div>- {!! $errors->first('category_type', '<div class="col-md-8 col-md-offset-3"><span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span></div>') !!}+ <div class="col-md-8 col-md-offset-3"><x-form.error name="category_type" /></div></div>diff --git a/resources/views/partials/forms/edit/company-select.blade.php b/resources/views/partials/forms/edit/company-select.blade.phpindex f75a401b1a..8dc5461587 100644--- a/resources/views/partials/forms/edit/company-select.blade.php+++ b/resources/views/partials/forms/edit/company-select.blade.php@@ -39,5 +39,5 @@@endcan@endif- {!! $errors->first($fieldname, '<div class="col-md-8 col-md-offset-3"><span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span></div>') !!}+ <div class="col-md-8 col-md-offset-3"><x-form.error :name="$fieldname" /></div></div>diff --git a/resources/views/partials/forms/edit/consumable-select.blade.php b/resources/views/partials/forms/edit/consumable-select.blade.phpindex aca9df5561..a0299ee345 100644--- a/resources/views/partials/forms/edit/consumable-select.blade.php+++ b/resources/views/partials/forms/edit/consumable-select.blade.php@@ -23,6 +23,6 @@@endcannot@endif- {!! $errors->first($fieldname, '<div class="col-md-8 col-md-offset-3"><span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times"></i> :message</span></div>') !!}+ <div class="col-md-8 col-md-offset-3"><x-form.error :name="$fieldname" /></div></div>diff --git a/resources/views/partials/forms/edit/datepicker.blade.php b/resources/views/partials/forms/edit/datepicker.blade.phpindex 28f0a294f8..7db9584183 100644--- a/resources/views/partials/forms/edit/datepicker.blade.php+++ b/resources/views/partials/forms/edit/datepicker.blade.php@@ -8,7 +8,7 @@placeholder="{{ trans('general.select_date') }}"required="{{ Helper::checkIfRequired($item, 'start_date') }}"/>- {!! $errors->first($fieldname, '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error :name="$fieldname" /></div>@if (isset($help_text))<div class="col-md-8 col-md-offset-3">diff --git a/resources/views/partials/forms/edit/department-select.blade.php b/resources/views/partials/forms/edit/department-select.blade.phpindex 2e830fb82d..c584e4c87a 100644--- a/resources/views/partials/forms/edit/department-select.blade.php+++ b/resources/views/partials/forms/edit/department-select.blade.php@@ -25,6 +25,6 @@</div>- {!! $errors->first($fieldname, '<div class="col-md-8 col-md-offset-3"><span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span></div>') !!}+ <div class="col-md-8 col-md-offset-3"><x-form.error :name="$fieldname" /></div></div>diff --git a/resources/views/partials/forms/edit/depreciation.blade.php b/resources/views/partials/forms/edit/depreciation.blade.phpindex c62b3e3ba5..228fdc8363 100644--- a/resources/views/partials/forms/edit/depreciation.blade.php+++ b/resources/views/partials/forms/edit/depreciation.blade.php@@ -10,6 +10,6 @@style="width:350px;"aria-label="depreciation_id"/>- {!! $errors->first('depreciation_id', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="depreciation_id" /></div></div>diff --git a/resources/views/partials/forms/edit/email.blade.php b/resources/views/partials/forms/edit/email.blade.phpindex 1ad838de39..9d62a1fdb3 100644--- a/resources/views/partials/forms/edit/email.blade.php+++ b/resources/views/partials/forms/edit/email.blade.php@@ -2,6 +2,6 @@<label for="email" class="col-md-3 col-xs-12 control-label">{{ trans('admin/suppliers/table.email') }}</label><div class="col-md-8 col-xs-12"><input type="email" name="email" id="email" value="{{ old('email', $item->email ?? null) }}" class="form-control" maxlength="191" style="width:100%; display:flex;">- {!! $errors->first('email', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="email" /></div></div>diff --git a/resources/views/partials/forms/edit/fax.blade.php b/resources/views/partials/forms/edit/fax.blade.phpindex bd8628a731..b0bc22a76b 100644--- a/resources/views/partials/forms/edit/fax.blade.php+++ b/resources/views/partials/forms/edit/fax.blade.php@@ -2,6 +2,6 @@<label for="fax" class="col-md-3 control-label">{{ trans('admin/suppliers/table.fax') }}</label><div class="col-md-7"><input class="form-control" type="text" name="fax" aria-label="fax" id="fax" value="{{ old('fax', $item->fax) }}" maxlength="34" />- {!! $errors->first('fax', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="fax" /></div></div>diff --git a/resources/views/partials/forms/edit/file-upload.blade.php b/resources/views/partials/forms/edit/file-upload.blade.phpindex 32fd31cba8..554a684cb1 100644--- a/resources/views/partials/forms/edit/file-upload.blade.php+++ b/resources/views/partials/forms/edit/file-upload.blade.php@@ -25,7 +25,7 @@@foreach ($errors->get('file.*') as $messages)@foreach ($messages as $message)- <span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> {{ $message }}</span><br>+ <span class="alert-msg" role="alert" aria-live="assertive">{{ $message }}</span><br>@endforeach@endforeachdiff --git a/resources/views/partials/forms/edit/image-upload.blade.php b/resources/views/partials/forms/edit/image-upload.blade.phpindex 7a9395d68c..e6d0ba5672 100644--- a/resources/views/partials/forms/edit/image-upload.blade.php+++ b/resources/views/partials/forms/edit/image-upload.blade.php@@ -15,13 +15,13 @@{{ trans('general.use_cloned_image_help') }}</p>- {!! $errors->first('use_cloned_image', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="use_cloned_image" />@else<!-- Image Delete --><label class="form-control"><input type="checkbox" name="image_delete" value="1" @checked(old('image_delete')) aria-label="image_delete" id="image_delete">{{ trans('general.image_delete') }}- {!! $errors->first('image_delete', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="image_delete" /></label>@endif@@ -32,7 +32,7 @@<div class="form-group" id="existing-image"><div class="col-md-8 col-md-offset-3"><img src="{{ Storage::disk('public')->url($image_path.e($item->{($fieldname ?? 'image')})) }}" class="img-responsive">- {!! $errors->first('image_delete', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="image_delete" /></div></div>@elseif (isset($item) && (isset($item->model)) && ($item->model->image != ''))@@ -62,7 +62,7 @@<p class="help-block" id="uploadFile-status">{{ trans('general.image_filetypes_help', ['size' => Helper::file_upload_max_size_readable()]) }} {{ $help_text ?? '' }}</p>- {!! $errors->first('image', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="image" /></div><div class="col-md-4 col-md-offset-3" aria-hidden="true"><img id="uploadFile-imagePreview" style="max-width: 300px; display: none;" alt="{{ trans('general.alt_uploaded_image_thumbnail') }}">diff --git a/resources/views/partials/forms/edit/item_number.blade.php b/resources/views/partials/forms/edit/item_number.blade.phpindex 8647ee553d..0a6d77e936 100644--- a/resources/views/partials/forms/edit/item_number.blade.php+++ b/resources/views/partials/forms/edit/item_number.blade.php@@ -3,6 +3,6 @@<label for="item_no" class="col-md-3 control-label">{{ trans('admin/consumables/general.item_no') }}</label><div class="col-md-7 col-sm-12"><input class="form-control" type="text" name="item_no" id="item_no" value="{{ old('item_no', $item->item_no) }}"{{ (Helper::checkIfRequired($item, 'item_no')) ? ' required' : '' }}/>- {!! $errors->first('item_no', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="item_no" /></div></div>diff --git a/resources/views/partials/forms/edit/kit-select.blade.php b/resources/views/partials/forms/edit/kit-select.blade.phpindex e8acd812b4..dd4f13aa8b 100644--- a/resources/views/partials/forms/edit/kit-select.blade.php+++ b/resources/views/partials/forms/edit/kit-select.blade.php@@ -22,6 +22,6 @@@endcan</div>- {!! $errors->first($fieldname, '<div class="col-md-8 col-md-offset-3"><span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times"></i> :message</span></div>') !!}+ <div class="col-md-8 col-md-offset-3"><x-form.error :name="$fieldname" /></div></div>diff --git a/resources/views/partials/forms/edit/license-select.blade.php b/resources/views/partials/forms/edit/license-select.blade.phpindex 5afc12070d..faa7227ceb 100644--- a/resources/views/partials/forms/edit/license-select.blade.php+++ b/resources/views/partials/forms/edit/license-select.blade.php@@ -23,6 +23,6 @@@endcannot@endif- {!! $errors->first($fieldname, '<div class="col-md-8 col-md-offset-3"><span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times"></i> :message</span></div>') !!}+ <div class="col-md-8 col-md-offset-3"><x-form.error :name="$fieldname" /></div></div>diff --git a/resources/views/partials/forms/edit/location-profile-select.blade.php b/resources/views/partials/forms/edit/location-profile-select.blade.phpindex 83d6a59082..a0f2fac712 100644--- a/resources/views/partials/forms/edit/location-profile-select.blade.php+++ b/resources/views/partials/forms/edit/location-profile-select.blade.php@@ -14,7 +14,7 @@</select></div>- {!! $errors->first('location_id', '<div class="col-md-8 col-md-offset-3"><span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span></div>') !!}+ <div class="col-md-8 col-md-offset-3"><x-form.error name="location_id" /></div>@if ($snipeSettings->full_multiple_companies_support == '1' && $snipeSettings->scope_locations_fmcs == '1')@cannot('superadmin')diff --git a/resources/views/partials/forms/edit/location-select.blade.php b/resources/views/partials/forms/edit/location-select.blade.phpindex 4ab8170a12..65855eed8a 100644--- a/resources/views/partials/forms/edit/location-select.blade.php+++ b/resources/views/partials/forms/edit/location-select.blade.php@@ -27,7 +27,7 @@@endcan</div>- {!! $errors->first($fieldname, '<div class="col-md-8 col-md-offset-3"><span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span></div>') !!}+ <div class="col-md-8 col-md-offset-3"><x-form.error :name="$fieldname" /></div>@if ($snipeSettings->full_multiple_companies_support == '1' && $snipeSettings->scope_locations_fmcs == '1')@cannot('superadmin')diff --git a/resources/views/partials/forms/edit/maintenance_type.blade.php b/resources/views/partials/forms/edit/maintenance_type.blade.phpindex 040a0fd1d4..cff3779ec1 100644--- a/resources/views/partials/forms/edit/maintenance_type.blade.php+++ b/resources/views/partials/forms/edit/maintenance_type.blade.php@@ -30,7 +30,7 @@aria-label="asset_maintenance_type"/>@endif- {!! $errors->first('maintenance_type_id', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="maintenance_type_id" /></div><div class="col-md-1 col-sm-1 text-left">diff --git a/resources/views/partials/forms/edit/manufacturer-select.blade.php b/resources/views/partials/forms/edit/manufacturer-select.blade.phpindex 7ce10dbfc8..bddd47a4c3 100644--- a/resources/views/partials/forms/edit/manufacturer-select.blade.php+++ b/resources/views/partials/forms/edit/manufacturer-select.blade.php@@ -37,5 +37,5 @@</div>- {!! $errors->first($fieldname, '<div class="col-md-8 col-md-offset-3"><span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span></div>') !!}+ <div class="col-md-8 col-md-offset-3"><x-form.error :name="$fieldname" /></div></div>diff --git a/resources/views/partials/forms/edit/minimum_quantity.blade.php b/resources/views/partials/forms/edit/minimum_quantity.blade.phpindex f42b8b368c..43771ea3b9 100644--- a/resources/views/partials/forms/edit/minimum_quantity.blade.php+++ b/resources/views/partials/forms/edit/minimum_quantity.blade.php@@ -15,7 +15,7 @@</x-form.tooltip></div><div class="col-md-12">- {!! $errors->first('min_amt', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="min_amt" /></div></div></div>diff --git a/resources/views/partials/forms/edit/model-select.blade.php b/resources/views/partials/forms/edit/model-select.blade.phpindex 5fa83cc0c3..c75f00cb9c 100644--- a/resources/views/partials/forms/edit/model-select.blade.php+++ b/resources/views/partials/forms/edit/model-select.blade.php@@ -36,5 +36,5 @@@endcan</div>- {!! $errors->first($fieldname, '<div class="col-md-8 col-md-offset-3"><span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span></div>') !!}+ <div class="col-md-8 col-md-offset-3"><x-form.error :name="$fieldname" /></div></div>diff --git a/resources/views/partials/forms/edit/model_number.blade.php b/resources/views/partials/forms/edit/model_number.blade.phpindex 4a4e6c8dbb..fd18e62092 100644--- a/resources/views/partials/forms/edit/model_number.blade.php+++ b/resources/views/partials/forms/edit/model_number.blade.php@@ -3,6 +3,6 @@<label for="model_number" class="col-md-3 control-label">{{ trans('general.model_no') }}</label><div class="col-md-7"><input class="form-control" type="text" name="model_number" aria-label="model_number" id="model_number" value="{{ old('model_number', $item->model_number) }}" />- {!! $errors->first('model_number', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="model_number" /></div></div>diff --git a/resources/views/partials/forms/edit/name-first.blade.php b/resources/views/partials/forms/edit/name-first.blade.phpindex 1800386c66..2166a38b90 100644--- a/resources/views/partials/forms/edit/name-first.blade.php+++ b/resources/views/partials/forms/edit/name-first.blade.php@@ -9,7 +9,7 @@<label class="col-md-3 control-label" for="first_name">{{ trans('general.first_name') }}</label><div class="{{$class ? $class : 'col-md-6'}}" style= "{{$style}}"><input class="form-control" type="text" name="first_name" id="first_name" value="{{ old('first_name', ($value ?? $user->first_name)) }}" {{$required ? 'required' : ''}} maxlength="191" {{ (Helper::checkIfRequired($user, 'first_name')) ? ' required' : '' }}/>- {!! $errors->first('first_name', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="first_name" /></div></div><!-- partials/forms/edit/name-first.blade.php -->\ No newline at end of filediff --git a/resources/views/partials/forms/edit/name-last.blade.php b/resources/views/partials/forms/edit/name-last.blade.phpindex 1eb25f6f68..19951c3f73 100644--- a/resources/views/partials/forms/edit/name-last.blade.php+++ b/resources/views/partials/forms/edit/name-last.blade.php@@ -9,7 +9,7 @@<label class="col-md-3 control-label" for="last_name">{{ trans('general.last_name') }} </label><div class="{{$class}}" style= "{{$style ? $style : ''}}"><input class="form-control" type="text" name="last_name" id="last_name" value="{{ old('last_name', ($value ?? $user->last_name)) }}" maxlength="191"{{ (Helper::checkIfRequired($user, 'last_name')) ? ' required' : '' }} />- {!! $errors->first('last_name', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="last_name" /></div></div><!-- partials/forms/edit/name-last.blade.php -->\ No newline at end of filediff --git a/resources/views/partials/forms/edit/name.blade.php b/resources/views/partials/forms/edit/name.blade.phpindex a35be81593..dc4adf7987 100644--- a/resources/views/partials/forms/edit/name.blade.php+++ b/resources/views/partials/forms/edit/name.blade.php@@ -3,6 +3,6 @@<label for="name" class="col-md-3 control-label">{{ $translated_name }}</label><div class="col-md-8 col-sm-12"><input class="form-control" style="width:100%;" type="text" name="name" aria-label="name" id="name" value="{{ old('name', $item->name) }}"{!! (Helper::checkIfRequired($item, 'name')) ? ' required' : '' !!} maxlength="191" />- {!! $errors->first('name', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="name" /></div></div>diff --git a/resources/views/partials/forms/edit/notes.blade.php b/resources/views/partials/forms/edit/notes.blade.phpindex ff594412b9..c11b00978e 100644--- a/resources/views/partials/forms/edit/notes.blade.php+++ b/resources/views/partials/forms/edit/notes.blade.php@@ -3,6 +3,6 @@<label for="notes" class="col-md-3 control-label">{{ trans('general.notes') }}</label><div class="col-md-7 col-sm-12"><textarea class="col-md-6 form-control" id="notes" aria-label="notes" name="notes" style="min-width:100%;">{{ old('notes', (isset($item) ? $item->notes : '')) }}</textarea>- {!! $errors->first('notes', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="notes" /></div></div>diff --git a/resources/views/partials/forms/edit/order_number.blade.php b/resources/views/partials/forms/edit/order_number.blade.phpindex 53e404d6a8..10c8c489a3 100644--- a/resources/views/partials/forms/edit/order_number.blade.php+++ b/resources/views/partials/forms/edit/order_number.blade.php@@ -3,6 +3,6 @@<label for="order_number" class="col-md-3 control-label">{{ trans('general.order_number') }}</label><div class="col-md-7 col-sm-12"><input class="form-control" type="text" name="order_number" aria-label="order_number" id="order_number" value="{{ old('order_number', $item->order_number) }}" maxlength="191" />- {!! $errors->first('order_number', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="order_number" /></div></div>diff --git a/resources/views/partials/forms/edit/phone.blade.php b/resources/views/partials/forms/edit/phone.blade.phpindex 5daa64a2a5..d6df9a3324 100644--- a/resources/views/partials/forms/edit/phone.blade.php+++ b/resources/views/partials/forms/edit/phone.blade.php@@ -2,6 +2,6 @@<label for="phone" class="col-md-3 control-label">{{ trans('admin/suppliers/table.phone') }}</label><div class="col-md-7"><input class="form-control" aria-label="phone" maxlength="191" name="phone" type="text" id="phone" value="{{ old('phone', $item->phone) }}">- {!! $errors->first('phone', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="phone" /></div></div>diff --git a/resources/views/partials/forms/edit/purchase_cost.blade.php b/resources/views/partials/forms/edit/purchase_cost.blade.phpindex 3aca81ef8a..39eddd4fcf 100644--- a/resources/views/partials/forms/edit/purchase_cost.blade.php+++ b/resources/views/partials/forms/edit/purchase_cost.blade.php@@ -13,7 +13,7 @@</span></div><div class="col-md-9" style="padding-left: 0px;">- {!! $errors->first('purchase_cost', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="purchase_cost" /><p class="help-block">{{ trans('general.purchase_cost_format_help', ['format' => $snipeSettings->digit_separator]) }}</p></div></div>diff --git a/resources/views/partials/forms/edit/quantity.blade.php b/resources/views/partials/forms/edit/quantity.blade.phpindex fd61b746c8..c9efc201ea 100644--- a/resources/views/partials/forms/edit/quantity.blade.php+++ b/resources/views/partials/forms/edit/quantity.blade.php@@ -7,7 +7,7 @@<input class="form-control" maxlength="5" min="{{ (isset($qty)) ? $qty : '0' }}" type="number" name="qty" aria-label="qty" id="qty" value="{{ old('qty', $item->qty) }}" {!! (Helper::checkIfRequired($item, 'qty')) ? ' required ' : '' !!}/></div><div class="col-md-12" style="padding-left:0">- {!! $errors->first('qty', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="qty" /></div></div></div>diff --git a/resources/views/partials/forms/edit/serial.blade.php b/resources/views/partials/forms/edit/serial.blade.phpindex d8a5c32fd2..6793eb3271 100644--- a/resources/views/partials/forms/edit/serial.blade.php+++ b/resources/views/partials/forms/edit/serial.blade.php@@ -3,10 +3,6 @@<label for="{{ $fieldname }}" class="col-md-3 control-label">{{ trans('admin/hardware/form.serial') }} </label><div class="col-md-7 col-sm-12"><input class="form-control" type="text" name="{{ $fieldname }}" id="{{ $fieldname }}" value="{{ old((isset($old_val_name) ? $old_val_name : $fieldname), $item->serial) }}" {{ (Helper::checkIfRequired($item, 'serial') || ($item->model && $item->model->require_serial)) ? ' required' : '' }} maxlength="191" />- @error($old_val_name ?? $fieldname)- <span class="alert-msg" role="alert" aria-live="assertive">- <i class="fas fa-times" aria-hidden="true"></i> {{ $message }}- </span>- @enderror+ <x-form.error :name="$old_val_name ?? $fieldname" /></div></div>diff --git a/resources/views/partials/forms/edit/status-select.blade.php b/resources/views/partials/forms/edit/status-select.blade.phpindex 8cdbfdbd9e..60f8b155cd 100644--- a/resources/views/partials/forms/edit/status-select.blade.php+++ b/resources/views/partials/forms/edit/status-select.blade.php@@ -30,5 +30,5 @@</div>- {!! $errors->first($fieldname, '<div class="col-md-8 col-md-offset-3"><span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span></div>') !!}+ <div class="col-md-8 col-md-offset-3"><x-form.error :name="$fieldname" /></div></div>diff --git a/resources/views/partials/forms/edit/status.blade.php b/resources/views/partials/forms/edit/status.blade.phpindex b167a58d16..4a7d1c0cb2 100644--- a/resources/views/partials/forms/edit/status.blade.php+++ b/resources/views/partials/forms/edit/status.blade.php@@ -12,7 +12,7 @@style="width:100%;"aria-label="status_id"/>- {!! $errors->first('status_id', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="status_id" /></div><div class="col-md-2 col-sm-2 text-left">diff --git a/resources/views/partials/forms/edit/supplier-select.blade.php b/resources/views/partials/forms/edit/supplier-select.blade.phpindex ef589ed28d..8bf1556ea2 100644--- a/resources/views/partials/forms/edit/supplier-select.blade.php+++ b/resources/views/partials/forms/edit/supplier-select.blade.php@@ -27,6 +27,6 @@@endcan</div>- {!! $errors->first($fieldname, '<div class="col-md-8 col-md-offset-3"><span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span></div>') !!}+ <div class="col-md-8 col-md-offset-3"><x-form.error :name="$fieldname" /></div></div>diff --git a/resources/views/partials/forms/edit/uploadLogo.blade.php b/resources/views/partials/forms/edit/uploadLogo.blade.phpindex aaabd1e71b..7b97b55d11 100644--- a/resources/views/partials/forms/edit/uploadLogo.blade.php+++ b/resources/views/partials/forms/edit/uploadLogo.blade.php@@ -17,7 +17,7 @@<span class='label label-default' id="{{ $logoId }}-info"></span>- {!! $errors->first($logoVariable, '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error :name="$logoVariable" /><p class="help-block" style="!important" id="{{ $logoId }}-status">diff --git a/resources/views/partials/forms/edit/user-select.blade.php b/resources/views/partials/forms/edit/user-select.blade.phpindex b1f02c5f49..d85e97c111 100644--- a/resources/views/partials/forms/edit/user-select.blade.php+++ b/resources/views/partials/forms/edit/user-select.blade.php@@ -30,6 +30,6 @@@endcannot@endif- {!! $errors->first($fieldname, '<div class="col-md-8 col-md-offset-3"><span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span></div>') !!}+ <div class="col-md-8 col-md-offset-3"><x-form.error :name="$fieldname" /></div></div>diff --git a/resources/views/partials/forms/edit/warranty.blade.php b/resources/views/partials/forms/edit/warranty.blade.phpindex fbce425d09..9a5c1e5e71 100644--- a/resources/views/partials/forms/edit/warranty.blade.php+++ b/resources/views/partials/forms/edit/warranty.blade.php@@ -7,7 +7,7 @@<span class="input-group-addon">{{ trans('admin/hardware/form.months') }}</span></div><div class="col-md-9" style="padding-left: 0px;">- {!! $errors->first('warranty_months', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="warranty_months" /></div></div></div>diff --git a/resources/views/partials/labels-legacy-engine.blade.php b/resources/views/partials/labels-legacy-engine.blade.phpindex b5de6e51b2..0eca9a08f6 100644--- a/resources/views/partials/labels-legacy-engine.blade.php+++ b/resources/views/partials/labels-legacy-engine.blade.php@@ -32,7 +32,7 @@:selected="old('label2_1d_type', $setting->label2_1d_type)"class="col-md-4"/>- {!! $errors->first('label2_1d_type', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="label2_1d_type" /><p class="help-block">{{ trans('admin/settings/general.label2_1d_type_help') }}.{!!@@ -73,7 +73,7 @@:selected="old('label2_2d_type', $setting->label2_2d_type)"class="col-md-4"/>- {!! $errors->first('label2_2d_type', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="label2_2d_type" /><p class="help-block">{{ trans('admin/settings/general.label2_2d_type_help', ['current' => $setting->barcode_type]) }}.{!! trans('admin/settings/general.help_default_will_use') !!}@@ -112,7 +112,7 @@<p class="help-block">{{ trans('admin/settings/general.qr_help') }}</p>@endif- {!! $errors->first('qr_text', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="qr_text" /></div></div>@@ -127,7 +127,7 @@<span id="purgebarcodesicon"></span><span id="purgebarcodesresult"></span><span id="purgebarcodesstatus"></span>- {!! $errors->first('purgebarcodes', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="purgebarcodes" /><p class="help-block">{{ trans('admin/settings/general.barcodes_help') }}</p></div></div>@@ -138,7 +138,7 @@</div><div class="col-md-9"><input class="form-control" style="width: 100px;" name="labels_per_page" type="text" value="{{ old('labels_per_page', $setting->labels_per_page) }}" id="labels_per_page">- {!! $errors->first('labels_per_page', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="labels_per_page" /></div></div>@@ -153,7 +153,7 @@</div></div><div class="col-md-9 col-md-offset-3">- {!! $errors->first('labels_fontsize', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="labels_fontsize" /></div></div>@@ -166,14 +166,14 @@<input class="form-control" name="labels_width" type="text" value="{{ old('labels_width', $setting->labels_width) }}" id="labels_width"><div class="input-group-addon">{{ trans('admin/settings/general.width_w') }}</div></div>- {!! $errors->first('labels_width', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="labels_width" /></div><div class="col-md-3 text-right"><div class="input-group"><input class="form-control" name="labels_height" type="text" value="{{ old('labels_height', $setting->labels_height) }}" id="labels_height"><div class="input-group-addon">{{ trans('admin/settings/general.height_h') }}</div></div>- {!! $errors->first('labels_height', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="labels_height" /></div></div>@@ -194,8 +194,8 @@</div></div><div class="col-md-9 col-md-offset-3">- {!! $errors->first('labels_display_sgutter', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}- {!! $errors->first('labels_display_bgutter', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="labels_display_sgutter" />+ <x-form.error name="labels_display_bgutter" /></div></div>@@ -242,8 +242,8 @@</div></div><div class="col-md-9 col-md-offset-3">- {!! $errors->first('labels_pagewidth', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}- {!! $errors->first('labels_pageheight', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="labels_pagewidth" />+ <x-form.error name="labels_pageheight" /></div></div>diff --git a/resources/views/partials/labels-new-engine.blade.php b/resources/views/partials/labels-new-engine.blade.phpindex d7231755e4..cf42aa244f 100644--- a/resources/views/partials/labels-new-engine.blade.php+++ b/resources/views/partials/labels-new-engine.blade.php@@ -57,7 +57,7 @@</div><div class="col-md-7"><input class="form-control" name="label2_title" type="text" id="label2_title" value="{{ old('label2_title', $setting->label2_title) }}">- {!! $errors->first('label2_title', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="label2_title" /><p class="help-block">{!! trans('admin/settings/general.label2_title_help') !!}</p><p class="help-block">{!! trans('admin/settings/general.label2_title_help_phold') !!}.<br />@@ -106,7 +106,7 @@:selected="old('label2_1d_type', $setting->label2_1d_type)"class="col-md-4"/>- {!! $errors->first('label2_1d_type', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="label2_1d_type" /><p class="help-block">{{ trans('admin/settings/general.label2_1d_type_help') }}.{!!@@ -139,7 +139,7 @@:selected="old('label2_2d_type', $setting->label2_2d_type)"class="col-md-4"/>- {!! $errors->first('label2_2d_type', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="label2_2d_type" /><p class="help-block">{{ trans('admin/settings/general.label2_2d_type_help', ['current' => $setting->barcode_type]) }}.{!! trans('admin/settings/general.help_default_will_use') !!}@@ -153,7 +153,7 @@</div><div class="col-md-7"><input class="form-control" name="label2_2d_prefix" type="text" id="label2_2d_prefix" value="{{ old('label2_2d_prefix', $setting->label2_2d_prefix) }}">- {!! $errors->first('label2_2d_prefix', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="label2_2d_prefix" /><p class="help-block">{!! trans('admin/settings/general.label2_2d_prefix_help') !!}</p></div></div>@@ -182,7 +182,7 @@:selected="old('label2_2d_target', $setting->label2_2d_target)"class="col-md-4"/>- {!! $errors->first('label2_2d_target', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="label2_2d_target" /><p class="help-block">{{ trans('admin/settings/general.label2_2d_target_help') }}</p></div></div>@@ -204,7 +204,7 @@</div><div class="col-md-9 col-md-offset-3"><p class="help-block">{!! trans('admin/settings/general.empty_row_count_help') !!}</p>- {!! $errors->first('label2_empty_row_count', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="label2_empty_row_count" /></div></div></fieldset>@@ -221,7 +221,7 @@'customFields' => $customFields,'template' => $setting->label2_template,])- {!! $errors->first('label2_fields', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="label2_fields" /></div></div></fieldset>diff --git a/resources/views/reports/custom/asset.blade.php b/resources/views/reports/custom/asset.blade.phpindex 27fd6fac8c..15b07a2158 100644--- a/resources/views/reports/custom/asset.blade.php+++ b/resources/views/reports/custom/asset.blade.php@@ -72,7 +72,7 @@value="{{ $template->name }}"required>- {!! $errors->first('name', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="name" /></div>@if ($template->created_by == auth()->id())<div class="col-md-3">@@ -443,8 +443,8 @@@if ($errors->has('purchase_start') || $errors->has('purchase_end'))<div class="col-md-9 col-lg-offset-3">- {!! $errors->first('purchase_start', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}- {!! $errors->first('purchase_end', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="purchase_start" />+ <x-form.error name="purchase_end" /></div>@endif@@ -461,8 +461,8 @@@if ($errors->has('purchase_cost_start') || $errors->has('purchase_cost_end'))<div class="col-md-9 col-lg-offset-3">- {!! $errors->first('purchase_cost_start', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}- {!! $errors->first('purchase_cost_end', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="purchase_cost_start" />+ <x-form.error name="purchase_cost_end" /></div>@endif@@ -479,8 +479,8 @@@if ($errors->has('created_start') || $errors->has('created_end'))<div class="col-md-9 col-lg-offset-3">- {!! $errors->first('created_start', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}- {!! $errors->first('created_end', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="created_start" />+ <x-form.error name="created_end" /></div>@endif</div>@@ -496,8 +496,8 @@@if ($errors->has('checkout_date_start') || $errors->has('checkout_date_end'))<div class="col-md-9 col-lg-offset-3">- {!! $errors->first('checkout_date_start', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}- {!! $errors->first('checkout_date_end', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="checkout_date_start" />+ <x-form.error name="checkout_date_end" /></div>@endif@@ -514,8 +514,8 @@@if ($errors->has('checkin_date_start') || $errors->has('checkin_date_end'))<div class="col-md-9 col-lg-offset-3">- {!! $errors->first('checkin_date_start', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}- {!! $errors->first('checkin_date_end', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="checkin_date_start" />+ <x-form.error name="checkin_date_end" /></div>@endif</div>@@ -531,8 +531,8 @@@if ($errors->has('expected_checkin_start') || $errors->has('expected_checkin_end'))<div class="col-md-9 col-lg-offset-3">- {!! $errors->first('expected_checkin_start', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}- {!! $errors->first('expected_checkin_end', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="expected_checkin_start" />+ <x-form.error name="expected_checkin_end" /></div>@endif@@ -549,8 +549,8 @@@if ($errors->has('asset_eol_date_start') || $errors->has('asset_eol_date_end'))<div class="col-md-9 col-lg-offset-3">- {!! $errors->first('asset_eol_date_start', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}- {!! $errors->first('asset_eol_date_end', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="asset_eol_date_start" />+ <x-form.error name="asset_eol_date_end" /></div>@endif</div>@@ -566,8 +566,8 @@@if ($errors->has('last_audit_start') || $errors->has('last_audit_end'))<div class="col-md-9 col-lg-offset-3">- {!! $errors->first('last_audit_start', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}- {!! $errors->first('last_audit_end', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="last_audit_start" />+ <x-form.error name="last_audit_end" /></div>@endif</div>@@ -583,8 +583,8 @@@if ($errors->has('next_audit_start') || $errors->has('next_audit_end'))<div class="col-md-9 col-lg-offset-3">- {!! $errors->first('next_audit_start', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}- {!! $errors->first('next_audit_end', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="next_audit_start" />+ <x-form.error name="next_audit_end" /></div>@endif</div>@@ -600,8 +600,8 @@@if ($errors->has('last_updated_start') || $errors->has('last_updated_end'))<div class="col-md-9 col-lg-offset-3">- {!! $errors->first('last_updated_start', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}- {!! $errors->first('last_updated_end', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="last_updated_start" />+ <x-form.error name="last_updated_end" /></div>@endif</div>@@ -616,7 +616,7 @@@if ($errors->has('last_updated_before'))<div class="col-md-9 col-lg-offset-3">- {!! $errors->first('last_updated_before', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="last_updated_before" /></div>@endif</div>@@ -790,7 +790,7 @@value="{{ $template->name }}"required>- {!! $errors->first('name', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="name" /></div><button class="btn btn-primary" style="width: 100%">{{ trans('admin/reports/general.save_template') }}diff --git a/resources/views/reports/custom/component.blade.php b/resources/views/reports/custom/component.blade.phpindex 5f64e04315..c0cbfcbcfc 100644--- a/resources/views/reports/custom/component.blade.php+++ b/resources/views/reports/custom/component.blade.php@@ -72,7 +72,7 @@value="{{ $template->name }}"required>- {!! $errors->first('name', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="name" /></div>@if ($template->created_by == auth()->id())<div class="col-md-3">@@ -290,8 +290,8 @@@if ($errors->has('purchase_start') || $errors->has('purchase_end'))<div class="col-md-9 col-lg-offset-3">- {!! $errors->first('purchase_start', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}- {!! $errors->first('purchase_end', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="purchase_start" />+ <x-form.error name="purchase_end" /></div>@endif</div>@@ -307,8 +307,8 @@@if ($errors->has('quantity_start') || $errors->has('quantity_end'))<div class="col-md-9 col-lg-offset-3">- {!! $errors->first('quantity_start', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}- {!! $errors->first('quantity_end', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="quantity_start" />+ <x-form.error name="quantity_end" /></div>@endif</div>@@ -324,8 +324,8 @@@if ($errors->has('min_quantity_start') || $errors->has('min_quantity_end'))<div class="col-md-9 col-lg-offset-3">- {!! $errors->first('min_quantity_start', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}- {!! $errors->first('min_quantity_end', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="min_quantity_start" />+ <x-form.error name="min_quantity_end" /></div>@endif</div>@@ -341,8 +341,8 @@@if ($errors->has('unit_cost_start') || $errors->has('unit_cost_end'))<div class="col-md-9 col-lg-offset-3">- {!! $errors->first('unit_cost_start', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}- {!! $errors->first('unit_cost_end', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="unit_cost_start" />+ <x-form.error name="unit_cost_end" /></div>@endif</div>@@ -358,8 +358,8 @@@if ($errors->has('checkout_date_start') || $errors->has('checkout_date_end'))<div class="col-md-9 col-lg-offset-3">- {!! $errors->first('checkout_date_start', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}- {!! $errors->first('checkout_date_end', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="checkout_date_start" />+ <x-form.error name="checkout_date_end" /></div>@endif</div>@@ -375,8 +375,8 @@@if ($errors->has('created_start') || $errors->has('created_end'))<div class="col-md-9 col-lg-offset-3">- {!! $errors->first('created_start', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}- {!! $errors->first('created_end', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="created_start" />+ <x-form.error name="created_end" /></div>@endif</div>@@ -392,8 +392,8 @@@if ($errors->has('last_updated_start') || $errors->has('last_updated_end'))<div class="col-md-9 col-lg-offset-3">- {!! $errors->first('last_updated_start', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}- {!! $errors->first('last_updated_end', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="last_updated_start" />+ <x-form.error name="last_updated_end" /></div>@endif</div>@@ -408,7 +408,7 @@@if ($errors->has('last_updated_before'))<div class="col-md-9 col-lg-offset-3">- {!! $errors->first('last_updated_before', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="last_updated_before" /></div>@endif</div>@@ -515,7 +515,7 @@value="{{ $template->name }}"required>- {!! $errors->first('name', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="name" /></div><button class="btn btn-primary" style="width: 100%">{{ trans('admin/reports/general.save_template') }}diff --git a/resources/views/settings/alerts.blade.php b/resources/views/settings/alerts.blade.phpindex 328507e2dd..081d52e5c3 100644--- a/resources/views/settings/alerts.blade.php+++ b/resources/views/settings/alerts.blade.php@@ -80,7 +80,7 @@</div><div class="col-md-8 col-md-offset-3"><p class="help-block">{{ trans('admin/settings/general.alert_email_help') }}</p>- {!! $errors->first('alert_email', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span><br>') !!}+ <x-form.error name="alert_email" /><br></div></div>@@ -97,7 +97,7 @@</div><div class="col-md-8 col-md-offset-3"><p class="help-block">{{ trans('admin/settings/general.admin_cc_email_help') }}</p>- {!! $errors->first('admin_cc_email', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span><br>') !!}+ <x-form.error name="admin_cc_email" /><br></div></div><x-form.radio-row@@ -123,7 +123,7 @@<div class="col-md-8"><input class="form-control" placeholder="5" maxlength="3" style="width: 100px;" name="alert_threshold" type="number" value="{{ old('alert_threshold', $setting->alert_threshold) }}" id="alert_threshold">- {!! $errors->first('alert_threshold', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="alert_threshold" /></div></div>@@ -135,7 +135,7 @@<div class="input-group col-xs-10 col-sm-6 col-md-4 col-lg-3 col-xl-3"><input class="form-control" placeholder="30" maxlength="3" name="alert_interval" type="number" value="{{ old('alert_interval', $setting->alert_interval) }}" id="alert_interval"><span class="input-group-addon">{{ trans('general.days') }}</span>- {!! $errors->first('alert_interval', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="alert_interval" /></div></div>@@ -149,7 +149,7 @@<span class="input-group-addon">{{ trans('general.days') }}</span></div><div class="col-md-8 col-md-offset-3">- {!! $errors->first('due_checkin_days', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="due_checkin_days" /><p class="help-block">{{ trans('admin/settings/general.due_checkin_days_help') }}</p></div></div>@@ -163,7 +163,7 @@<span class="input-group-addon">{{ trans('general.days') }}</span></div><div class="col-md-8 col-md-offset-3">- {!! $errors->first('audit_warning_days', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="audit_warning_days" /><p class="help-block">{{ trans('admin/settings/general.audit_warning_days_help') }}</p></div></div>@@ -178,7 +178,7 @@<span class="input-group-addon">{{ trans('general.months') }}</span></div><div class="col-md-8 col-md-offset-3">- {!! $errors->first('audit_interval', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="audit_interval" /><p class="help-block">{{ trans('admin/settings/general.audit_interval_help') }}</p>diff --git a/resources/views/settings/api.blade.php b/resources/views/settings/api.blade.phpindex 4c9e2a9ae5..bda17fe2d8 100644--- a/resources/views/settings/api.blade.php+++ b/resources/views/settings/api.blade.php@@ -52,7 +52,7 @@<p class="help-block">{{ trans('admin/settings/general.block_api_user_agents_help') }}</p>- {!! $errors->first('block_api_user_agents', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="block_api_user_agents" /></div></div>@@ -68,7 +68,7 @@aria-describedby="blocked_api_user_agents_help"@disabled(! $blockApiUserAgents)>{{ $blockedApiUserAgents }}</textarea>- {!! $errors->first('blocked_api_user_agents', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="blocked_api_user_agents" /></div><div class="col-md-offset-3 col-md-8">@@ -89,7 +89,7 @@<p class="help-block">{!! trans('admin/settings/general.block_blank_api_user_agents_help') !!}</p>- {!! $errors->first('block_blank_api_user_agents', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="block_blank_api_user_agents" /></div></div>diff --git a/resources/views/settings/asset_tags.blade.php b/resources/views/settings/asset_tags.blade.phpindex 992f66b71c..24b6e15746 100644--- a/resources/views/settings/asset_tags.blade.php+++ b/resources/views/settings/asset_tags.blade.php@@ -56,7 +56,8 @@<div class="col-md-8"><input class="form-control" style="width: 200px;" aria-label="next_auto_tag_base" name="next_auto_tag_base" type="text" value="{{ old('next_auto_tag_base', $setting->next_auto_tag_base) }}" id="next_auto_tag_base">- {!! $errors->first('next_auto_tag_base', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="next_auto_tag_base" />+</div></div>@@ -68,7 +69,7 @@<div class="col-md-8"><input class="form-control" disabled maxlength="100" style="width: 200px;" aria-label="auto_increment_prefix" name="auto_increment_prefix" type="text" id="auto_increment_prefix" value="{{ old('auto_increment_prefix', $setting->auto_increment_prefix) }}">- {!! $errors->first('auto_increment_prefix', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="auto_increment_prefix" /></div></div>@@ -80,7 +81,7 @@<div class="col-md-7"><input class="form-control" maxlength="100" style="width: 200px;" aria-label="zerofill_count" name="zerofill_count" type="text" value="{{ old('zerofill_count', $setting->zerofill_count) }}" id="zerofill_count">- {!! $errors->first('zerofill_count', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="zerofill_count" /></div></div>diff --git a/resources/views/settings/backups.blade.php b/resources/views/settings/backups.blade.phpindex 8cca86a690..ea729aa46e 100644--- a/resources/views/settings/backups.blade.php+++ b/resources/views/settings/backups.blade.php@@ -182,7 +182,7 @@<p class="label label-default col-md-12" style="font-size: 120%!important; margin-top: 10px; margin-bottom: 10px;" id="uploadFile-info"></p><p class="help-block" style="margin-top: 10px;" id="uploadFile-status">{{ trans_choice('general.filetypes_accepted_help', 1, ['size' => Helper::file_upload_max_size_readable(), 'types' => '.zip']) }}</p>- {!! $errors->first('file', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="file" /></div>diff --git a/resources/views/settings/branding.blade.php b/resources/views/settings/branding.blade.phpindex b42a6a0e60..5d32abec79 100644--- a/resources/views/settings/branding.blade.php+++ b/resources/views/settings/branding.blade.php@@ -68,7 +68,7 @@@else<input maxlength="191" class="form-control" placeholder="Snipe-IT Asset Management" required="required" name="site_name" type="text" value="{{ old('site_name', $setting->site_name) }}" id="site_name">@endif- {!! $errors->first('site_name', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="site_name" /></div></div>@@ -83,7 +83,7 @@<div class="col-md-9"><x-input.colorpicker :item="$setting" placeholder="#3c8dbc" div_id="header-color" id="header_color" :value="old('header_color', ($setting->header_color ?? '#3c8dbc'))" name="header_color" /><p class="help-block">{{ trans('admin/settings/general.header_color_help') }}</p>- {!! $errors->first('header_color', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="header_color" /></div></div>@@ -92,7 +92,7 @@<label for="nav_link_color" class="col-md-3 control-label">{{ trans('admin/settings/general.nav_link_color') }}</label><div class="col-md-9"><x-input.colorpicker :item="$setting" placeholder="#ffffff" div_id="nav-link-color" id="nav_link_color" :value="old('nav_link_color', ($setting->nav_link_color ?? '#ffffff'))" name="nav_link_color" />- {!! $errors->first('nav_link_color', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="nav_link_color" /><p class="help-block">{{ trans('admin/settings/general.nav_link_color_help') }}</p></div></div>@@ -102,7 +102,7 @@<label for="link_light_color" class="col-md-3 control-label">{{ trans('admin/settings/general.link_light_color') }}</label><div class="col-md-9"><x-input.colorpicker :item="$setting" id="link_light_color" placeholder="#296282" :value="old('link_light_color', ($setting->link_light_color ?? '#296282'))" name="link_light_color" />- {!! $errors->first('link_light_color', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="link_light_color" /><p class="help-block">{{ trans('admin/settings/general.link_light_color_help') }}</p></div></div>@@ -112,7 +112,7 @@<label for="link_dark_color" class="col-md-3 control-label">{{ trans('admin/settings/general.link_dark_color') }}</label><div class="col-md-9"><x-input.colorpicker :item="$setting" id="link_dark_color" placeholder="#5fa4cc" :value="old('link_dark_color', ($setting->link_dark_color ?? '#5fa4cc'))" name="link_dark_color" />- {!! $errors->first('link_dark_color', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="link_dark_color" /><p class="help-block">{{ trans('admin/settings/general.link_dark_color_help') }}</p></div></div>@@ -155,7 +155,7 @@class="form-control"style="width: 150px"/>- {!! $errors->first('brand', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="brand" /></div></div>@@ -243,7 +243,7 @@<label class="form-control"><input type="checkbox" name="load_remote" value="1" @checked(old('load_remote', $setting->load_remote)) />{{ trans('general.yes') }}- {!! $errors->first('load_remote', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="load_remote" /></label><p class="help-block">@@ -303,7 +303,7 @@aria-label="custom_css"disabled/>- {!! $errors->first('custom_css', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="custom_css" /><p class="text-warning"><i class="fas fa-lock"></i> {{ trans('general.feature_disabled') }}</p>@else<x-input.textarea@@ -312,7 +312,7 @@placeholder="{{ trans('admin/settings/general.custom_css_placeholder') }}"aria-label="custom_css"/>- {!! $errors->first('custom_css', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="custom_css" />@endif<p class="help-block">{!! trans('admin/settings/general.custom_css_help') !!}</p></div>@@ -357,7 +357,7 @@@endif- {!! $errors->first('support_footer', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="support_footer" /></div></div>@@ -391,7 +391,7 @@@endif<p class="help-block">{{ trans('admin/settings/general.version_footer_help') }}</p>- {!! $errors->first('version_footer', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="version_footer" /></div></div>@@ -420,7 +420,7 @@/>@endif<p class="help-block">{!! trans('admin/settings/general.footer_text_help') !!}</p>- {!! $errors->first('footer_text', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="footer_text" /></div></div>diff --git a/resources/views/settings/general.blade.php b/resources/views/settings/general.blade.phpindex 5d86b49e6f..2aae45fc05 100644--- a/resources/views/settings/general.blade.php+++ b/resources/views/settings/general.blade.php@@ -79,7 +79,7 @@<div class="col-md-8"><input class="form-control" placeholder="example.com" name="email_domain" type="text" value="{{ old('email_domain', $setting->email_domain) }}" id="email_domain"><span class="help-block">{{ trans('general.email_domain_help') }}</span>- {!! $errors->first('email_domain', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="email_domain" /></div></div>@@ -96,7 +96,7 @@style="width: 100%"aria-label="email_format"/>- {!! $errors->first('email_format', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="email_format" /></div></div>@@ -112,7 +112,7 @@style="width: 100%"aria-label="username_format"/>- {!! $errors->first('username_format', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="username_format" /><p class="help-block">{{ trans('admin/settings/general.username_format_help') }}@@ -163,7 +163,7 @@:value="old('default_eula_text', $setting->default_eula_text)"placeholder="{{ trans('admin/settings/general.default_eula_text_placeholder') }}"/>- {!! $errors->first('default_eula_text', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="default_eula_text" /><p class="help-block">{{ trans('admin/settings/general.default_eula_help_text') }}</p><p class="help-block">{!! trans('admin/settings/general.eula_markdown') !!}</p></div>@@ -184,7 +184,7 @@<div class="col-md-8"><input class="form-control" style="max-width: 100px;" placeholder="50" maxlength="3" name="thumbnail_max_h" type="number" value="{{ old('thumbnail_max_h', ($setting->thumbnail_max_h ?? '25')) }}" id="thumbnail_max_h"><p class="help-block">{{ trans('admin/settings/general.thumbnail_max_h_help') }}</p>- {!! $errors->first('thumbnail_max_h', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="thumbnail_max_h" /></div></div>@@ -226,7 +226,7 @@{{ trans('admin/settings/general.show_assigned_assets') }}</label><p class="help-block">{{ trans('admin/settings/general.show_assigned_assets_help') }}</p>- {!! $errors->first('show_assigned_assets', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="show_assigned_assets" /></div></div>@@ -276,7 +276,7 @@<label class="form-control"><input type="checkbox" name="show_images_in_email" value="1" @checked(old('show_images_in_email', $setting->show_images_in_email)) />{{ trans('admin/settings/general.show_images_in_email') }}- {!! $errors->first('show_images_in_email', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="show_images_in_email" /></label></div>@@ -320,11 +320,11 @@@if (config('app.lock_passwords'))<textarea class="form-control disabled" name="login_note" placeholder="{{trans('admin/settings/general.login_note_placeholder')}}" rows="2" aria-label="login_note" readonly>{{ old('login_note', $setting->login_note) }}</textarea>- {!! $errors->first('login_note', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="login_note" /><p class="text-warning"><i class="fas fa-lock"></i> {{ trans('general.feature_disabled') }}</p>@else<textarea class="form-control" name="login_note" aria-label="login_note" placeholder="{{trans('admin/settings/general.login_note_placeholder')}}" rows="2">{{ old('login_note', $setting->login_note) }}</textarea>- {!! $errors->first('login_note', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="login_note" />@endif<p class="help-block">{!! trans('admin/settings/general.login_note_help') !!}</p></div>@@ -354,11 +354,11 @@@if (config('app.lock_passwords'))<textarea class="form-control disabled" name="login_note" placeholder="{{ trans('admin/settings/general.login_note_placeholder') }}" rows="2" aria-label="dashboard_message" readonly>{{ old('dashboard_message', $setting->login_note) }}</textarea>- {!! $errors->first('dashboard_message', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="dashboard_message" /><p class="text-warning"><i class="fas fa-lock"></i> {{ trans('general.feature_disabled') }}</p>@else<textarea class="form-control" aria-label="dashboard_message" name="dashboard_message" rows="2">{{ old('login_note', $setting->dashboard_message) }}</textarea>- {!! $errors->first('dashboard_message', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="dashboard_message" />@endif<p class="help-block">{{ trans('admin/settings/general.dashboard_message_help') }}@@ -389,7 +389,7 @@@endif<span class="help-block">{{ trans('admin/settings/general.privacy_policy_link_help') }}</span>- {!! $errors->first('privacy_policy_link', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="privacy_policy_link" />@if (config('app.lock_passwords')===true)<p class="text-warning"><i class="fas fa-lock"></i> {{ trans('general.feature_disabled') }}</p>@@ -421,7 +421,7 @@<label class="form-control"><input type="checkbox" name="unique_serial" value="1" @checked(old('unique_serial', $setting->unique_serial)) />{{ trans('admin/settings/general.unique_serial') }}- {!! $errors->first('unique_serial', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="unique_serial" /></label><p class="help-block">@@ -441,7 +441,7 @@<p class="help-block">{{ trans('admin/settings/general.manager_view_enabled_help') }}</p>- {!! $errors->first('manager_view_enabled', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="manager_view_enabled" /></div></div><!-- /.form-group -->diff --git a/resources/views/settings/google.blade.php b/resources/views/settings/google.blade.phpindex 7a5cf7c9fb..a500a0dfa1 100644--- a/resources/views/settings/google.blade.php+++ b/resources/views/settings/google.blade.php@@ -77,7 +77,7 @@value="{{ old('google_client_id', $setting->google_client_id) }}"@disabled(config('app.lock_passwords')===true)>- {!! $errors->first('google_client_id', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="google_client_id" />@if (config('app.lock_passwords')===true)<p class="text-warning"><i class="fas fa-lock" aria-hidden="true"></i> {{ trans('general.feature_disabled') }}</p>@endif@@ -97,7 +97,7 @@<input class="form-control" placeholder="{{ trans('general.example') .'XXXXXXXXXXXX' }}" name="google_client_secret" type="text" id="google_client_secret" value="{{ old('google_client_secret', $setting->google_client_secret) }}">@endif- {!! $errors->first('google_client_secret', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="google_client_secret" />@if (config('app.lock_passwords')===true)<p class="text-warning"><i class="fas fa-lock" aria-hidden="true"></i> {{ trans('general.feature_disabled') }}</p>@endifdiff --git a/resources/views/settings/labels.blade.php b/resources/views/settings/labels.blade.phpindex 914d06d18e..db655180f8 100644--- a/resources/views/settings/labels.blade.php+++ b/resources/views/settings/labels.blade.php@@ -41,7 +41,7 @@{{ trans('admin/settings/general.label2_enable') }}</label>- {!! $errors->first('label2_enable', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="label2_enable" /><p class="help-block">{!! trans('admin/settings/general.label2_enable_help') !!}diff --git a/resources/views/settings/ldap.blade.php b/resources/views/settings/ldap.blade.phpindex a0e6d4f93c..fc80760528 100644--- a/resources/views/settings/ldap.blade.php+++ b/resources/views/settings/ldap.blade.php@@ -129,12 +129,7 @@<input type="checkbox" name="is_ad" value="1" id="is_ad" @checked(old('is_ad', $setting->is_ad))/>{{ trans('admin/settings/general.is_ad') }}</label>- @error('is_ad')- <span class="alert-msg" role="alert" aria-live="assertive">- <x-icon type="x" />- {{ $message }}- </span>- @enderror+ <x-form.error name="is_ad" />@if (config('app.lock_passwords')===true)<p class="text-warning">@@ -157,12 +152,7 @@</label><p class="help-block">{{ trans('admin/settings/general.ldap_pw_sync_help') }}</p>- @error('ldap_pw_sync')- <span class="alert-msg" role="alert" aria-live="assertive">- <x-icon type="x" />- {{ $message }}- </span>- @enderror+ <x-form.error name="ldap_pw_sync" />@if (config('app.lock_passwords')===true)<p class="text-warning">@@ -182,12 +172,7 @@<div class="col-md-8"><input class="form-control" placeholder="{{ trans('general.example') .'example.com' }}" name="ad_domain" type="text" id="ad_domain" value="{{ old('ad_domain', $setting->ad_domain) }}"><p class="help-block">{{ trans('admin/settings/general.ad_domain_help') }}</p>- @error('ad_domain')- <span class="alert-msg" role="alert" aria-live="assertive">- <x-icon type="x" />- {{ $message }}- </span>- @enderror+ <x-form.error name="ad_domain" />@if (config('app.lock_passwords')===true)<p class="text-warning">@@ -211,12 +196,7 @@value="{{ old('ldap_client_tls_key', $setting->ldap_client_tls_key) }}":placeholder="sprintf('%s-----BEGIN RSA PRIVATE KEY-----%s1234567890%s-----END RSA PRIVATE KEY-----', trans('general.example'), PHP_EOL, PHP_EOL)"/>- @error('ldap_client_tls_key')- <span class="alert-msg" role="alert" aria-live="assertive">- <x-icon type="x" />- {{ $message }}- </span>- @enderror+ <x-form.error name="ldap_client_tls_key" />@if (config('app.lock_passwords')===true)<p class="text-warning">@@ -239,12 +219,7 @@:placeholder="sprintf('%s-----BEGIN CERTIFICATE-----%s1234567890%s-----END CERTIFICATE-----', trans('general.example'), PHP_EOL, PHP_EOL)"/><p class="help-block">{{ trans('admin/settings/general.ldap_client_tls_cert_help') }}</p>- @error('ldap_client_tls_cert')- <span class="alert-msg" role="alert" aria-live="assertive">- <x-icon type="x" />- {{ $message }}- </span>- @enderror+ <x-form.error name="ldap_client_tls_cert" />@if (config('app.lock_passwords')===true)<p class="text-warning">@@ -262,12 +237,7 @@<div class="col-md-8"><input class="form-control" placeholder="{{ trans('general.example') .'ldap://ldap.example.com' }}" name="ldap_server" type="text" id="ldap_server" value="{{ old('ldap_server', $setting->ldap_server) }}">- @error('ldap_server')- <span class="alert-msg" role="alert" aria-live="assertive">- <x-icon type="x" />- {{ $message }}- </span>- @enderror+ <x-form.error name="ldap_server" /><p class="help-block">{{ trans('admin/settings/general.ldap_server_help') }}</p>@@ -290,12 +260,7 @@<input type="checkbox" name="ldap_tls" value="1" id="ldap_tls" @checked(old('ldap_tls', $setting->ldap_tls)) />{{ trans('admin/settings/general.ldap_tls_help') }}</label>- @error('ldap_tls')- <span class="alert-msg" role="alert" aria-live="assertive">- <x-icon type="x" />- {{ $message }}- </span>- @enderror+ <x-form.error name="ldap_tls" />@if (config('app.lock_passwords')===true)<p class="text-warning">@@ -316,12 +281,7 @@<input type="checkbox" name="ldap_server_cert_ignore" value="1" id="ldap_server_cert_ignore" @checked(old('ldap_server_cert_ignore', $setting->ldap_server_cert_ignore)) />{{ trans('admin/settings/general.ldap_server_cert_ignore') }}</label>- @error('ldap_server_cert_ignore')- <span class="alert-msg" role="alert" aria-live="assertive">- <x-icon type="x" />- {{ $message }}- </span>- @enderror+ <x-form.error name="ldap_server_cert_ignore" /><p class="help-block">{{ trans('admin/settings/general.ldap_server_cert_help') }}@@ -342,12 +302,7 @@<div class="col-md-8"><input class="form-control" autocomplete="off" placeholder="{{ trans('general.example') .'[email protected]' }}" name="ldap_uname" type="text" id="ldap_uname" value="{{ old('ldap_uname', $setting->ldap_uname) }}">- @error('ldap_uname')- <span class="alert-msg" role="alert" aria-live="assertive">- <x-icon type="x" />- {{ $message }}- </span>- @enderror+ <x-form.error name="ldap_uname" />@if (config('app.lock_passwords')===true)<p class="text-warning">@@ -365,12 +320,7 @@<div class="col-md-8"><input class="form-control" type="password" name="ldap_pword" id="ldap_pword" value="" autocomplete="off" onfocus="this.removeAttribute('readonly');" readonly>- @error('ldap_pword')- <span class="alert-msg" role="alert" aria-live="assertive">- <x-icon type="x" />- {{ $message }}- </span>- @enderror+ <x-form.error name="ldap_pword" />@if (config('app.lock_passwords')===true)<p class="text-warning">@@ -388,12 +338,7 @@<div class="col-md-8"><input class="form-control" placeholder="{{ trans('general.example') .'cn=users/authorized,dc=example,dc=com' }}" name="ldap_basedn" type="text" id="ldap_basedn" value="{{ old('ldap_basedn', $setting->ldap_basedn) }}">- @error('ldap_basedn')- <span class="alert-msg" role="alert" aria-live="assertive">- <x-icon type="x" />- {{ $message }}- </span>- @enderror+ <x-form.error name="ldap_basedn" />@if (config('app.lock_passwords')===true)<p class="text-warning">@@ -411,12 +356,7 @@<div class="col-md-8"><input type="text" name="ldap_filter" id="ldap_filter" value="{{ old('ldap_filter', $setting->ldap_filter) }}" class="form-control" placeholder="{{ trans('general.example') .'&(cn=*)' }}">- @error('ldap_filter')- <span class="alert-msg" role="alert" aria-live="assertive">- <x-icon type="x" />- {{ $message }}- </span>- @enderror+ <x-form.error name="ldap_filter" />@if (config('app.lock_passwords')===true)<p class="text-warning">@@ -435,12 +375,7 @@<div class="col-md-8"><input type="text" name="ldap_auth_filter_query" id="ldap_auth_filter_query" value="{{ old('ldap_auth_filter_query', $setting->ldap_auth_filter_query) }}" class="form-control" placeholder="{{ trans('general.example') .'uid=' }}">- @error('ldap_auth_filter_query')- <span class="alert-msg" role="alert" aria-live="assertive">- <x-icon type="x" />- {!! $message !!}- </span>- @enderror+ <x-form.error name="ldap_auth_filter_query" />@if (config('app.lock_passwords')===true)<p class="text-warning">@@ -509,12 +444,7 @@<div class="col-md-8"><input type="text" name="ldap_username_field" id="ldap_username_field" value="{{ old('ldap_username_field', $setting->ldap_username_field) }}" class="form-control" placeholder="{{ trans('general.example') .'samaccountname' }}">- @error('ldap_username_field')- <span class="alert-msg" role="alert" aria-live="assertive">- <x-icon type="x" />- {!! $message !!}- </span>- @enderror+ <x-form.error name="ldap_username_field" /></div></div>@@ -526,12 +456,7 @@<div class="col-md-8"><input type="text" name="ldap_lname_field" id="ldap_lname_field" value="{{ old('ldap_lname_field', $setting->ldap_lname_field) }}" class="form-control" placeholder="{{ trans('general.example') .'sn' }}">- @error('ldap_lname_field')- <span class="alert-msg" role="alert" aria-live="assertive">- <x-icon type="x" />- {{ $message }}- </span>- @enderror+ <x-form.error name="ldap_lname_field" /></div></div>@@ -543,12 +468,7 @@<div class="col-md-8"><input type="text" name="ldap_fname_field" id="ldap_fname_field" value="{{ old('ldap_fname_field', $setting->ldap_fname_field) }}" class="form-control" placeholder="{{ trans('general.example') .'givenname' }}">- @error('ldap_fname_field')- <span class="alert-msg" role="alert" aria-live="assertive">- <x-icon type="x" />- {{ $message }}- </span>- @enderror+ <x-form.error name="ldap_fname_field" /></div></div>@@ -561,12 +481,7 @@<div class="col-md-8"><input type="text" name="ldap_display_name" id="ldap_display_name" value="{{ old('ldap_display_name', $setting->ldap_display_name) }}" class="form-control" placeholder="{{ trans('general.example') .'displayname' }}"><p class="help-block">{{ trans('admin/settings/general.ldap_display_name_help') }}</p>- @error('ldap_display_name')- <span class="alert-msg" role="alert" aria-live="assertive">- <x-icon type="x" />- {{ $message }}- </span>- @enderror+ <x-form.error name="ldap_display_name" /></div></div>@@ -578,12 +493,7 @@<div class="col-md-8"><input class="form-control" placeholder="{{ trans('general.example') .'employeenumber/employeeid' }}" name="ldap_emp_num" type="text" id="ldap_emp_num" value="{{ old('ldap_emp_num', $setting->ldap_emp_num) }}">- @error('ldap_emp_num')- <span class="alert-msg" role="alert" aria-live="assertive">- <x-icon type="x" />- {{ $message }}- </span>- @enderror+ <x-form.error name="ldap_emp_num" />@if (config('app.lock_passwords')===true)<p class="text-warning">@@ -601,12 +511,7 @@<div class="col-md-8"><input class="form-control" placeholder="{{ trans('general.example') .'department' }}" name="ldap_dept" type="text" id="ldap_dept" value="{{ old('ldap_dept', $setting->ldap_dept) }}">- @error('ldap_dept')- <span class="alert-msg" role="alert" aria-live="assertive">- <x-icon type="x" />- {{ $message }}- </span>- @enderror+ <x-form.error name="ldap_dept" />@if (config('app.lock_passwords')===true)<p class="text-warning">@@ -623,12 +528,7 @@<div class="col-md-8"><input class="form-control" placeholder=" {{ trans('general.example') .'manager' }}" name="ldap_manager" type="text" value="{{ old('ldap_manager', $setting->ldap_manager) }}">- @error('ldap_manager')- <span class="alert-msg" role="alert" aria-live="assertive">- <x-icon type="x" />- {{ $message }}- </span>- @enderror+ <x-form.error name="ldap_manager" />@if (config('app.lock_passwords')===true)<p class="text-warning">@@ -646,12 +546,7 @@<div class="col-md-8"><input class="form-control" placeholder="{{ trans('general.example') .'mail' }}" name="ldap_email" type="text" id="ldap_email" value="{{ old('ldap_email', $setting->ldap_email) }}">- @error('ldap_email')- <span class="alert-msg" role="alert" aria-live="assertive">- <x-icon type="x" />- {{ $message }}- </span>- @enderror+ <x-form.error name="ldap_email" />@if (config('app.lock_passwords')===true)<p class="text-warning">@@ -669,12 +564,7 @@<div class="col-md-8"><input class="form-control" placeholder="{{ trans('general.example') .'telephonenumber' }}" name="ldap_phone" type="text" id="ldap_phone" value="{{ old('ldap_phone', $setting->ldap_phone_field) }}">- @error('ldap_phone')- <span class="alert-msg" role="alert" aria-live="assertive">- <x-icon type="x" />- {{ $message }}- </span>- @enderror+ <x-form.error name="ldap_phone" />@if (config('app.lock_passwords')===true)<p class="text-warning">@@ -692,12 +582,7 @@<div class="col-md-8"><input class="form-control" placeholder="{{ trans('general.example') .'mobile' }}" name="ldap_mobile" type="text" id="ldap_mobile" value="{{ old('ldap_mobile', $setting->ldap_mobile) }}">- @error('ldap_mobile')- <span class="alert-msg" role="alert" aria-live="assertive">- <x-icon type="x" />- {{ $message }}- </span>- @enderror+ <x-form.error name="ldap_mobile" /></div></div>@@ -708,12 +593,7 @@<div class="col-md-8"><input class="form-control" placeholder="{{ trans('general.example') .'title' }}" name="ldap_jobtitle" type="text" id="ldap_jobtitle" value="{{ old('ldap_jobtitle', $setting->ldap_jobtitle) }}">- @error('ldap_jobtitle')- <span class="alert-msg" role="alert" aria-live="assertive">- <x-icon type="x" />- {{ $message }}- </span>- @enderror+ <x-form.error name="ldap_jobtitle" />@if (config('app.lock_passwords')===true)<p class="text-warning">@@ -731,12 +611,7 @@<div class="col-md-8"><input class="form-control" name="ldap_address" placeholder="{{ trans('general.example') .'streetaddress' }}" type="text" id="ldap_address" value="{{ old('ldap_address', $setting->ldap_address) }}">- @error('ldap_address')- <span class="alert-msg" role="alert" aria-live="assertive">- <x-icon type="x" />- {{ $message }}- </span>- @enderror+ <x-form.error name="ldap_address" /></div></div>@@ -747,12 +622,7 @@<div class="col-md-8"><input class="form-control" placeholder="{{ trans('general.example') .'l' }}" name="ldap_city" type="text" id="ldap_city" value="{{ old('ldap_city', $setting->ldap_city) }}">- @error('ldap_city')- <span class="alert-msg" role="alert" aria-live="assertive">- <x-icon type="x" />- {{ $message }}- </span>- @enderror+ <x-form.error name="ldap_city" /></div></div>@@ -763,12 +633,7 @@<div class="col-md-8"><input class="form-control" placeholder="{{ trans('general.example') .'st' }}" name="ldap_state" type="text" id="ldap_state" value="{{ old('ldap_state', $setting->ldap_state) }}">- @error('ldap_state')- <span class="alert-msg" role="alert" aria-live="assertive">- <x-icon type="x" />- {{ $message }}- </span>- @enderror+ <x-form.error name="ldap_state" /></div></div>@@ -779,12 +644,7 @@<div class="col-md-8"><input class="form-control" name="ldap_zip" type="text" id="ldap_zip" placeholder="{{ trans('general.example') .'postalcode' }}" value="{{ old('ldap_zip', $setting->ldap_zip) }}">- @error('ldap_zip')- <span class="alert-msg" role="alert" aria-live="assertive">- <x-icon type="x" />- {{ $message }}- </span>- @enderror+ <x-form.error name="ldap_zip" /></div></div>@@ -796,12 +656,7 @@<div class="col-md-8"><input class="form-control" placeholder="{{ trans('general.example') .'co' }}" name="ldap_country" type="text" id="ldap_country" value="{{ old('ldap_country', $setting->ldap_country) }}">- @error('ldap_country')- <span class="alert-msg" role="alert" aria-live="assertive">- <x-icon type="x" />- {{ $message }}- </span>- @enderror+ <x-form.error name="ldap_country" />@if (config('app.lock_passwords')===true)<p class="text-warning">@@ -820,12 +675,7 @@<div class="col-md-8"><input class="form-control" placeholder="{{ trans('general.example') .'physicaldeliveryofficename' }}" name="ldap_location" type="text" id="ldap_location" value="{{ old('ldap_location', $setting->ldap_location) }}"><p class="help-block">{!! trans('admin/settings/general.ldap_location_help') !!}</p>- @error('ldap_location')- <span class="alert-msg" role="alert" aria-live="assertive">- <x-icon type="x" />- {{ $message }}- </span>- @enderror+ <x-form.error name="ldap_location" />@if (config('app.lock_passwords')===true)<p class="text-warning">@@ -845,12 +695,7 @@<input type="text" name="ldap_active_flag" id="ldap_active_flag" value="{{ old('ldap_active_flag', $setting->ldap_active_flag) }}" class="form-control"><p class="help-block">{!! trans('admin/settings/general.ldap_activated_flag_help') !!}</p>- @error('ldap_active_flag')- <span class="alert-msg" role="alert" aria-live="assertive">- <x-icon type="x" />- {{ $message }}- </span>- @enderror+ <x-form.error name="ldap_active_flag" />@if (config('app.lock_passwords')===true)<p class="text-warning">@@ -873,12 +718,7 @@<input type="checkbox" name="ldap_invert_active_flag" value="1" id="ldap_invert_active_flag" @checked(old('ldap_invert_active_flag', $setting->ldap_invert_active_flag)) />{{ trans('general.yes') }}</label>- @error('ldap_invert_active_flag')- <span class="alert-msg" role="alert" aria-live="assertive">- <x-icon type="x" />- {{ $message }}- </span>- @enderror+ <x-form.error name="ldap_invert_active_flag" /><p class="help-block">{!! trans('admin/settings/general.ldap_invert_active_flag_help') !!}@@ -971,12 +811,7 @@<div class="col-md-8"><input class="form-control" placeholder="{{ trans('general.example') .'https://my.ldapserver-forgotpass.com' }}" name="custom_forgot_pass_url" type="url" id="custom_forgot_pass_url" value="{{ old('custom_forgot_pass_url', $setting->custom_forgot_pass_url) }}"><p class="help-block">{{ trans('admin/settings/general.custom_forgot_pass_url_help') }}</p>- @error('custom_forgot_pass_url')- <span class="alert-msg" role="alert" aria-live="assertive">- <x-icon type="x" />- {{ $message }}- </span>- @enderror+ <x-form.error name="custom_forgot_pass_url" />@if (config('app.lock_passwords')===true)<p class="text-warning">diff --git a/resources/views/settings/localization.blade.php b/resources/views/settings/localization.blade.phpindex ea54f6f8f5..537b62c03e 100644--- a/resources/views/settings/localization.blade.php+++ b/resources/views/settings/localization.blade.php@@ -48,7 +48,7 @@<div class="col-md-5 col-xs-12"><x-input.locale-select name="locale" :selected="old('locale', $setting->locale)" />- {!! $errors->first('locale', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="locale" /></div></div>@@ -64,7 +64,7 @@:selected="old('name_display_format', $setting->name_display_format)"style="width: 100%"/>- {!! $errors->first('name_display_format', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="name_display_format" /></div></div>@@ -82,7 +82,7 @@<x-input.time-display-format name="time_display_format" :selected="old('time_display_format', $setting->time_display_format)" style="min-width:150px" /></div>- {!! $errors->first('time_display_format', '<div class="col-md-9 col-md-offset-3"><span class="alert-msg" role="alert" aria-live="assertive">:message</span> </div>') !!}+ <div class="col-md-9 col-md-offset-3"><x-form.error name="time_display_format" /></div></div>@@ -119,7 +119,7 @@</div>- {!! $errors->first('week_start', '<div class="col-md-9 col-md-offset-3"><span class="alert-msg" role="alert" aria-live="assertive">:message</span> </div>') !!}+ <div class="col-md-9 col-md-offset-3"><x-form.error name="week_start" /></div></div>@@ -147,7 +147,7 @@style="min-width:120px"/>- {!! $errors->first('default_currency', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="default_currency" /></div></div>diff --git a/resources/views/settings/partials/labels-legacy-engine.blade.php b/resources/views/settings/partials/labels-legacy-engine.blade.phpindex 6c4b00dbe6..72ed282f1e 100644--- a/resources/views/settings/partials/labels-legacy-engine.blade.php+++ b/resources/views/settings/partials/labels-legacy-engine.blade.php@@ -32,7 +32,7 @@:selected="old('label2_1d_type', $setting->label2_1d_type)"class="col-md-4"/>- {!! $errors->first('label2_1d_type', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="label2_1d_type" /><p class="help-block">{{ trans('admin/settings/general.label2_1d_type_help') }}.{!!@@ -73,7 +73,7 @@:selected="old('label2_2d_type', $setting->label2_2d_type)"class="col-md-4"/>- {!! $errors->first('label2_2d_type', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="label2_2d_type" /><p class="help-block">{{ trans('admin/settings/general.label2_2d_type_help', ['current' => $setting->barcode_type]) }}.{!! trans('admin/settings/general.help_default_will_use') !!}@@ -112,7 +112,7 @@<p class="help-block">{{ trans('admin/settings/general.qr_help') }}</p>@endif- {!! $errors->first('qr_text', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="qr_text" /></div></div>@@ -127,7 +127,7 @@<span id="purgebarcodesicon"></span><span id="purgebarcodesresult"></span><span id="purgebarcodesstatus"></span>- {!! $errors->first('purgebarcodes', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="purgebarcodes" /><p class="help-block">{{ trans('admin/settings/general.barcodes_help') }}</p></div></div>@@ -138,7 +138,7 @@</div><div class="col-md-9"><input class="form-control" style="width: 100px;" name="labels_per_page" type="text" value="{{ old('labels_per_page', $setting->labels_per_page) }}" id="labels_per_page">- {!! $errors->first('labels_per_page', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="labels_per_page" /></div></div>@@ -153,7 +153,7 @@</div></div><div class="col-md-9 col-md-offset-3">- {!! $errors->first('labels_fontsize', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="labels_fontsize" /></div></div>@@ -166,14 +166,14 @@<input class="form-control" name="labels_width" type="text" value="{{ old('labels_width', $setting->labels_width) }}" id="labels_width"><div class="input-group-addon">{{ trans('admin/settings/general.width_w') }}</div></div>- {!! $errors->first('labels_width', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="labels_width" /></div><div class="col-md-3 text-right"><div class="input-group"><input class="form-control" name="labels_height" type="text" value="{{ old('labels_height', $setting->labels_height) }}" id="labels_height"><div class="input-group-addon">{{ trans('admin/settings/general.height_h') }}</div></div>- {!! $errors->first('labels_height', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="labels_height" /></div></div>@@ -194,8 +194,8 @@</div></div><div class="col-md-9 col-md-offset-3">- {!! $errors->first('labels_display_sgutter', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}- {!! $errors->first('labels_display_bgutter', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="labels_display_sgutter" />+ <x-form.error name="labels_display_bgutter" /></div></div>@@ -242,8 +242,8 @@</div></div><div class="col-md-9 col-md-offset-3">- {!! $errors->first('labels_pagewidth', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}- {!! $errors->first('labels_pageheight', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="labels_pagewidth" />+ <x-form.error name="labels_pageheight" /></div></div>diff --git a/resources/views/settings/partials/labels-new-engine.blade.php b/resources/views/settings/partials/labels-new-engine.blade.phpindex 8d7119f239..5877750b2c 100644--- a/resources/views/settings/partials/labels-new-engine.blade.php+++ b/resources/views/settings/partials/labels-new-engine.blade.php@@ -47,7 +47,7 @@</div><div class="col-md-7"><input class="form-control" name="label2_title" type="text" id="label2_title" value="{{ old('label2_title', $setting->label2_title) }}">- {!! $errors->first('label2_title', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="label2_title" /><p class="help-block">{!! trans('admin/settings/general.label2_title_help') !!}</p><p class="help-block">{!! trans('admin/settings/general.label2_title_help_phold') !!}.<br />@@ -96,7 +96,7 @@:selected="old('label2_1d_type', $setting->label2_1d_type)"class="col-md-4"/>- {!! $errors->first('label2_1d_type', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="label2_1d_type" /><p class="help-block">{{ trans('admin/settings/general.label2_1d_type_help') }}.{!!@@ -129,7 +129,7 @@:selected="old('label2_2d_type', $setting->label2_2d_type)"class="col-md-4"/>- {!! $errors->first('label2_2d_type', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="label2_2d_type" /><p class="help-block">{{ trans('admin/settings/general.label2_2d_type_help', ['current' => $setting->barcode_type]) }}.{!! trans('admin/settings/general.help_default_will_use') !!}@@ -143,7 +143,7 @@</div><div class="col-md-7"><input class="form-control" name="label2_2d_prefix" type="text" id="label2_2d_prefix" value="{{ old('label2_2d_prefix', $setting->label2_2d_prefix) }}">- {!! $errors->first('label2_2d_prefix', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="label2_2d_prefix" /><p class="help-block">{!! trans('admin/settings/general.label2_2d_prefix_help') !!}</p></div></div>@@ -172,7 +172,7 @@:selected="old('label2_2d_target', $setting->label2_2d_target)"class="col-md-4"/>- {!! $errors->first('label2_2d_target', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="label2_2d_target" /><p class="help-block">{{ trans('admin/settings/general.label2_2d_target_help') }}</p></div></div>@@ -194,7 +194,7 @@</div><div class="col-md-9 col-md-offset-3"><p class="help-block">{!! trans('admin/settings/general.empty_row_count_help') !!}</p>- {!! $errors->first('label2_empty_row_count', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="label2_empty_row_count" /></div></div></fieldset>@@ -211,7 +211,7 @@'customFields' => $customFields,'template' => $setting->label2_template,])- {!! $errors->first('label2_fields', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="label2_fields" /></div></div></fieldset>diff --git a/resources/views/settings/saml.blade.php b/resources/views/settings/saml.blade.phpindex b5b1b4a8b2..437545b9a9 100644--- a/resources/views/settings/saml.blade.php+++ b/resources/views/settings/saml.blade.php@@ -49,7 +49,7 @@{{ trans('admin/settings/general.saml_enabled') }}</label>- {!! $errors->first('saml_integration', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="saml_integration" />@if (config('app.lock_passwords') === true)<p class="text-warning"><i class="fas fa-lock"></i> {{ trans('general.feature_disabled') }}</p>@endif@@ -141,7 +141,7 @@</div>@endif- {!! $errors->first('saml_enabled', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="saml_enabled" /></div>@@ -160,7 +160,7 @@placeholder="https://example.com/idp/metadata"wrap="off"/>- {!! $errors->first('saml_idp_metadata', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}<br>+ <x-form.error name="saml_idp_metadata" /><br><button type="button" class="btn btn-theme" id="saml_idp_metadata_upload_btn" {{ $setting->demoMode }}>{{ trans('button.select_file') }}</button><input type="file" class="js-uploadFile" id="saml_idp_metadata_upload" @disabled(config('app.lock_passwords'))data-maxsize="{{ Helper::file_upload_max_size() }}"@@ -183,7 +183,7 @@<div class="col-md-8"><input class="form-control" name="saml_attr_mapping_username" type="text" id="saml_attr_mapping_username" value="{{ old('saml_attr_mapping_username', $setting->saml_attr_mapping_username) }}" @disabled(config('app.lock_passwords'))><p class="help-block">{{ trans('admin/settings/general.saml_attr_mapping_username_help') }}</p>- {!! $errors->first('saml_attr_mapping_username', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="saml_attr_mapping_username" />@if (config('app.lock_passwords') === true)<p class="text-warning"><i class="fas fa-lock"></i> {{ trans('general.feature_disabled') }}</p>@@ -203,7 +203,7 @@{{ trans('admin/settings/general.saml_forcelogin') }}</label><p class="help-block">{{ trans('admin/settings/general.saml_forcelogin_help') }}</p>- {!! $errors->first('saml_forcelogin', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="saml_forcelogin" />@if (config('app.lock_passwords') === true)<p class="text-warning"><i class="fas fa-lock"></i> {{ trans('general.feature_disabled') }}</p>@@ -223,7 +223,7 @@{{ trans('admin/settings/general.saml_slo') }}</label><p class="help-block">{{ trans('admin/settings/general.saml_slo_help') }}</p>- {!! $errors->first('saml_slo', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="saml_slo" />@if (config('app.lock_passwords') === true)<p class="text-warning"><i class="fas fa-lock"></i> {{ trans('general.feature_disabled') }}</p>@@ -244,7 +244,7 @@wrap="off"/><p class="help-block">{{ trans('admin/settings/general.saml_custom_settings_help') }}</p>- {!! $errors->first('saml_custom_settings', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="saml_custom_settings" />@if (config('app.lock_passwords') === true)<p class="text-warning"><i class="fas fa-lock"></i> {{ trans('general.feature_disabled') }}</p>diff --git a/resources/views/settings/security.blade.php b/resources/views/settings/security.blade.phpindex 48abcb9acb..36bcd43293 100644--- a/resources/views/settings/security.blade.php+++ b/resources/views/settings/security.blade.php@@ -63,7 +63,7 @@<p class="text-warning"><i class="fas fa-lock"></i> {{ trans('general.feature_disabled') }}</p>@endif- {!! $errors->first('two_factor_enabled', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="two_factor_enabled" /></div></div>@@ -78,7 +78,7 @@<div class="col-md-9"><input class="form-control" style="width: 60px;" name="pwd_secure_min" type="number" value="{{ old('pwd_secure_min', $setting->pwd_secure_min) }}" id="pwd_secure_min" maxlength="2" min="8">- {!! $errors->first('pwd_secure_min', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="pwd_secure_min" /><p class="help-block">{{ trans('admin/settings/general.pwd_secure_min_help') }}</p>@@ -147,7 +147,7 @@<label for="login_remote_user_enabled">{{ trans('admin/settings/general.login_remote_user_enabled_text') }}</label></label>- {!! $errors->first('login_remote_user_enabled', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="login_remote_user_enabled" /><p class="help-block">{{ trans('admin/settings/general.login_remote_user_enabled_help') }}</p>@@ -161,7 +161,7 @@<div class="col-md-8"><input class="form-control" name="login_remote_user_header_name" type="text" value="{{ old('login_remote_user_header_name', $setting->login_remote_user_header_name) }}" id="login_remote_user_header_name">- {!! $errors->first('login_remote_user_header_name', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="login_remote_user_header_name" /><p class="help-block"><x-icon type="warning" class="text-danger"/>{!! trans('admin/settings/general.login_remote_user_header_name_help') !!}@@ -175,7 +175,7 @@<div class="col-md-8"><input class="form-control" aria-label="login_remote_user_custom_logout_url" name="login_remote_user_custom_logout_url" type="url" value="{{ old('login_remote_user_custom_logout_url', $setting->login_remote_user_custom_logout_url) }}" id="login_remote_user_custom_logout_url">- {!! $errors->first('login_remote_user_custom_logout_url', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="login_remote_user_custom_logout_url" /><p class="help-block">{{ trans('admin/settings/general.login_remote_user_custom_logout_url_help') }}</p>@@ -191,7 +191,7 @@{{ trans('admin/settings/general.login_common_disabled_text') }}</label>- {!! $errors->first('login_common_disabled', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="login_common_disabled" /><p class="help-block">{{ trans('admin/settings/general.login_common_disabled_help') }}</p>diff --git a/resources/views/setup/user.blade.php b/resources/views/setup/user.blade.phpindex 32b6165d2c..365dcb04f7 100644--- a/resources/views/setup/user.blade.php+++ b/resources/views/setup/user.blade.php@@ -27,7 +27,7 @@</label><input class="form-control" placeholder="Snipe-IT Asset Management" required="" name="site_name" type="text" value="{{ old('site_name') }}">- {!! $errors->first('site_name', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="site_name" /></div></div>@@ -37,14 +37,14 @@<div class="form-group col-lg-6"><label for="first_name">{{ trans('general.first_name') }}</label><input class="form-control" placeholder="Jane" required="" name="first_name" type="text" id="first_name" value="{{ old('first_name') }}">- {!! $errors->first('first_name', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="first_name" /></div><!-- last name --><div class="form-group col-lg-6 required {{ $errors->has('last_name') ? 'error' : '' }}"><label for="last_name">{{ trans('general.last_name') }}</label><input class="form-control" placeholder="Smith" required="" name="last_name" type="text" id="last_name" value="{{ old('last_name') }}">- {!! $errors->first('last_name', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="last_name" /></div></div>@@ -53,14 +53,14 @@<div class="form-group col-lg-6{{ $errors->has('email') ? ' error' : '' }}"><label for="email">{{ trans('admin/users/table.email') }}</label><input class="form-control" type="email" name="email" id="email" value="{{ old('email', config('mail.from.address')) }}" placeholder="[email protected]" required>- {!! $errors->first('email', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="email" /></div><!-- username --><div class="form-group col-lg-6 {{ $errors->has('username') ? 'error' : '' }}"><label for="username">{{ trans('admin/users/table.username') }}</label><input class="form-control" placeholder="jsmith" required="" name="username" type="text" id="username" value="{{ old('username') }}" required>- {!! $errors->first('username', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="username" /></div></div>@@ -70,14 +70,14 @@<div class="form-group col-lg-6{{ (Helper::checkIfRequired(\App\Models\User::class, 'password')) ? ' required' : '' }} {{ $errors->has('password') ? 'error' : '' }}"><label for="password">{{ trans('admin/users/table.password') }}</label><input class="form-control" type="password" name="password" id="password" value="" required>- {!! $errors->first('password', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="password" /></div><!-- password confirm --><div class="form-group col-lg-6{{ (Helper::checkIfRequired(\App\Models\User::class, 'password')) ? ' required' : '' }} {{ $errors->has('password_confirm') ? 'error' : '' }}"><label for="password_confirmation">{{ trans('admin/users/table.password_confirm') }}</label><input class="form-control" type="password" name="password_confirmation" id="password_confirmation" value="" required>- {!! $errors->first('password_confirmation', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="password_confirmation" /></div><!-- Email credentials -->@@ -96,14 +96,14 @@<label for="auto_increment_prefix">{{ trans('admin/settings/general.auto_increment_prefix') }}</label><input class="form-control" name="auto_increment_prefix" type="text" id="auto_increment_prefix" value="{{ old('auto_increment_prefix') }}">- {!! $errors->first('auto_increment_prefix', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="auto_increment_prefix" /></div><div class="form-group col-lg-6{{ $errors->has('zerofill_count') ? ' error' : '' }}"><label for="zerofill_count">{{ trans('admin/settings/general.zerofill_count') }}</label><input class="form-control" name="zerofill_count" type="text" value="{{ old('zerofill_count', 5) }}" id="zerofill_count">- {!! $errors->first('zerofill_count', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="zerofill_count" /></div></div>@@ -135,7 +135,7 @@{{ trans('admin/settings/general.default_language') }}</label><x-input.locale-select name="locale" :selected="old('locale', 'en-US')" />- {!! $errors->first('locale', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="locale" /></div><!-- Currency -->@@ -143,7 +143,7 @@<label for="default_currency">{{ trans('admin/settings/general.default_currency') }}</label><input class="form-control" placeholder="USD" maxlength="3" style="width: 60px;" name="default_currency" type="text" id="default_currency" value="{{ old('default_currency') }}">- {!! $errors->first('default_currency', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="default_currency" /></div></div>diff --git a/resources/views/statuslabels/edit.blade.php b/resources/views/statuslabels/edit.blade.phpindex a5f42bee52..49248fa91c 100755--- a/resources/views/statuslabels/edit.blade.php+++ b/resources/views/statuslabels/edit.blade.php@@ -34,7 +34,7 @@style="width: 100%; min-width:400px"aria-label="statuslabel_types"/>- {!! $errors->first('statuslabel_types', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="statuslabel_types" /></div></div>@@ -43,7 +43,7 @@<label for="color" class="col-md-3 control-label">{{ trans('admin/statuslabels/table.color') }}</label><div class="col-md-9"><x-input.colorpicker :item="$item" id="color" :value="old('color', ($item->color ?? '#f4f4f4'))" name="color" id="color" />- {!! $errors->first('color', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="color" /></div></div>diff --git a/resources/views/suppliers/edit.blade.php b/resources/views/suppliers/edit.blade.phpindex 4feb7c19cf..d85db7c09e 100755--- a/resources/views/suppliers/edit.blade.php+++ b/resources/views/suppliers/edit.blade.php@@ -17,7 +17,7 @@<label for="contact" class="col-md-3 control-label">{{ trans('admin/suppliers/table.contact') }}</label><div class="col-md-7"><input class="form-control" name="contact" type="text" id="contact" value="{{ old('contact', $item->contact) }}">- {!! $errors->first('contact', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="contact" /></div></div>@@ -29,7 +29,7 @@<label for="url" class="col-md-3 control-label">{{ trans('general.url') }}</label><div class="col-md-7"><input class="form-control" name="url" type="url" id="url" value="{{ old('url', $item->url) }}">- {!! $errors->first('url', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="url" /></div></div>@@ -47,7 +47,7 @@</label><div class="col-md-9"><x-input.colorpicker :item="$item" id="color" :value="old('color', ($item->color ?? '#f4f4f4'))" name="tag_color" id="tag_color" />- {!! $errors->first('tag_color', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="tag_color" /></div></div></fieldset>diff --git a/resources/views/users/bulk-edit.blade.php b/resources/views/users/bulk-edit.blade.phpindex ec07dda5f9..f5b884027a 100644--- a/resources/views/users/bulk-edit.blade.php+++ b/resources/views/users/bulk-edit.blade.php@@ -95,7 +95,7 @@<label class="col-md-3 control-label" for="locale">{{ trans('general.language') }}</label><div class="col-md-8"><x-input.locale-select name="locale" :selected="old('locale', '')"/>- {!! $errors->first('locale', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="locale" /></div></div>@@ -113,7 +113,7 @@<label class="col-md-3 control-label" for="city">{{ trans('general.city') }}</label><div class="col-md-4"><input class="form-control" type="text" name="city" id="city" aria-label="city" />- {!! $errors->first('city', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="city" /></div></div>@@ -131,7 +131,7 @@<label class="col-md-3 control-label" for="state">{{ trans('general.state') }}</label><div class="col-md-4"><input class="form-control" type="text" name="state" id="state" aria-label="state" maxlength="191" />- {!! $errors->first('state', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="state" /></div></div>@@ -149,7 +149,7 @@<label class="col-md-3 control-label" for="country">{{ trans('general.country') }}</label><div class="col-md-4"><x-input.country-select name="country" :selected="old('country', '')" />- {!! $errors->first('country', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="country" /></div></div>@@ -167,7 +167,7 @@<label class="col-md-3 control-label" for="zip">{{ trans('general.zip') }}</label><div class="col-md-4"><input class="form-control" type="text" name="zip" id="zip" aria-label="zip" maxlength="10" />- {!! $errors->first('zip', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="zip" /></div></div>@@ -185,7 +185,7 @@<label class="col-md-3 control-label" for="address">{{ trans('general.address') }}</label><div class="col-md-4"><input class="form-control" type="text" name="address" id="address" aria-label="address" maxlength="191" />- {!! $errors->first('address', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="address" /></div></div>@@ -203,7 +203,7 @@<label class="col-md-3 control-label" for="phone">{{ trans('admin/users/table.phone') }}</label><div class="col-md-4"><input class="form-control" type="text" name="phone" id="phone" aria-label="phone" maxlength="191" />- {!! $errors->first('phone', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="phone" /></div></div>@@ -221,7 +221,7 @@<label class="col-md-3 control-label" for="jobtitle">{{ trans('admin/users/table.title') }}</label><div class="col-md-4"><input class="form-control" type="text" name="jobtitle" id="jobtitle" aria-label="jobtitle" maxlength="191" />- {!! $errors->first('jobtitle', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="jobtitle" /></div></div>@@ -250,7 +250,7 @@<label class="col-md-3 control-label" for="website">{{ trans('general.website') }}</label><div class="col-md-4"><input class="form-control" type="url" name="website" id="website" aria-label="website" maxlength="191" />- {!! $errors->first('website', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="website" /></div></div>@@ -361,7 +361,7 @@<label class="col-md-3 control-label" for="email">{{ trans('admin/users/table.email') }}</label><div class="col-md-4"><input class="form-control" type="email" name="email" id="email" aria-label="email" maxlength="191" />- {!! $errors->first('email', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="email" /></div></div>@@ -403,7 +403,7 @@<label for="display_name" class="col-md-3 control-label">{{ trans('admin/users/table.display_name') }}</label><div class="col-md-4"><input type="text" class="form-control" placeholder="{{ trans('admin/users/table.display_name') }}" name="display_name" id="display_name" value="{{ old('display_name') }}">- {!! $errors->first('display_name', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times"></i> :message</span>') !!}+ <x-form.error name="display_name" /></div><div class="col-md-5"><label class="form-control">@@ -423,7 +423,7 @@value="{{ old('start_date') }}"placeholder="{{ trans('general.select_date') }}"/>- {!! $errors->first('start_date', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="start_date" /></div><div class="col-md-5"><label class="form-control">@@ -443,7 +443,7 @@value="{{ old('end_date') }}"placeholder="{{ trans('general.select_date') }}"/>- {!! $errors->first('end_date', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="end_date" /></div><div class="col-md-5"><label class="form-control">@@ -459,7 +459,7 @@<label class="col-md-3 control-label" for="notes">{{ trans('general.notes') }}</label><div class="col-md-6"><textarea class="form-control" rows="4" id="notes" name="notes" aria-label="notes"></textarea>- {!! $errors->first('notes', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="notes" /></div></div>diff --git a/resources/views/users/edit.blade.php b/resources/views/users/edit.blade.phpindex ea21a1bfca..412231f027 100755--- a/resources/views/users/edit.blade.php+++ b/resources/views/users/edit.blade.php@@ -115,7 +115,7 @@@if ($errors->first('username'))<div class="col-md-8 col-md-offset-3">- {!! $errors->first('username', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="username" /></div>@endif@@ -137,7 +137,7 @@<span class="sr-only">{{ trans('general.toggle_password_visibility') }}</span></span></div>- {!! $errors->first('password', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="password" />@else<p class="form-control-static">{{ trans('general.managed_ldap') }}@@ -198,7 +198,7 @@{{ trans('admin/users/table.lock_passwords') }}</p>@endif- {!! $errors->first('password_confirmation', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="password_confirmation" /></div></div>@endif@@ -275,7 +275,7 @@</p>@endif- {!! $errors->first('email', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="email" /></div>@@ -338,7 +338,7 @@id="display_name"value="{{ old('display_name', $user->getRawOriginal('display_name')) }}"/>- {!! $errors->first('display_name', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="display_name" /></div></div>@@ -409,7 +409,7 @@@endif</div>- {!! $errors->first('company_ids', '<div class="col-md-8 col-md-offset-3"><span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span></div>') !!}+ <div class="col-md-8 col-md-offset-3"><x-form.error name="company_ids" /></div></div>@@ -418,7 +418,7 @@<label class="col-md-3 control-label" for="locale">{{ trans('general.language') }}</label><div class="col-md-6"><x-input.locale-select name="locale" :selected="old('locale', $user->locale)" />- {!! $errors->first('locale', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="locale" /></div></div>@@ -435,7 +435,7 @@id="employee_num"value="{{ old('employee_num', $user->employee_num) }}"/>- {!! $errors->first('employee_num', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="employee_num" /></div></div>@@ -452,7 +452,7 @@id="jobtitle"value="{{ old('jobtitle', $user->jobtitle) }}"/>- {!! $errors->first('jobtitle', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="jobtitle" /></div></div>@@ -517,7 +517,7 @@<label class="col-md-3 control-label" for="phone">{{ trans('admin/users/table.phone') }}</label><div class="col-md-6"><input class="form-control" type="text" name="phone" id="phone" value="{{ old('phone', $user->phone) }}" maxlength="191" />- {!! $errors->first('phone', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="phone" /></div></div>@@ -526,7 +526,7 @@<label class="col-md-3 control-label" for="phone">{{ trans('admin/users/table.mobile') }}</label><div class="col-md-6"><input class="form-control" type="text" name="mobile" id="mobile" value="{{ old('mobile', $user->mobile) }}" maxlength="191" />- {!! $errors->first('mobile', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="mobile" /></div></div>@@ -535,7 +535,7 @@<label for="website" class="col-md-3 control-label">{{ trans('general.website') }}</label><div class="col-md-6"><input class="form-control" type="url" name="website" id="website" value="{{ old('website', $user->website) }}" maxlength="191" />- {!! $errors->first('website', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="website" /></div></div>@@ -544,7 +544,7 @@<label class="col-md-3 control-label" for="address">{{ trans('general.address') }}</label><div class="col-md-6"><input class="form-control" type="text" name="address" id="address" value="{{ old('address', $user->address) }}" maxlength="191" />- {!! $errors->first('address', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="address" /></div></div>@@ -553,7 +553,7 @@<label class="col-md-3 control-label" for="city">{{ trans('general.city') }}</label><div class="col-md-6"><input class="form-control" type="text" name="city" id="city" aria-label="city" value="{{ old('city', $user->city) }}" maxlength="191" />- {!! $errors->first('city', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="city" /></div></div>@@ -562,7 +562,7 @@<label class="col-md-3 control-label" for="state">{{ trans('general.state') }}</label><div class="col-md-6"><input class="form-control" type="text" name="state" id="state" value="{{ old('state', $user->state) }}" maxlength="191" />- {!! $errors->first('state', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="state" /></div></div>@@ -577,7 +577,7 @@/><p class="help-block">{{ trans('general.countries_manually_entered_help') }}</p>- {!! $errors->first('country', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="country" /></div></div>@@ -586,7 +586,7 @@<label class="col-md-3 control-label" for="zip">{{ trans('general.zip') }}</label><div class="col-md-3 text-right"><input class="form-control" type="text" name="zip" id="zip" value="{{ old('zip', $user->zip) }}" maxlength="10" />- {!! $errors->first('zip', '<span class="alert-msg" role="alert" aria-live="assertive">:message</span>') !!}+ <x-form.error name="zip" /></div></div>@@ -595,7 +595,7 @@<label for="notes" class="col-md-3 control-label">{{ trans('admin/users/table.notes') }}</label><div class="col-md-6"><textarea class="form-control" rows="5" id="notes" name="notes">{{ old('notes', $user->notes) }}</textarea>- {!! $errors->first('notes', '<span class="alert-msg" role="alert" aria-live="assertive"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}+ <x-form.error name="notes" /></div></div>