@extends('operations.layout.mainlayout') @section('content')

Result Analysis Report


Result Date from
Result Date to
Unit
Registration Branch
Processing Branch
Tests
Clients
@foreach($orders as $order) @endforeach
Registration Branch Number of Results Number of Normal Results % of Normal Results Number of Abnormal Results % of Abnormal Results Number of Critical Results % of Critical Results
{{$order->registration_name ?? ''}} {{$order->total_result ?? 0}} {{$order->normal_result ?? 0}} @if($order->normal_result && $order->total_result) @php($normal_result = number_format(($order->normal_result / $order->total_result) * 100,2)) {{substr($normal_result, -3) === '.00' ? substr($normal_result, 0, -3) : $normal_result }} % @else 0 @endif {{$order->abnormal_result ?? 0}} @if($order->abnormal_result && $order->total_result) @php($abnormal_per = number_format(($order->abnormal_result / $order->total_result) * 100,2)) {{substr($abnormal_per, -3) === '.00' ? substr($abnormal_per, 0, -3) : $abnormal_per }} % @else 0 @endif {{$order->critical_result ?? 0}} @if($order->critical_result && $order->total_result) @php($critical_result = number_format(($order->critical_result / $order->total_result) * 100,2)) {{substr($critical_result, -3) === '.00' ? substr($critical_result, 0, -3) : $critical_result }} % @else 0 @endif
@endsection @section('footer-scripts') @endsection