Files
Tony Murray 0959df53e5 Don't use @lang() it doesn't escape the string (#13566)
* Don't use @lang() it doesn't escape the string
Found an issue where a string contained a single quote and broke the page.

* fix regex errors

* fix another style of mis-replacement

* found another issue
2021-11-28 21:17:11 -06:00

38 lines
1.1 KiB
PHP

@extends('device.submenu')
@section('tabcontent')
<table class="table table-hover table-condensed table-striped">
<thead>
<tr>
<th>{{ __('Server Name') }}</th>
<th>{{ __('Power Status') }}</th>
<th>{{ __('Operating System') }}</th>
<th>{{ __('Memory') }}</th>
<th>{{ __('CPU') }}</th>
</tr>
</thead>
<tbody>
@foreach($data['vms'] as $vm)
<tr>
<td>
@if ($vm->parentDevice)
<x-device-link :device="$vm->parentDevice" />
@else
{{ $vm->vmwVmDisplayName }}
@endif
</td>
<td>
<span style="min-width:40px; display:inline-block;" class="label {{ $vm->stateLabel[1] }}">{{ $vm->stateLabel[0] }}</span>
</td>
<td>{{ $vm->operatingSystem }}</td>
<td>{{ $vm->memoryFormatted }}</td>
<td>{{ $vm->vmwVmCpus }}</td>
</tr>
@endforeach
</tbody>
</table>
@endsection