-
-
-
+
+
+
+
@if ($accessory->image!='')
-
-
-
->url('accessories/'.e($accessory->image)) }})
+
+
+
->url('accessories/'.e($accessory->image)) }})
+
-
@endif
@if ($accessory->company)
-
-
- {{ trans('general.company')}}
+
+
+ {{ trans('general.company')}}
+
+
-
-
- @endif
-
+ @endif
- @if ($accessory->category)
-
-
- {{ trans('general.category')}}
+
+ @if ($accessory->category)
+
+
+ {{ trans('general.category')}}
+
+
-
-
- @endif
+ @endif
@if ($accessory->notes)
-
-
- {{ trans('general.notes') }}
-
+
+
+ {{ trans('general.notes') }}
+
-
- {!! nl2br(e($accessory->notes)) !!}
+
+ {!! nl2br(e($accessory->notes)) !!}
-
- @endif
-
-
+ @endif
+
+
+
- Number remaining
+ Number remaining
- {{ $accessory->numRemaining() }}
+ {{ $accessory->numRemaining() }}
-
-
-
-
- @can('checkout', \App\Models\Accessory::class)
-
- @endcan
-
-
+
+
+
+ @can('checkout', \App\Models\Accessory::class)
+
+ @endcan
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ trans('general.record_created') }} |
+ {{ trans('general.admin') }} |
+ {{ trans('general.action') }} |
+ {{ trans('general.item') }} |
+ {{ trans('general.target') }} |
+ {{ trans('general.notes') }} |
+ {{ trans('general.date') }} |
+ @if ($snipeSettings->require_accept_signature=='1')
+ {{ trans('general.signature') }} |
+ @endif
+
+
+
+
+
+
+
+
@stop
+
+
+
+
+
+
+
+
+
@section('moar_scripts')
@include ('partials.bootstrap-table')
@stop
diff --git a/resources/views/notifications/markdown/upcoming-audits.blade.php b/resources/views/notifications/markdown/upcoming-audits.blade.php
index e1d95d611..f7ccf556b 100644
--- a/resources/views/notifications/markdown/upcoming-audits.blade.php
+++ b/resources/views/notifications/markdown/upcoming-audits.blade.php
@@ -9,7 +9,7 @@
@php
$next_audit_date = Helper::getFormattedDateObject($asset->next_audit_date, 'date', false);
$last_audit_date = Helper::getFormattedDateObject($asset->last_audit_date, 'date', false);
-$diff = Carbon::parse(Carbon::now())->diffInDays($next_audit_date, false);
+$diff = Carbon::parse(Carbon::now())->diffInDays($asset->next_audit_date, false);
$icon = ($diff <= 7) ? '🚨' : (($diff <= 14) ? '⚠️' : ' ');
@endphp
|{{ $icon }}| [{{ $asset->present()->name }}]({{ route('hardware.show', $asset->id) }}) | {{ $last_audit_date }}| {{ $next_audit_date }} | {{ $diff }} | {{ ($asset->supplier ? e($asset->supplier->name) : '') }}|{{ ($asset->assignedTo ? $asset->assignedTo->present()->name() : '') }}