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>{{ trans('admin/hardware/form.notes') }}</td>
<td>{{ $asset->notes }}</td> <td>{{ $asset->notes }}</td>
</tr> </tr>
@if ($asset->created_at)
<tr> <tr>
<td>{{ trans('general.created_at') }}</td> <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> </tr>
@endif
</tbody> </tbody>
</table> </table>
</div> <!-- /table-responsive --> </div> <!-- /table-responsive -->

View file

@ -111,10 +111,14 @@
<td>{{ $user->userloc->name }}</td> <td>{{ $user->userloc->name }}</td>
</tr> </tr>
@endif @endif
@if ($user->created_at)
<tr> <tr>
<td>{{ trans('general.created_at') }}</td> <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> </tr>
@endif
</table> </table>
</div> </div>