• File: AmericanMonthReport.php
  • Full Path: /var/www/imaliapitest/app/Exports/AmericanMonthReport.php
  • Date Modified: 05/19/2025 4:29 PM
  • File size: 679 bytes
  • MIME-type: text/x-php
  • Charset: utf-8
<?php

namespace App\Exports;

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

class AmericanMonthReport implements FromCollection, WithHeadings
{
    protected $data;
    protected $headings;

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

    /**
     * @return \Illuminate\Support\Collection
     */
    public function collection()
    {
        return $this->data;
    }

    /**
     * @return array
     */
    public function headings(): array
    {
        return $this->headings;
    }
}