snipe-it/resources/views/emails/low-inventory.blade.php
Daniel Meltzer 23ca2d9a0b Minor fixes (#4091)
* Fix old urls.

Still had some /admin/ urls floating around, which was causing bad
redirects in some instances.  Should fix #4085

* The modal seems to be confusing license upload. be more explicit in the route we redirect to.

* Fix #4039.  Use proper methods for location assets.

This also fixes a bunch of n+1 issues in the transformer.  Also: curious
to know what Location::assets() does, because it doesn't do what I want
it to :)
2017-10-01 12:57:04 -07:00

32 lines
999 B
PHP

@extends('emails/layouts/default')
@section('content')
<p>{{ trans_choice('mail.There_are',$count) }} {{ $count }} {{ trans_choice('mail.items_below_minimum',$count) }}</p>
<table style="border: 1px solid black; padding: 5px;" width="100%" cellspacing="0" cellpadding="3">
<tr>
<td><strong>{{ trans('mail.name') }}</strong></td>
<td><strong>{{ trans('mail.type') }}</strong></td>
<td><strong>{{ trans('mail.current_QTY') }}</strong></td>
<td><strong>{{ trans('mail.min_QTY') }}</strong></td>
</tr>
@for($i=0; $count > $i; $i++)
<tr>
<td>
<a href="{{ route($data[$i]['type'].'.show', $data[$i]['id']) }}">{{ $data[$i]['name'] }}</a>
</td>
<td>{{ $data[$i]['type'] }}</td>
<td>{{ $data[$i]['remaining'] }}</td>
<td>{{ $data[$i]['min_amt'] }}</td>
</tr>
@endfor
</table>
@stop