<?php

namespace App\Exports;

use App\Models\User;
use Maatwebsite\Excel\Concerns\FromCollection;
use Maatwebsite\Excel\Concerns\FromArray;
use Maatwebsite\Excel\Concerns\WithHeadings;


class PayrollExportNew implements FromArray, WithHeadings
{
    protected $data;
    protected $headings;

    public function __construct(array $data)
    {
        $this->data = $data;
    }

    /**
     * @return array
     */
    public function array(): array
    {
        return $this->data;
    }
    public function headings(): array
    {
        return [
            'Staff ID',
            'Surname',
            'Other Names',
            'Payable Amount',
            'Employee Contribution',
            'Bank Code',
            'Account Number',
            'PFA Code',
            'Pension PIN',
            'Plan ID',
            'Pensionable Income',
            'Email Address',
            'Mobile Number',
            'Account Type',
            'Tax State',
            'Tax Number',
            'Tax Amount',
        ];

    }
}
