Fix in case crated_at is blank

This commit is contained in:
snipe 2016-06-21 17:19:46 -07:00
parent dcdc1a6e7b
commit dd1241f964
2 changed files with 16 additions and 8 deletions

View file

@ -249,10 +249,14 @@
<td>{{ trans('admin/hardware/form.notes') }}</td>
<td>{{ $asset->notes }}</td>
</tr>
@if ($asset->created_at)
<tr>
<td>{{ trans('general.created_at') }}</td>
<td>{{ $asset->created_at->format('F j, Y h:iA') }}</td>
<td>
{{ $user->created_at->format('F j, Y h:iA') }}
</td>
</tr>
@endif
</tbody>
</table>
</div> <!-- /table-responsive -->

View file

@ -111,10 +111,14 @@
<td>{{ $user->userloc->name }}</td>
</tr>
@endif
@if ($user->created_at)
<tr>
<td>{{ trans('general.created_at') }}</td>
<td>{{ $user->created_at->format('F j, Y h:iA') }}</td>
<td>
{{ $user->created_at->format('F j, Y h:iA') }}
</td>
</tr>
@endif
</table>
</div>