@php $total_test = 0; $total_process = 0; $total_rerun = 0; $total_delayed = 0; @endphp @foreach($orders as $order) @php $total_test += $order->total_tests; $total_process += $order->total_sample; $total_rerun += $order->total_rerun; $total_delayed += $order->delay_stat; @endphp @endforeach

{{$Profile->NAME_EN}}

Processed Samples - Unit

Registration Branch Processing Branch Processing Unit Number of Processed Samples Number of Processed Test Number of Rerun Test % of Rerun Test Number of Delayed Test % of Delayed Test
{{$order->registeration_branch ?? null}} {{$order->process_branch ?? null}} {{$order->processing_unit ?? null}} {{$order->total_sample ?? 0}} {{$order->total_tests ?? 0}} {{$order->total_rerun ?? 0}} @if($order->total_rerun && $order->total_tests) @php($percentage_total_rerun = number_format(($order->total_rerun / ($order->total_tests)) * 100,2)) {{substr($percentage_total_rerun, -3) === '.00' ? substr($percentage_total_rerun, 0, -3) : $percentage_total_rerun }} % @else 0 @endif {{$order->delay_stat }} @if($order->delay_stat && $order->total_tests) @php($percentage_total_delay_stat = number_format(($order->delay_stat / ($order->total_tests)) * 100,2)) {{substr($percentage_total_delay_stat, -3) === '.00' ? substr($percentage_total_delay_stat, 0, -3) : $percentage_total_delay_stat }} % @else 0 @endif
Totals {{$total_process}} {{$total_test}} {{$total_rerun}} @if($total_test && $total_rerun) @php($percentage_all_rerun = number_format(($total_rerun / $total_test) * 100,2)) {{substr($percentage_all_rerun, -3) === '.00' ? substr($percentage_all_rerun, 0, -3) : $percentage_all_rerun }} % @else 0 @endif {{$total_delayed}} @if($total_test && $total_delayed) @php($percentage_all_delayed = number_format(($total_delayed / $total_test) * 100,2)) {{substr($percentage_all_delayed, -3) === '.00' ? substr($percentage_all_delayed, 0, -3) : $percentage_all_delayed }} % @else 0 @endif