@extends('payroll.employee_frontend.layouts.employee') @section('custom_style') @endsection @section('content')
{{ __('obs.employee') }} {{ __('obs.payslip') }}
@include('payroll.employee_frontend.report_print_excel_button', ['excel' => false])
@csrf
@if (count($generated_info) > 0)
@foreach (collect($generated_info)->chunk(1) as $chunked_salary ) @foreach ($chunked_salary as $salary )

{{ store_info()->name_eng ?? null }}

{{ store_info()->address_eng ?? null }}

Email:
{{ store_info()->email ?? null }}

EMPLOYEE SALARY PAYSLIP

: {{$salary->get_emp_info->emp_name ?? null}}
: {{$salary->fetch_department->name ?? null}}
: {{$start_date}} To {{$end_date}}
: {{$salary->get_emp_info->emp_code ?? null}}
: {{$salary->get_emp_info->fetch_designation->name ?? null}}
{{--
:
--}}
Earnings
@php $total_earnings = $salary->basic_salary; @endphp @foreach($generated_allowance_info as $generated_allowance) {{-- @dd($generated_allowance); --}} @php $allowance_amount = $generated_allowance->allowance_amount >0 ? $generated_allowance->allowance_amount : 0; $total_earnings += $allowance_amount; @endphp @endforeach
Basic Salary
{{number_format($salary->basic_salary)}}
{{$generated_allowance->allowance_info->name ?? null}} {{abs($allowance_amount)}}
Gross Earnings ৳ {{ number_format($total_earnings)}}
Deductions
@php $absent_amount = $salary->absent_amount + $salary->missing_salary ; $total_deduction = $salary->loan_amount + $salary->advance_amount + $absent_amount + $salary->late_amount + $salary->add_deduct_amount; @endphp @foreach($generated_other_deduct_allowances as $generated_other_deduct_allowance) @php $other_allowance_amount = $generated_other_deduct_allowance->allowance_amount >0 ? $generated_allowance->allowance_amount : 0; $total_deduction += $other_allowance_amount; @endphp @endforeach
{{$generated_other_deduct_allowance->allowance_info->name ?? null}} {{abs($other_allowance_amount)}}
Advance
{{number_format($salary->advance_amount)}}
Loan
{{number_format($salary->loan_amount)}}
Absence
{{number_format($absent_amount)}}
Late Deduction
{{number_format($salary->late_amount)}}
Other Deductions
{{number_format($salary->add_deduct_amount)}}
Total Deductions ৳ {{number_format($total_deduction)}}

Net Pay :

৳ {{number_format($salary->net_amount)}}

{{ convert_number($salary->net_amount);}}
Payment Method: Bank Transfer
{{$salary->emp_otherInfo->bank_name ?? null}}
{{$salary->emp_otherInfo->bank_branch ?? null}}
{{$salary->emp_otherInfo->bank_acc_name ?? null}}
{{$salary->emp_otherInfo->bank_acc_no ?? null}}
@endforeach
@endforeach
@endif
@endsection @section('script') {{-- table to excel --}} @endsection