-
+
{{csrf_field()}}
@@ -185,7 +183,7 @@
} else {
var messages = '';
}
- $('#audited tbody').prepend("
| " + asset_tag + " | " + messages + " | |
");
+ $('#audited tbody').prepend("| " + data.payload.asset_tag + " | " + messages + " | |
");
}
function incrementOnSuccess() {
diff --git a/resources/views/hardware/view.blade.php b/resources/views/hardware/view.blade.php
index a83b006c56..589803d96c 100755
--- a/resources/views/hardware/view.blade.php
+++ b/resources/views/hardware/view.blade.php
@@ -19,6 +19,23 @@
@endif
+ @if ($asset->checkInvalidNextAuditDate())
+
+
+
{{ trans('general.warning',
+ [
+ 'warning' => trans('admin/hardware/message.warning_audit_date_mismatch',
+ [
+ 'last_audit_date' => Helper::getFormattedDateObject($asset->last_audit_date, 'date', false),
+ 'next_audit_date' => Helper::getFormattedDateObject($asset->next_audit_date, 'date', false)
+ ]
+ )
+ ]
+ ) }}
+
+
+ @endif
+
@if ($asset->deleted_at!='')
@@ -51,7 +68,7 @@
{{ trans('general.licenses') }}
- {!! ($asset->licenses->count() > 0 ) ? ''.number_format($asset->licenses->count()).'' : '' !!}
+ {!! ($asset->licenses->count() > 0 ) ? ''.number_format($asset->licenses->count()).'' : '' !!}
@@ -62,7 +79,7 @@
{{ trans('general.components') }}
- {!! ($asset->components->count() > 0 ) ? ''.number_format($asset->components->count()).'' : '' !!}
+ {!! ($asset->components->count() > 0 ) ? ''.number_format($asset->components->count()).'' : '' !!}
@@ -73,7 +90,7 @@
{{ trans('general.assets') }}
- {!! ($asset->assignedAssets()->count() > 0 ) ? ''.number_format($asset->assignedAssets()->count()).'' : '' !!}
+ {!! ($asset->assignedAssets()->count() > 0 ) ? ''.number_format($asset->assignedAssets()->count()).'' : '' !!}
@@ -96,7 +113,7 @@
{{ trans('general.maintenances') }}
- {!! ($asset->assetmaintenances()->count() > 0 ) ? ''.number_format($asset->assetmaintenances()->count()).'' : '' !!}
+ {!! ($asset->assetmaintenances()->count() > 0 ) ? ''.number_format($asset->assetmaintenances()->count()).'' : '' !!}
@@ -107,7 +124,7 @@
{{ trans('general.files') }}
- {!! ($asset->uploads->count() > 0 ) ? ''.number_format($asset->uploads->count()).'' : '' !!}
+ {!! ($asset->uploads->count() > 0 ) ? ''.number_format($asset->uploads->count()).'' : '' !!}
@@ -119,7 +136,7 @@
{{ trans('general.additional_files') }}
- {!! ($asset->model) && ($asset->model->uploads->count() > 0 ) ? ''.number_format($asset->model->uploads->count()).'' : '' !!}
+ {!! ($asset->model) && ($asset->model->uploads->count() > 0 ) ? ''.number_format($asset->model->uploads->count()).'' : '' !!}
@@ -237,7 +254,8 @@
- {{ \App\Helpers\Helper::getFormattedDateObject($audit_log->created_at, 'date', false) }}
+ {!! $asset->checkInvalidNextAuditDate() ? '' : '' !!}
+ {{ Helper::getFormattedDateObject($audit_log->created_at, 'date', false) }}
@if ($audit_log->user)
(by {{ link_to_route('users.show', $audit_log->user->present()->fullname(), [$audit_log->user->id]) }})
@endif
@@ -254,6 +272,7 @@
+ {!! $asset->checkInvalidNextAuditDate() ? '' : '' !!}
{{ Helper::getFormattedDateObject($asset->next_audit_date, 'date', false) }}
diff --git a/resources/views/layouts/default.blade.php b/resources/views/layouts/default.blade.php
index a1a4bc30cc..baf9228314 100644
--- a/resources/views/layouts/default.blade.php
+++ b/resources/views/layouts/default.blade.php
@@ -1,5 +1,6 @@
-
+getLocale(),['ar-SA','fa-IR', 'he-IL']) ? 'rtl' : 'ltr' }}">
@@ -437,6 +438,9 @@
{{ trans('general.list_all') }}
+
+ {{ (isset($total_assets)) ? $total_assets : '' }}
+
@@ -447,7 +451,8 @@
color!='' ? ' style="color: '.e($status_nav->color).'"' : '') !!}>
- {{ $status_nav->name }} ({{ $status_nav->asset_count }})
+ {{ $status_nav->name }}
+
{{ $status_nav->asset_count }}
@endforeach
@endif
@@ -455,49 +460,43 @@
- {{ trans('general.all') }}
{{ trans('general.deployed') }}
- ({{ (isset($total_deployed_sidebar)) ? $total_deployed_sidebar : '' }})
+ {{ (isset($total_deployed_sidebar)) ? $total_deployed_sidebar : '' }}
- {{ trans('general.all') }}
{{ trans('general.ready_to_deploy') }}
- ({{ (isset($total_rtd_sidebar)) ? $total_rtd_sidebar : '' }})
+ {{ (isset($total_rtd_sidebar)) ? $total_rtd_sidebar : '' }}
- {{ trans('general.all') }}
{{ trans('general.pending') }}
- ({{ (isset($total_pending_sidebar)) ? $total_pending_sidebar : '' }})
+ {{ (isset($total_pending_sidebar)) ? $total_pending_sidebar : '' }}
- {{ trans('general.all') }}
{{ trans('general.undeployable') }}
- ({{ (isset($total_undeployable_sidebar)) ? $total_undeployable_sidebar : '' }})
+ {{ (isset($total_undeployable_sidebar)) ? $total_undeployable_sidebar : '' }}
- {{ trans('general.all') }}
{{ trans('general.byod') }}
- ({{ (isset($total_byod_sidebar)) ? $total_byod_sidebar : '' }})
+ {{ (isset($total_byod_sidebar)) ? $total_byod_sidebar : '' }}
- {{ trans('general.all') }}
{{ trans('admin/hardware/general.archived') }}
- ({{ (isset($total_archived_sidebar)) ? $total_archived_sidebar : '' }})
+ {{ (isset($total_archived_sidebar)) ? $total_archived_sidebar : '' }}
{{ trans('general.audit_due') }}
+ {{ (isset($total_due_and_overdue_for_audit)) ? $total_due_and_overdue_for_audit : '' }}
-
-
- {{ trans('general.audit_overdue') }}
-
-
+ @endcan
+
+ @can('checkin', \App\Models\Asset::class)
+
+
+ {{ trans('general.checkin_due') }}
+ {{ (isset($total_due_and_overdue_for_checkin)) ? $total_due_and_overdue_for_checkin : '' }}
+
+
@endcan
diff --git a/resources/views/licenses/index.blade.php b/resources/views/licenses/index.blade.php
index 8fa52fd1fc..82e34b1909 100755
--- a/resources/views/licenses/index.blade.php
+++ b/resources/views/licenses/index.blade.php
@@ -13,6 +13,9 @@
{{ trans('general.create') }}
@endcan
+@can('view', \App\Models\License::class)
+
{{ trans('general.export') }}
+@endcan
@stop
{{-- Page content --}}
diff --git a/resources/views/notifications/markdown/asset-acceptance.blade.php b/resources/views/notifications/markdown/asset-acceptance.blade.php
index 50191d4a37..93292375a5 100644
--- a/resources/views/notifications/markdown/asset-acceptance.blade.php
+++ b/resources/views/notifications/markdown/asset-acceptance.blade.php
@@ -13,6 +13,9 @@
@if (isset($declined_date))
| **{{ ucfirst(trans('general.declined')) }}** | {{ $declined_date }} |
@endif
+@if (isset($note))
+| **{{ trans('general.notes') }}** | {{ $note }} |
+@endif
@if ((isset($item_tag)) && ($item_tag!=''))
| **{{ trans('mail.asset_tag') }}** | {{ $item_tag }} |
@endif
diff --git a/resources/views/notifications/markdown/report-expected-checkins.blade.php b/resources/views/notifications/markdown/report-expected-checkins.blade.php
index 3715188d42..08b81350e4 100644
--- a/resources/views/notifications/markdown/report-expected-checkins.blade.php
+++ b/resources/views/notifications/markdown/report-expected-checkins.blade.php
@@ -10,7 +10,7 @@
@php
$checkin = Helper::getFormattedDateObject($asset->expected_checkin, 'date');
@endphp
-| [{{ $asset->present()->name }}]({{ route('hardware.show', ['hardware' => $asset->id]) }}) | [{{ $asset->assigned->present()->fullName }}]({{ route($asset->targetShowRoute().'.show', [$asset->assigned->id]) }}) | {{ $checkin['formatted'] }}
+| [{{ $asset->present()->name }}]({{ route('hardware.show', ['hardware' => $asset->id]) }}) | [{{ $asset->assignedTo->present()->fullName }}]({{ route($asset->targetShowRoute().'.show', [$asset->assignedTo->id]) }}) | {{ $checkin['formatted'] }}
@endforeach
@endcomponent
diff --git a/resources/views/partials/bootstrap-table.blade.php b/resources/views/partials/bootstrap-table.blade.php
index a3d6b6df2d..8b01ce7865 100644
--- a/resources/views/partials/bootstrap-table.blade.php
+++ b/resources/views/partials/bootstrap-table.blade.php
@@ -92,6 +92,9 @@
exportTypes: ['xlsx', 'excel', 'csv', 'pdf','json', 'xml', 'txt', 'sql', 'doc' ],
onLoadSuccess: function () {
$('[data-tooltip="true"]').tooltip(); // Needed to attach tooltips after ajax call
+ },
+ formatNoMatches: function () {
+ return '{{ trans('table.no_matching_records') }}';
}
});
diff --git a/resources/views/partials/forms/edit/image-upload.blade.php b/resources/views/partials/forms/edit/image-upload.blade.php
index 2e9ac38558..fca1068844 100644
--- a/resources/views/partials/forms/edit/image-upload.blade.php
+++ b/resources/views/partials/forms/edit/image-upload.blade.php
@@ -32,7 +32,10 @@
-
{{ trans('general.image_filetypes_help', ['size' => Helper::file_upload_max_size_readable()]) }}
+
{{ trans('general.image_filetypes_help', ['size' => Helper::file_upload_max_size_readable()]) }} {{ $help_text ?? '' }}
+
+
+
{!! $errors->first('image', '
:message') !!}
diff --git a/resources/views/partials/label2-field-definitions.blade.php b/resources/views/partials/label2-field-definitions.blade.php
index b701ffe69a..2a44fbf257 100644
--- a/resources/views/partials/label2-field-definitions.blade.php
+++ b/resources/views/partials/label2-field-definitions.blade.php
@@ -209,7 +209,9 @@
array.splice(newIndex, 0, array.splice(oldIndex, 1)[0]);
},
- get valueString() { return this.toString(this.fields); },
+ get valueString() {
+ return this.getCombinedString(this.fields);
+ },
onTest: function(a) {
console.log('test', a);
},
@@ -229,7 +231,7 @@
})
}));
},
- toString: function(fields) {
+ getCombinedString: function (fields) {
return fields
.map(field => field.options
.map(option => option.label + '=' + option.datasource)
diff --git a/resources/views/settings/index.blade.php b/resources/views/settings/index.blade.php
index 9ff9c94f71..3b805f9215 100755
--- a/resources/views/settings/index.blade.php
+++ b/resources/views/settings/index.blade.php
@@ -20,8 +20,6 @@