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

From Date:

To Date:

Operator:

Status:

User ID:


Report
@php $statuses = ["Success", "Pending", "Failed", "Refunded"]; $devices = ["Android", "Web", "API"]; $names = ["Rahul Sharma","Amit Verma","Neha Yadav","Pooja Chauhan","Sanjay Patel","Rohit Gupta", "Kiran Singh","Vikas Mehta","Sunita Rajput","Deepak Agarwal","Anjali Saxena", "Ayesha Rathod","Pawan Mishra","Manoj Tiwari","Sneha Kulkarni","Kunal Kapoor", "Rajesh Sahu","Priya Mathur","Vivek Srivastava","Reena Desai"]; $operators = ["Airtel", "Jio", "Vi (Vodafone Idea)", "BSNL"]; $plans = ["₹99", "₹149", "₹199", "₹249", "₹399", "₹599"]; $rows = []; for ($i = 1; $i <= 10; $i++) { $fullName = $names[array_rand($names)]; $uniqueId = "RT" . rand(10000000, 99999999); $rows[] = [ 'srno' => $i, 'datetime' => now()->subMinutes(rand(10, 900))->format('d M Y h:i A'), 'member_id' => "$fullName ($uniqueId)", 'contact' => "9" . rand(100000000, 999999999), // NEW FIELDS 'customer_name' => $fullName, 'operator' => $operators[array_rand($operators)], 'subscriber_id' => "SUB" . rand(100000, 999999), 'plan' => $plans[array_rand($plans)], 'reference_id' => "REF" . rand(1000000, 9999999), 'wallet_balance' => rand(100, 5000), 'txn_id' => "TXN" . rand(100000, 999999), 'commission' => rand(1, 50), 'closing_balance' => rand(100, 5000), 'status' => $statuses[array_rand($statuses)], 'device' => $devices[array_rand($devices)], 'remark' => "Recharge processed…" ]; } @endphp @foreach($rows as $row) @endforeach
Sr No Date & Time Member ID Contact No Customer Name Operator Name Subscriber ID Recharge Plan Reference ID Wallet Balance Txn. ID Commission Closing Balance Status Device Remark Re-check Edit Invoice
{{ $row['srno'] }} {{ $row['datetime'] }} {{ $row['member_id'] }} {{ $row['contact'] }} {{ $row['customer_name'] }} {{ $row['operator'] }} {{ $row['subscriber_id'] }} {{ $row['plan'] }} {{ $row['reference_id'] }} ₹ {{ $row['wallet_balance'] }} {{ $row['txn_id'] }} ₹ {{ $row['commission'] }} ₹ {{ $row['closing_balance'] }} @if($row['status'] == 'Success') Success @elseif($row['status'] == 'Pending') Pending @elseif($row['status'] == 'Failed') Failed @elseif($row['status'] == 'Refunded') Refunded @endif {{ $row['device'] }} {{ $row['remark'] }} View Now
@endsection @section('scripts') @endsection