@extends('admin.layouts.layouts') @section('title', 'View Employee CTC') @section('content')
| Effective From | {{ date('F, Y', strtotime($ctcDetail->effective_date)) }} | ||
|---|---|---|---|
| CTC To Offer | {{ $ctcDetail->ctc_to_offer }} | ||
| {{-- | ({{ ucfirst($ctcDetail->ctc_type) }}) | --}}@php if ($ctcDetail->ctc_type === 'percentage') { $postfix = '%'; $ctcInput = (fmod($ctcDetail->ctc_type_value ?? 0, 1) == 0.0 ? (int) $ctcDetail->ctc_type_value : ($ctcDetail->ctc_type_value ?? '') ); } else { $ctcInput = $ctcDetail->ctc_type_value; } @endphp {{ $ctcInput }}{!! $postfix ?? '' !!} | {{ $ctcDetail->ctc_amount }} |
| Variable Pay ({{ ucfirst($ctcDetail->variable_pay_type) }}) | @php if ($ctcDetail->variable_pay_type === 'percentage') { $postfix = '%'; $variablePayInput = (fmod($ctcDetail->variable_pay_type_value ?? 0, 1) == 0.0 ? (int) $ctcDetail->variable_pay_type_value : ($ctcDetail->variable_pay_type_value ?? '') ); } else { $variablePayInput = $ctcDetail->variable_pay_type_value; } @endphp {{ $variablePayInput }}{!! $postfix ?? '' !!} | {{ $ctcDetail->variable_pay_amount }} | |
| Balance | {{ $ctcDetail->balance_amount }} | ||
| Basic Year ({{ ucfirst($ctcDetail->basic_year_type) }}) | @php $postfix = $ctcDetail->basic_year_type === 'percentage' ? '%' : ''; @endphp {{ (fmod($ctcDetail->basic_year_type_value ?? 0, 1) == 0.0 ? (int) $ctcDetail->basic_year_type_value : ($ctcDetail->basic_year_type_value ?? '') ) }}{!! $postfix !!} | {{ $ctcDetail->basic_year_amount }} | |
| Basic Month | {{ $ctcDetail->basic_month_amount }} | ||
| Medical | {{ $ctcDetail->medical_amount }} | ||
| PT | {{ $ctcDetail->pt_amount }} | ||
| Employee PF ({{ ucfirst($ctcDetail->employee_pf_type) }}) | @php if ($ctcDetail->employee_pf_type === 'percentage') { $postfix = '%'; $employeePFInput = (fmod($ctcDetail->employee_pf_type_value ?? 0, 1) == 0.0 ? (int) $ctcDetail->employee_pf_type_value : ($ctcDetail->employee_pf_type_value ?? '') ); } else { $employeePFInput = $ctcDetail->employee_pf_type_value; } @endphp {{ $employeePFInput }}{!! $postfix ?? '' !!} | {{ $ctcDetail->employee_pf_amount }} | |
| ESIC | {{ $ctcDetail->esic_percentage }}% | {{ $ctcDetail->esic_amount }} | |
| HRA ({{ ucfirst($ctcDetail->hra_type) }}) | @php if ($ctcDetail->hra_type === 'percentage') { $postfix = '%'; $hraInput = (fmod($ctcDetail->hra_type_value ?? 0, 1) == 0.0 ? (int) $ctcDetail->hra_type_value : ($ctcDetail->hra_type_value ?? '') ); } else { $hraInput = $ctcDetail->hra_type_value; } @endphp {{ $hraInput }}{!! $postfix ?? '' !!} | {{ $ctcDetail->hra_amount }} | |
| Gratuity ({{ ucfirst($ctcDetail->gratuity_type) }}) | @php if ($ctcDetail->gratuity_type === 'percentage') { $postfix = '%'; $gratuityInput = (fmod($ctcDetail->gratuity_type_value ?? 0, 1) == 0.0 ? (int) $ctcDetail->gratuity_type_value : ($ctcDetail->gratuity_type_value ?? '') ); } else { $gratuityInput = $ctcDetail->gratuity_type_value; } @endphp {{ $gratuityInput }}{!! $postfix ?? '' !!} | {{ $ctcDetail->gratuity_amount }} | |
| Employee PF ({{ ucfirst($ctcDetail->employer_pf_type) }}) | @php if ($ctcDetail->employer_pf_type === 'percentage') { $postfix = '%'; $employeePFInput = (fmod($ctcDetail->employer_pf_type_value ?? 0, 1) == 0.0 ? (int) $ctcDetail->employer_pf_type_value : ($ctcDetail->employer_pf_type_value ?? '') ); } else { $employeePFInput = $ctcDetail->employer_pf_type_value; } @endphp {{ $employeePFInput }}{!! $postfix ?? '' !!} | {{ $ctcDetail->employer_pf_amount }} | |
| Total Amount | {{ $ctcDetail->total_amount }} | ||
| Special All | {{ $ctcDetail->special_all_amount }} | ||
| Annual Package | {{ $ctcDetail->annual_package_amount }} | ||
| VIP (Monthly) | {{ $ctcDetail->vip_monthly_amount }} | ||
| SIP ({{ ucfirst($ctcDetail->sip_type) }}) | @php if ($ctcDetail->sip_type === 'percentage') { $postfix = '%'; $sipInput = (fmod($ctcDetail->sip_type_value ?? 0, 1) == 0.0 ? (int) $ctcDetail->sip_type_value : ($ctcDetail->sip_type_value ?? '') ); } else { $sipInput = $ctcDetail->sip_type_value; } @endphp {{ $sipInput }}{!! $postfix ?? '' !!} | {{ $ctcDetail->sip_amount }} | |
| {{ $ctcDetail->sip_monthly_amount }} | {{ $ctcDetail->sip_amount }} | ||
| Monthly Salary | @php $monthlyGrossAmount = $ctcDetail->balance_amount / 12; $totalGrossSalaryYearly = ($monthlyGrossAmount * 12) + $ctcDetail->employer_pf_amount; $totalGrossSalarymonthly = ($totalGrossSalaryYearly / 12); $monthlySalary = $totalGrossSalarymonthly + ($ctcDetail->variable_pay_amount / 12) + ($ctcDetail->sip_amount / 12); @endphp {{ round($monthlySalary) }} | ||
| Created At | {{ $ctcDetail->created_at->format('d-m-Y h:i a') }} | ||
| Created By | {{ $ctcDetail->creator->name }} | ||
| Updated At | {{ isset($ctcDetail->updated_by) ? $ctcDetail->updated_at->format('d-m-Y H:i') : '-' }} | ||
| Updated By | {{ isset($ctcDetail->updated_by) ? $ctcDetail->editor->name : '-' }} | ||