update addon HRM
Some checks failed
Build, Push and Deploy / build-and-push (push) Failing after 3m30s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 15s
Build, Push and Deploy / deploy-staging (push) Has been skipped
Build, Push and Deploy / deploy-production (push) Has been skipped

This commit is contained in:
2026-05-04 23:04:09 +07:00
parent 7be161f4e4
commit 3e1b64e008
131 changed files with 8281 additions and 290 deletions

View File

@@ -0,0 +1,21 @@
<?php
namespace Modules\HrmAddon\App\Exports;
use App\Models\Sale;
use Illuminate\Contracts\View\View;
use Maatwebsite\Excel\Concerns\FromView;
use Modules\HrmAddon\App\Models\Payroll;
class ExportPayrollReport implements FromView
{
public function view(): View
{
$payrolls = Payroll::with(['employee:id,name', 'payment_type:id,name', 'branch:id,name'])
->where('business_id', auth()->user()->business_id)
->latest()
->get();
return view('hrmaddon::reports.payrolls.excel', compact('payrolls'));
}
}