@foreach($devices as $device) @endforeach
{{__('Branch')}} {{__('Medical device')}} {{__('QC Results')}} {{__('QC Results Passed')}} {{__('QC Results Failed')}} {{__('CAPA Resolved')}} {{__('CAPA Review Pending')}} {{__('Last QC Date')}}
{{(isset($device['branch']))?$device['branch']['name_'.app()->getLocale()]:''}} {{$device['name']}} {{count($device['results'])}} {{count($device['results']->where('violated',false))}} {{count($device['results']->where('violated',true))}} {{count($device['results']->where('violated',true)->where('solved',true))}} {{count($device['results']->where('violated',true)->where('solved',false))}} {{$device['last_result_date']}}