38 lines
895 B
PHP
38 lines
895 B
PHP
<?php
|
|
|
|
namespace App\Exports\LaporanKeseluruhan;
|
|
|
|
use Maatwebsite\Excel\Concerns\FromCollection;
|
|
use Maatwebsite\Excel\Concerns\WithHeadings;
|
|
|
|
class OutstandingAllExportExcel implements FromCollection, WithHeadings
|
|
{
|
|
protected $outstandingData;
|
|
|
|
public function __construct($outstandingData)
|
|
{
|
|
$this->outstandingData = $outstandingData;
|
|
}
|
|
|
|
public function collection()
|
|
{
|
|
return collect($this->outstandingData);
|
|
}
|
|
|
|
public function headings(): array
|
|
{
|
|
return [
|
|
'Kod Cawangan',
|
|
'Cawangan',
|
|
'Bil Pembiayaan (BRG KES)',
|
|
'Jumlah Pembiayaan (RM)',
|
|
'Bil Pembiayaan (SAG LAMA)',
|
|
'Jumlah Pembiayaan (RM)',
|
|
'Bil Pembiayaan (SAG BARU)',
|
|
'Jumlah Pembiayaan (RM)',
|
|
'Jumlah Bilangan',
|
|
'Jumlah Pembiayaan (RM)',
|
|
];
|
|
}
|
|
}
|