@foreach($gpus as $gpu) @php $used = $gpu['mem_total'] - $gpu['mem_free']; $usedPct = $gpu['mem_total'] > 0 ? round($used / $gpu['mem_total'] * 100) : 0; $sel = (string)$gpu['index'] === (string)$selectedDevice; @endphp
@if($sel)@endif
{{ $gpu['name'] }}
VRAM{{ number_format($gpu['mem_total']) }} MB
Free{{ number_format($gpu['mem_free']) }} MB
GPU Load{{ $gpu['util'] }}%
Temp{{ $gpu['temp'] }} °C
Driver{{ $gpu['driver'] }}
@endforeach