<?php

namespace App\Exports;

use Illuminate\Support\Collection;
use Maatwebsite\Excel\Concerns\FromCollection;
use Maatwebsite\Excel\Concerns\WithHeadings;

class Pratice_Question_Export implements FromCollection, WithHeadings
{
    public function collection()
    {
        // Sample data rows
        return new Collection([
            ['1', '1', '1', '1', 'My question goes here?', 'option 1', 'option 2', 'option 3', 'option 4', '1', '', ''],
        ]);
    }

    public function headings(): array
    {
        return [
            'category_id',
            'skill_id',
            'classification_id',
            'level_id',
            'question',
            'option_a',
            'option_b',
            'option_c',
            'option_d',
            'correct_answer',
            'image',
            'note',
        ];
    }
}
