@php $totalSalary = 0; @endphp @foreach ($employeePayments as $item) @php $totalSalary += $item->amount; @endphp @endforeach
Employee Id Name Email Remark Created By Payment Date Salary
{{ $item->employee_id }} {{ $item->employee->name }} {{ $item->employee->email }} {{ $item->remark }} {{ $item->user->name ?? 'N/A' }} {{ $item->created_at->format('d-M-Y h:i A') }} {{ $item->amount }}
Total : {{ $totalSalary }}