Files
kulakpos_web/Modules/HrmAddon/App/Exports/ExportAttendanceReport.php
eko54r 3e1b64e008
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
update addon HRM
2026-05-04 23:04:09 +07:00

21 lines
540 B
PHP

<?php
namespace Modules\HrmAddon\App\Exports;
use Illuminate\Contracts\View\View;
use Maatwebsite\Excel\Concerns\FromView;
use Modules\HrmAddon\App\Models\Attendance;
class ExportAttendanceReport implements FromView
{
public function view(): View
{
$attendances = Attendance::with(['employee:id,name', 'shift:id,name'])
->where('business_id', auth()->user()->business_id)
->latest()
->get();
return view('hrmaddon::reports.attendances.excel', compact('attendances'));
}
}