@extends('admin.layout.main') @section('content')
Earnings | Amount | - | Deductions | Amount |
---|---|---|---|---|
Basic Salary | {{ session('currency') }} {{ number_format($data['salary'], 2) }} -/only | - | Deductions | {{ session('currency') }} {{ number_format($data['deductions'], 2) }} -/only |
Bonus | {{ session('currency') }} {{ number_format($data['bonus_amount'], 2) }} -/only | - | Installment | {{ session('currency') }} {{ number_format($data['loan_installment'], 2) }} -/only |
Increment | {{ session('currency') }} {{ number_format($data['increments'], 2) }} -/only | - | Tax | {{ session('currency') }} {{ number_format($data['tax'], 2) }} -/only |
Allowance | {{ session('currency') }} {{ number_format($data['allowances'], 2) }} -/only | - | Leave Deduction | {{ session('currency') }} {{ number_format($data['leave_deduction'], 2) }} -/only |
Total Earning | @if (!isset($data['total_earning'])) @php $totalEarning = ($data['allowances'] ?? 0) + ($data['increments'] ?? 0) + ($data['salary'] ?? 0) + ($data['bonus_amount'] ?? 0); @endphp {{ session('currency') }} {{ number_format($totalEarning, 2) }} -/only @else {{ session('currency') }} {{ number_format($data['total_earning'], 2) }} -/only @endif | - | Total Deductions | @if (!isset($data['total_deduction'])) @php $totalDeduction = ($data['tax'] ?? 0) + ($data['loan_installment'] ?? 0) + ($data['deductions'] ?? 0) + ($data['leave_deduction'] ?? 0); @endphp {{ session('currency') }} {{ number_format($totalDeduction, 2) }} -/only @else {{ session('currency') }} {{ number_format($data['total_deduction'], 2) }} -/only @endif |
{{ $data['salary_comment'] }}