mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-24 21:24:13 -08:00
Fix in case crated_at is blank
This commit is contained in:
parent
dcdc1a6e7b
commit
dd1241f964
|
@ -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 -->
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue