Merge branch 'main' of https://github.com/WDI-Ideas/cheerstothe_season_laravel11 into sayli
This commit is contained in:
@@ -17,9 +17,10 @@ class DashboardExportUser implements FromArray, WithHeadings
|
||||
|
||||
public function array(): array
|
||||
{
|
||||
return array_map(function ($transaction) {
|
||||
return array_map(function ($transaction) use (&$serial) {
|
||||
return [
|
||||
'ID' => $transaction['id'],
|
||||
// 'ID' => $transaction['id'],
|
||||
'Sr No.'=> $serial++,
|
||||
'Customer Name' => $transaction['iam_principal']['first_name'] . ' ' . $transaction['iam_principal']['last_name'],
|
||||
'Customer ID' => $transaction['iam_principal']['id'],
|
||||
'Amount' => '$' . number_format($transaction['amount'], 2),
|
||||
@@ -37,7 +38,7 @@ class DashboardExportUser implements FromArray, WithHeadings
|
||||
public function headings(): array
|
||||
{
|
||||
return [
|
||||
'ID',
|
||||
'Sr No.',
|
||||
'Customer Name',
|
||||
'Customer ID',
|
||||
'Amount',
|
||||
|
||||
Reference in New Issue
Block a user