From 65cf7527b02501a6cb8f0d8709ca9a19ea0a8fb3 Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 8 May 2018 05:59:34 -0700 Subject: [PATCH] Added model name to expected checkin reminders --- .../notifications/markdown/report-expected-checkins.blade.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/views/notifications/markdown/report-expected-checkins.blade.php b/resources/views/notifications/markdown/report-expected-checkins.blade.php index 88b6eff4aa..907c826072 100644 --- a/resources/views/notifications/markdown/report-expected-checkins.blade.php +++ b/resources/views/notifications/markdown/report-expected-checkins.blade.php @@ -4,13 +4,13 @@ The following {{ $assets->count() }} items are due to be checked in soon: @component('mail::table') -| Asset Name | Asset Tag | Checked Out to | Expected Checkin | +| Asset | Checked Out to | Expected Checkin | | ------------- | ------------- | @foreach ($assets as $asset) @php $checkin = \App\Helpers\Helper::getFormattedDateObject($asset->expected_checkin, 'date'); @endphp -| {{ $asset->name }} | [{{ $asset->asset_tag }}]({{ route('hardware.show', ['assetId' => $asset->id]) }}) | [{{ $asset->assigned->first_name }} {{ $asset->assigned->last_name }}]({{ route('users.show', ['user'=>$asset->assigned->id]) }}) | {{ $checkin['formatted'] }} +| [{{ $asset->present()->name }}]({{ route('hardware.show', ['assetId' => $asset->id]) }}) | [{{ $asset->assigned->present()->fullName }}]({{ route('users.show', ['user'=>$asset->assigned->id]) }}) | {{ $checkin['formatted'] }} @endforeach @endcomponent