@extends('layouts.dashboard.superadminapp') @section('title', 'Payroll Management') @section('styles') @endsection @section('content')
| Employee | Department | Days Worked | Gross Salary | Deductions | Net Salary | Status | Actions | |
|---|---|---|---|---|---|---|---|---|
|
{{ $payroll->employee->name ?? '-' }}
{{ $payroll->employee->employee_id ?? '-' }}
|
{{ $payroll->employee->department ?? '-' }} | {{ $payroll->days_worked }}/{{ $payroll->total_days }} | {{ number_format($payroll->gross_salary, 2) }} | {{ number_format($payroll->total_deductions, 2) }} | {{ number_format($payroll->net_salary, 2) }} | @switch($payroll->status) @case('Draft') Draft @break @case('Pending') Pending @break @case('Approved') Approved @break @case('Paid') Paid @break @default {{ $payroll->status }} @endswitch | @if($payroll->status == 'Draft') @endif @if($payroll->status == 'Pending') @endif @if($payroll->status == 'Approved') @endif @if($payroll->status != 'Paid') @endif |