diff --git a/app/Exports/Laporan/StokAuditBackdateExport.php b/app/Exports/Laporan/StokAuditBackdateExport.php new file mode 100644 index 0000000..790818d --- /dev/null +++ b/app/Exports/Laporan/StokAuditBackdateExport.php @@ -0,0 +1,85 @@ +data = $data; + } + + public function headings(): array + { + return [ + 'tahun', + 'bulan', + 'norujukan', + 'tempoh', + 'nokp', + 'berat', + 'nilaimarhun', + 'pinjaman', + 'bakipjm', + 'kadarupah', + 'tempohblmbyar', + 'upahblmbyar', + 'lanjutan', + 'utgonepercent', + 'ujrah', + ]; + } + + public function array(): array + { + return $this->data; + } + + public function startCell(): string + { + return 'B2'; + } + + public function map($data): array + { + return [ + // $data['id'], + $data['tahun'], + $data['bulan'], + $data['norujukan'], + $data['tempoh'], + $data['nokp'], + $data['berat'], + $data['nilaimarhun'], + $data['pinjaman'], + $data['bakipjm'], + $data['kadarupah'], + $data['tempohblmbyar'], + $data['upahblmbyar'], + $data['lanjutan'], + $data['utgonepercent'], + $data['ujrah'], + ]; + } + + public function columnFormats(): array + { + return [ + // 'B' => NumberFormat::FORMAT_DATE_DDMMYYYY, + 'D' => DataType::TYPE_STRING2, + 'F' => DataType::TYPE_STRING2, + ]; + } +} + +?> \ No newline at end of file