Implement modern Excel, CSV, and PDF export functionality for all 3 tables
This commit is contained in:
22
Exports/DailySalePaymentReportExport.php
Normal file
22
Exports/DailySalePaymentReportExport.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user