23 lines
486 B
PHP
23 lines
486 B
PHP
<?php
|
|
|
|
namespace Modules\DailySalePaymentReportModule\Exports;
|
|
|
|
use Illuminate\Contracts\View\View;
|
|
use Maatwebsite\Excel\Concerns\FromView;
|
|
use Maatwebsite\Excel\Concerns\ShouldAutoSize;
|
|
|
|
class DailySalePaymentReportExport implements FromView, ShouldAutoSize
|
|
{
|
|
protected $data;
|
|
|
|
public function __construct($data)
|
|
{
|
|
$this->data = $data;
|
|
}
|
|
|
|
public function view(): View
|
|
{
|
|
return view('dailysalepaymentreportmodule::export', $this->data);
|
|
}
|
|
}
|