@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'] }} For The Month of {{ $common->getMonthName($payroll->month) }} - {{ $payroll->year }}


@foreach ($payroll->payroll_items as $payroll_items) @php $employee_name = $payroll_items->employee->name; $working_days = $payroll_items->total_work_day; $present_days = $payroll_items->total_present_day; $leave_days = $payroll_items->total_leave_days; $absent_days = $working_days - $present_days - $leave_days; $overtime = $payroll_items->total_over_time; $basic_salary = $payroll_items->basic_salary; $overtime_amount = $payroll_items->total_over_time_amount; $allowances_amount = $payroll_items->payroll_allowance_items_add->sum('amount'); $deductions_amount = $payroll_items->payroll_allowance_items_less->sum('amount'); $advances_amount = $payroll_items->payroll_advance_items->sum('amount'); $loans_amount = $payroll_items->payroll_loan_items->sum('amount'); $absent_deduction = $payroll_items->absent_deduction_amount + $payroll_items->late_deduction_amount + $payroll_items->halfday_deduction_amount; $short_shift_deduction = $payroll_items->short_shift_deduction_amount; $gross_salary_amount = $payroll_items->salary_amount; $total_working_days += $working_days; $total_present_days += $present_days; $total_leave_days += $leave_days; $total_absent_days += $absent_days; $total_overtime += $overtime; $total_basic_salary += $basic_salary; $total_overtime_amount += $overtime_amount; $total_allowances_amount += $allowances_amount; $total_deductions_amount += $deductions_amount; $total_advances_amount += $advances_amount; $total_loans_amount += $loans_amount; $total_absent_deduction += $absent_deduction; $total_short_shift_deduction += $short_shift_deduction; $total_gross_salary_amount += $gross_salary_amount; @endphp @endforeach
{{ __('lang.sno') }} {{ __('lang.employee') }} {{ __('lang.working_days') }} {{ __('lang.present_days') }} {{ __('lang.leave_days') }} {{ __('lang.absent_days') }} {{ __('lang.total_over_time') }} {{ __('lang.basic_salary') }} ({{ config('settings.currency_symbol') }}) {{ __('lang.total_over_time_amount') }} ({{ config('settings.currency_symbol') }}) {{ __('lang.allowances') }} ({{ config('settings.currency_symbol') }}) {{ __('lang.deductions') }} ({{ config('settings.currency_symbol') }}) {{ __('lang.salary_advances') }} ({{ config('settings.currency_symbol') }}) {{ __('lang.loan_deductions') }} ({{ config('settings.currency_symbol') }}) {{ __('lang.absent_deduction') }} ({{ config('settings.currency_symbol') }}) {{ __('lang.short_shift_deduction') }} ({{ config('settings.currency_symbol') }}) {{ __('lang.net_salary_amount') }} ({{ config('settings.currency_symbol') }})
{{ $loop->iteration }} {{ $employee_name }} {{ $working_days }} {{ $present_days }} {{ $leave_days }} {{ $absent_days }} {{ $common->min_to_hr_and_min($overtime) }} {{ $transaction->convert_money_format($basic_salary) }} {{ $transaction->convert_money_format($overtime_amount) }} {{ $transaction->convert_money_format($allowances_amount) }} ({{ $transaction->convert_money_format($deductions_amount) }}) ({{ $transaction->convert_money_format($advances_amount) }}) ({{ $transaction->convert_money_format($loans_amount) }}) ({{ $transaction->convert_money_format($absent_deduction) }}) ({{ $transaction->convert_money_format($short_shift_deduction) }}) {{ $transaction->convert_money_format($gross_salary_amount) }}
{{ __('lang.total') }} {{ $transaction->convert_money_format($total_basic_salary) }} {{ $transaction->convert_money_format($total_overtime_amount) }} {{ $transaction->convert_money_format($total_allowances_amount) }} ({{ $transaction->convert_money_format($total_deductions_amount) }}) ({{ $transaction->convert_money_format($total_advances_amount) }}) ({{ $transaction->convert_money_format($total_loans_amount) }}) ({{ $transaction->convert_money_format($total_absent_deduction) }}) ({{ $transaction->convert_money_format($total_short_shift_deduction) }}) {{ $transaction->convert_money_format($total_gross_salary_amount) }}

Generated By : {{ $payroll->createdby->name }} on {{ date('d-M-Y g:i A',strtotime($payroll->created_at)) }}

@endsection