<?php

namespace App\Exports;

use Illuminate\Contracts\View\View;
use Maatwebsite\Excel\Concerns\FromView;

class BkRekapExcelExport implements FromView
{
    public function __construct(
        public $perSiswa,
        public $summary,
        public $bulan,
        public $tahun,
        public $jurusan,
        public $namaKelas
    ) {}

    public function view(): View
    {
        return view('bk.rekap.excel', [
            'perSiswa' => $this->perSiswa,
            'summary' => $this->summary,
            'bulan' => $this->bulan,
            'tahun' => $this->tahun,
            'jurusan' => $this->jurusan,
            'namaKelas' => $this->namaKelas,
        ]);
    }
}