29 lines
915 B
PHP
29 lines
915 B
PHP
<?php
|
|
|
|
namespace App\Exports;
|
|
|
|
use Maatwebsite\Excel\Concerns\WithMultipleSheets;
|
|
|
|
class BillplzTransactionSummaryExport implements WithMultipleSheets
|
|
{
|
|
protected $bill_plz_transaction_summary_pkb;
|
|
protected $bill_plz_transaction_summary_koop;
|
|
protected $date;
|
|
|
|
public function __construct($bill_plz_transaction_summary_pkb, $bill_plz_transaction_summary_koop, $date = null)
|
|
{
|
|
$this->bill_plz_transaction_summary_pkb = $bill_plz_transaction_summary_pkb;
|
|
$this->bill_plz_transaction_summary_koop = $bill_plz_transaction_summary_koop;
|
|
$this->date = $date;
|
|
}
|
|
|
|
|
|
public function sheets(): array
|
|
{
|
|
return [
|
|
new BillplzTransactionSummarySheet($this->bill_plz_transaction_summary_pkb, 'PKB (v2)', $this->date),
|
|
new BillplzTransactionSummarySheet($this->bill_plz_transaction_summary_koop, 'KOPKB (v3)', $this->date),
|
|
];
|
|
}
|
|
}
|