@extends('layouts.pdf')
@section('title')
{{ $extra['module_name'] }}
@endsection
@section('content')
{{-- Custom Styling --}}
{{-- End Custom Styling --}}
@include('admin.partials.header', ['extra' => $extra])
{{ $extra['module_name'] }} Of The Month {{ $common->getMonthName($payroll_item->month) }} - {{ $payroll_item->year }}
@php
$employee = $payroll_item->employee;
$designation = $employee->designation;
$department = $employee->departments;
@endphp
Employee ID |
: |
{{($employee->head->code)}} |
Designation |
: |
{{ $designation->designation_name }} |
Employee Name |
: |
{{ $employee->name }} |
Department |
: |
{{$department->department_name }} |
Cnic |
: |
{{ $employee->cnic }} |
Reporting Manager |
: |
{{ $employee->assign_to_user->name }} |
Father Name |
: |
{{ $employee->f_name }} |
Contact No. |
: |
{{ $employee->phone }} |
Bank Account No. |
: |
{{ $employee->bank_account_no }} |
Date of Joining |
: |
{{ $transaction->date_format($employee->joining_date) }} |
@php
$basic_salary = $payroll_item->basic_salary;
$overtime = $payroll_item->total_over_time_amount;
$allowances = $payroll_item->payroll_allowance_items_add->sum('amount');
$total_earning = $basic_salary + $overtime + $allowances;
$absent_deduction = $payroll_item->absent_deduction_amount;
$shortshift_deduction = $payroll_item->short_shift_deduction_amount;
$late_deduction = $payroll_item->late_deduction_amount;
$halfday_deduction = $payroll_item->halfday_deduction_amount;
$loan_deduction = $payroll_item->payroll_loan_items->sum('amount');
$advance_deduction = $payroll_item->payroll_advance_items->sum('amount');
$deductions = $payroll_item->payroll_allowance_items_less->sum('amount');
$total_deduction = $absent_deduction + $shortshift_deduction + $late_deduction + $halfday_deduction + $loan_deduction + $advance_deduction + $deductions;
@endphp
{{-- Earnings --}}
EARNINGS |
Basic Salary |
: |
{{$transaction->convert_money_format($basic_salary)}} |
Overtime Amount |
: |
{{$transaction->convert_money_format($overtime)}} |
@foreach($payroll_item->payroll_allowance_items_add as $allowance_item)
{{ $allowance_item->employee_allowance->allowance->name }} |
: |
{{$transaction->convert_money_format($allowance_item->amount)}} |
@endforeach
Total Earnings |
: |
{{ $transaction->convert_money_format($total_earning) }} |
|
{{-- Deductions --}}
DEDUCTION |
Absent Deduction |
: |
{{ $transaction->convert_money_format($absent_deduction) }} |
Short Shift Deduction |
: |
{{ $transaction->convert_money_format($shortshift_deduction) }} |
Late Deduction |
: |
{{ $transaction->convert_money_format($late_deduction) }} |
Halfday Deduction |
: |
{{ $transaction->convert_money_format($halfday_deduction) }} |
Loan Deduction |
: |
{{ $transaction->convert_money_format($loan_deduction) }} |
Advance Deduction |
: |
{{ $transaction->convert_money_format($advance_deduction) }} |
@foreach($payroll_item->payroll_allowance_items_less as $deduction_item)
{{ $deduction_item->employee_allowance->allowance->name }} |
: |
{{ $transaction->convert_money_format($deduction_item->amount) }} |
@endforeach
Total Deduction |
: |
{{ $transaction->convert_money_format($total_deduction) }} |
|
NET PAY ({{ config('settings.currency_symbol') }}) |
{{$transaction->convert_money_format($payroll_item->salary_amount)}} |
|
@endsection