mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-24 05:04:07 -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>{{ $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 -->
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue