@extends('layouts.dashboard.superadminapp') @section('title', 'Employee Salary Details') @section('styles') @endsection @section('content')
Auto Generate Payroll
@csrf
Leave empty for all employees
Auto-calculation: Payroll will be calculated based on attendance records, approved leaves, OT hours, and salary structure (incentive per hour). Employees without salary structure will be skipped.
Filter Salary Records
Leave empty for all employees
@if(session('success')) @endif @if(session('error')) @endif
Salary Details List
@foreach($salaryDetails as $salary) @endforeach
Month & Year Employee ID Employee Name Basic & DA HRA Conveyance Washing Allow. Fixed Salary Days Worked Leave Given Total Days Drawn Salary Incentive Hrs Incentive Rate Incentive Amt Attendance Bonus Gross Salary ESI PF PT Advance Ded. Net Salary Payment Mode Status Actions
{{ $salary->month_year }} {{ $salary->employee->employee_id ?? '-' }} {{ $salary->employee->name ?? '-' }} {{ number_format($salary->basic_da, 2) }} {{ number_format($salary->hra, 2) }} {{ number_format($salary->conveyance, 2) }} {{ number_format($salary->washing_allowance, 2) }} {{ number_format($salary->fixed_salary, 2) }} {{ $salary->no_of_days_worked }} {{ $salary->leave_given }} {{ $salary->total_days_for_salary }} {{ number_format($salary->drawn_salary, 2) }} {{ $salary->incentive_hrs }} {{ number_format($salary->incentive_rate, 2) }} {{ number_format($salary->incentive_amount, 2) }} {{ number_format($salary->attendance_bonus, 2) }} {{ number_format($salary->gross_salary, 2) }} {{ number_format($salary->esi, 2) }} {{ number_format($salary->pf, 2) }} {{ number_format($salary->pt, 2) }} {{ number_format($salary->advance_deduction, 2) }} {{ number_format($salary->net_salary, 2) }} @if($salary->payment_mode) {{ $salary->payment_mode }} @else - @endif @php $status = $salary->approval_status ?? 'pending'; @endphp @if($status === 'approved') Approved @elseif($status === 'rejected') Rejected @else Pending @endif
@php $status = $salary->approval_status ?? 'pending'; @endphp @if($status === 'pending') @endif
@endsection @section('scripts') @endsection