Implement modern Excel, CSV, and PDF export functionality for all 3 tables

This commit is contained in:
2026-07-03 17:21:45 +05:30
parent 26273d92c2
commit 70ca6fe789
3 changed files with 323 additions and 7 deletions

View 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);
}
}