@foreach($boxes as $box)

{{ $box->alias ?: $box->box_identifier }}




{{ $box->Slaves()->active()->count() . ' ' . __('Slave(s) installed') }} @if($box->Version) - Software version {{ $box->Version }} @endif
{{ __('Last sync with server: ') }} {{ $box->last_checkin ? $box->last_checkin->format('d-m-Y H:i:s') : __('Never') }}
@if($box->EMstop) {{ __('Emergency stop engaged') }} @else {{ __('Emergency stop idle') }} @endif
@php $slavesWithRemarks = \App\Controlbox\Slave::getSlavesWithRemarks($box)->count(); @endphp @if($slavesWithRemarks !== 0) @else @endif {{ $slavesWithRemarks . ' ' . __('Slave(s) with remarks') }}
@endforeach