penjadwalan-ga/app/Exports/GaPresentationCrossoverShee...

31 lines
662 B
PHP

<?php
namespace App\Exports;
use Illuminate\Contracts\View\View;
use Maatwebsite\Excel\Concerns\FromView;
use Maatwebsite\Excel\Concerns\WithTitle;
use Maatwebsite\Excel\Concerns\ShouldAutoSize;
class GaPresentationCrossoverSheet implements FromView, WithTitle, ShouldAutoSize
{
protected array $simData;
public function __construct(array $simData)
{
$this->simData = $simData;
}
public function title(): string
{
return '4. Operator Crossover';
}
public function view(): View
{
return view('admin.exports.presentation.sheet4-crossover', [
'sim' => $this->simData
]);
}
}