<?php

namespace App\Exports;

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

class StudentMarkDownload implements FromView
{
    /**
    * @return \Illuminate\Support\Collection
    */
    private $data;

    public function __construct($mark_details)
    {
        // dd($data);
        $this->mark_details       = $mark_details;
    }

    public function view(): View
    {   

        $mark_details    = $this->mark_details;

        // dd($IncomeAmount->get());
        return view('mark_details_report', [
            'mark_details' => $mark_details
        ]);
    }
        
}
