Skip to content

Commit bd02b9e

Browse files
committed
Audit tweaks
1 parent 16f57e1 commit bd02b9e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

resources/views/dashboard.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ class="table table-striped snipe-table"
168168
</div><!-- /.responsive -->
169169
</div><!-- /.col -->
170170
<div class="col-md-12 text-center" style="padding-top: 10px;">
171-
<a href="{{ route('reports/activity') }}" class="btn btn-primary btn-sm" style="width: 100%">View All</a>
171+
<a href="{{ route('reports.activity') }}" class="btn btn-primary btn-sm" style="width: 100%">View All</a>
172172
</div>
173173
</div><!-- /.row -->
174174
</div><!-- ./box-body -->

resources/views/hardware/view.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@
113113
<td>{{ $asset->serial }}</td>
114114
</tr>
115115
@endif
116-
@if ($audit_log->created_at)
116+
@if ((isset($audit_log)) && ($audit_log->created_at))
117117
<tr>
118118
<td>{{ trans('general.last_audit') }}</td>
119119
<td> {{ \App\Helpers\Helper::getFormattedDateObject($audit_log->created_at, 'date', false) }} (by {{ link_to_route('users.show', $audit_log->user->present()->fullname(), [$audit_log->user->id]) }})</td>

0 commit comments

Comments
 (0)