<?php

namespace App\Exports;

use Maatwebsite\Excel\Concerns\FromArray;
use Maatwebsite\Excel\Concerns\WithHeadings;
use Maatwebsite\Excel\Concerns\WithStyles;
use PhpOffice\PhpSpreadsheet\Worksheet\Worksheet;

class SiswaTemplateExport implements FromArray, WithHeadings, WithStyles
{
    public function array(): array
    {
        return [
            ['0012345601', 'Nama Siswa Contoh', 'XII IPA 1', 'IPA', 'lulus', '2024/2025'],
        ];
    }

    public function headings(): array
    {
        return ['nisn', 'nama', 'kelas', 'jurusan', 'status_kelulusan', 'tahun_ajaran'];
    }

    public function styles(Worksheet $sheet): array
    {
        return [
            1 => ['font' => ['bold' => true]],
        ];
    }
}
