@extends('layouts.app') @section('content') @php $table = "yes"; @endphp

From Date:

To Date:

Api Service:


Report
@php $services = ["Payment Gateway API", "Money Transfer Services", "Bill Payment API Service", "Mobile Recharge Services"]; $srNo = 1; $data = []; foreach ($services as $service) { $total = rand(500, 2000); $success = rand(300, $total); $pending = rand(0, $total - $success); $failed = rand(0, $total - ($success + $pending)); $refunded = $total - ($success + $pending + $failed); $data[] = [ 'service' => $service, 'total' => $total, 'success' => $success, 'success_percent' => round(($success/$total)*100,2), 'pending' => $pending, 'pending_percent' => round(($pending/$total)*100,2), 'failed' => $failed, 'failed_percent' => round(($failed/$total)*100,2), 'refunded' => $refunded, 'refunded_percent' => round(($refunded/$total)*100,2), ]; } @endphp @foreach($data as $row) @endforeach
Sr. No API - Service Total Count Success Count % Pending Count % Failed Count % Refunded Count %
{{ $srNo++ }} {{ $row['service'] }} {{ $row['total'] }} {{ $row['success'] }} {{ $row['success_percent'] }}% {{ $row['pending'] }} {{ $row['pending_percent'] }}% {{ $row['failed'] }} {{ $row['failed_percent'] }}% {{ $row['refunded'] }} {{ $row['refunded_percent'] }}%
@endsection @section('scripts') @endsection