Skip to content

A free open source IT asset/license management system

front end clarity

akemidxb880ed2371a8
diff --git a/resources/lang/en-US/admin/reports/general.php b/resources/lang/en-US/admin/reports/general.php
index dd1c15897c..903a89dee3 100644
--- a/resources/lang/en-US/admin/reports/general.php
+++ b/resources/lang/en-US/admin/reports/general.php
@@ -21,6 +21,7 @@ return [
'template_name' => 'Template Name',
'update_template' => 'Update Template',
'share_template' => 'Share This Template',
- 'template_shared' => 'Template shared',
- 'template_not_shared' => 'Template not shared',
+ 'template_shared' => 'Template shared with you',
+ 'template_shared_with_others' => 'Template shared with others',
+ 'template_not_shared' => 'Template not shared with others',
];
diff --git a/resources/views/reports/custom.blade.php b/resources/views/reports/custom.blade.php
index 250775702a..cf43d50cf2 100644
--- a/resources/views/reports/custom.blade.php
+++ b/resources/views/reports/custom.blade.php
@@ -80,6 +80,7 @@
</div>
</div>
+
@if($template->created_by == auth()->id())
<div class="col-md-7 col-md-offset-7">
<label class="form-control">
@@ -686,7 +687,13 @@
<div class="row">
<div class="col-md-12">
- <span class="text-center">{!! ($template->share_report_template=='1' ? '<i class="fa fa-check text-success"></i>'." ".(trans('admin/reports/general.template_shared')) : '<i class="fa fa-times text-danger"></i>'." ".(trans('admin/reports/general.template_not_shared')) )!!}</span>
+
+ @if($template->created_by == auth()->id())
+ <span class="text-center">{!! ($template->share_report_template=='1' ? '<i class="fa fa-check text-success"></i>'." ".(trans('admin/reports/general.template_shared_with_others')) : '<i class="fa fa-times text-danger"></i>'." ".(trans('admin/reports/general.template_not_shared')) )!!}</span>
+ @else
+ <span class="text-center">{!! ($template->share_report_template=='1' ? '<i class="fa fa-check text-success"></i>'." ".(trans('admin/reports/general.template_shared')) : '<i class="fa fa-times text-danger"></i>'." ".(trans('admin/reports/general.template_not_shared')) )!!}</span>
+ @endif
+
@if($template->created_by == auth()->id())
@if (request()->routeIs('report-templates.show'))
<a