@extends('layouts.app') @section('title', 'Run Payroll') @section('content')

Process Monthly Payroll

@csrf
Total Employees to Pay

{{ $employees->count() }}

Employee Salary Snapshot
@php $total = 0; @endphp @foreach($employees as $employee) @php $total += $employee->salary->net_salary ?? 0; @endphp @endforeach
Employee Basic HRA Deductions Net Payable
{{ $employee->name }}
{{ $employee->designation }}
{{ formatCurrency($employee->salary->basic_salary ?? 0) }} {{ formatCurrency($employee->salary->hra ?? 0) }} {{ formatCurrency($employee->salary->deductions ?? 0) }} {{ formatCurrency($employee->salary->net_salary ?? 0) }}
GRAND TOTAL {{ formatCurrency($total) }}
Note: Running payroll will automatically create accounting journal entries (Debit Salary Expense, Credit Bank). Ensure you have sufficient balance in your bank/cash accounts.
Cancel
@endsection