diff --git a/resources/views/accessories/view.blade.php b/resources/views/accessories/view.blade.php index 20c6264b9..d8cc0ccbd 100644 --- a/resources/views/accessories/view.blade.php +++ b/resources/views/accessories/view.blade.php @@ -47,15 +47,34 @@ {{-- Page content --}} @section('content') + + - + + - -
+ + + +
@if ($accessory->image!='') -
-
- {{ $accessory->name }} +
+
+ {{ $accessory->name }} +
-
@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 + +
+
+
+ +
+
+
+ + + + + + + + + + + + @if ($snipeSettings->require_accept_signature=='1') + + @endif + + +
{{ trans('general.record_created') }}{{ trans('general.admin') }}{{ trans('general.action') }}{{ trans('general.item') }}{{ trans('general.target') }}{{ trans('general.notes') }}{{ trans('general.date') }}{{ trans('general.signature') }}
+
+
+
+
+
@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() : '') }}