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

From Date:

To Date:

Api Service:

Margin'Mode:


Report
@php $services = ["Mobile Recharge Service", "Bill Payment API Service", "PG Services API", "Money Transfer API", "DTH Recharge API"]; $txnTypes = ["Jio", "Airtel", "Electricity", "Water", "Gas"]; $mode = "Commission"; $rows = []; $srNo = 1; foreach ($services as $service) { for ($i = 1; $i <= 1; $i++) { $amount = rand(100, 5000); $apiMargin = rand(5, 15); $retailerMargin = rand(1, 5); $dsMargin = rand(1, 3); $mdsMargin = rand(1, 3); $wlMargin = rand(0, 2); $admin = $apiMargin + $retailerMargin + $dsMargin + $mdsMargin + $wlMargin; $rows[] = [ 'srno' => $srNo++, 'datetime' => now()->subMinutes(rand(10, 900))->format('d-m-Y : h:i A'), 'service' => $service, 'txn_type' => rand(10, 100), 'amount' => number_format($amount, 2), 'api_margin' => number_format($apiMargin, 2), 'retailer_margin' => number_format($retailerMargin, 2), 'ds_margin' => number_format($dsMargin, 2), 'mds_margin' => number_format($mdsMargin, 2), 'wl_margin' => number_format($wlMargin, 2), 'admin' => number_format($admin, 2), ]; } } @endphp @foreach($rows as $row) @endforeach
Sr. No Date & Time API - Service Total Count Amount API Margin Retailer Margin DS Margin MDS Margin WL Margin Admin
{{ $row['srno'] }} {{ $row['datetime'] }} {{ $row['service'] }} {{ $row['txn_type'] }} ₹ {{ $row['amount'] }} ₹ {{ $row['api_margin'] }} ₹ {{ $row['retailer_margin'] }} ₹ {{ $row['ds_margin'] }} ₹ {{ $row['mds_margin'] }} ₹ {{ $row['wl_margin'] }} ₹ {{ $row['admin'] }}
@endsection @section('scripts') @endsection