@extends('admin.layout.app') @section('title','Salary Slip') @push('headerscript') @endpush @section('content')

{{ucfirst($employeeSalary->employeeName)}}'s Salary Slip

@if($page == 1){{-- Salary generate page--}} Back @else Back @endif

{{Helper::getBusinessData()->business_name}}

Salary Slip for {{date('M-Y',strtotime($employeeSalary->month))}}

Employee Code : {{$employeeSalary->employee_code}}

Employee Name : {{$employeeSalary->employeeName}}

Department : {{$employeeSalary->department_name}}

Department : {{$employeeSalary->month}}

Bank Name : {{$employeeSalary->bank_name}}

A/C No. : {{$employeeSalary->account_no}}

Earnings

Deductions

Basic Salary {{number_format($employeeSalary->basic_salary,2)}}
Transportation {{number_format($employeeSalary->transportation,2)}}
Accommodation {{number_format($employeeSalary->accommodation,2)}}
Insurance {{number_format($employeeSalary->insurance,2)}}
Others {{number_format($employeeSalary->others,2)}}
Reimbursement {{number_format($employeeSalary->reimbursement,2)}}
Over Time Amount {{number_format($employeeSalary->total_ot_amount,2)}}
Total Earning {{number_format($totalEarning,2)}}
Deductions {{number_format($employeeSalary->deductions,2)}}
   
   
   
   
   
   
Total Deductions {{number_format($employeeSalary->deductions,2)}}

Net Pay ( Total Earnings - Total Deductions )

{{number_format($employeeSalary->total_salary,2)}}

@php $total_amount = $employeeSalary->total_salary; $t_amount = new NumberFormatter("en", NumberFormatter::SPELLOUT); $num = explode('.', $total_amount); @endphp

Amounts in Words :    {{$t_amount->format($num[0])}} {{isset($num[1]) ? 'And '.$t_amount->format($num[1]).'Only': 'Only'}}

@endsection @push('footerscript') @endpush