You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
559 B
PHP
26 lines
559 B
PHP
<?php
|
|
|
|
namespace App\Exports;
|
|
|
|
use Illuminate\Contracts\View\View;
|
|
use Maatwebsite\Excel\Concerns\FromView;
|
|
|
|
class SppSiswaExport implements FromView
|
|
{
|
|
public function __construct($siswa, $transaksi, $tanggal)
|
|
{
|
|
$this->siswa = $siswa;
|
|
$this->transaksi = $transaksi;
|
|
$this->tanggal = $tanggal;
|
|
}
|
|
|
|
public function view(): View
|
|
{
|
|
return view('transaksi.export', [
|
|
'siswa' => $this->siswa,
|
|
'transaksi' => $this->transaksi,
|
|
'tanggal' => $this->tanggal
|
|
]);
|
|
}
|
|
}
|