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

Total Number of Reviews


Result Date from
Result Date to
Processing Unit
Processing Branch
Roles
User
@php $total_user = []; $total_role = []; $process_branch = []; $process_unit = []; $total_validation = 0; $total_approval = 0; $total_changed = 0; @endphp @foreach($orders as $order) @php if(!isset($total_user[$order->user_name])) $total_user[$order->user_name] = 1; if(!isset($total_role[$order->role_name])) $total_role[$order->role_name] = 1; if(!isset($process_branch[$order->processing_branch])) $process_branch[$order->processing_branch] = 1; if(!isset($process_unit[$order->processing_unit])) $process_unit[$order->processing_unit] = 1; $total_validation += $order->validation_qty; $total_approval += $order->approval_qty; $total_changed += $order->changed_qty; $change_percent = $order->approval_qty > 0 ? number_format(($order->changed_qty / $order->approval_qty) * 100, 2) : 0; @endphp @endforeach
User Role Processing Branch Processing Unit Number of Validation Number of Approval Changed Results Changed/Approved %
{{$order->user_name}} {{$order->role_name ?? null}} {{$order->processing_branch ?? null}} {{$order->processing_unit ?? null}} {{$order->validation_qty ?? 0}} {{$order->approval_qty ?? 0}} {{$order->changed_qty ?? 0}} {{$change_percent}}%
{{count($total_user)}} {{count($total_role)}} {{count($process_branch)}} {{count($process_unit)}} {{$total_validation}} {{$total_approval}} {{$total_changed}} {{$total_approval > 0 ? number_format(($total_changed / $total_approval) * 100, 2) : 0}}%
@endsection @section('footer-scripts') @endsection