@php $year = explode('-', $topsheetInfo->month_year); $yearBn = $numto->bnNum($year[0]); $monthBn = $numto->bnMonth($year[1]); @endphp @extends('master') @section('title', 'বেতন বিল টপশিট') @section('breadcrumbMainTitle', 'বেতন বিল টপশিট') @section('content')
ক্র/নং | নাম ও পদবি | @foreach ($bhataHeaderList as $header){{ $header->code_details->code_title }} | @endforeachমোট বেতন ও ভাতাদি | @foreach ($kortonHeaderList as $header){{ $header->code_details->code_title }} | @endforeachট্যাক্স- ১০% | মোট কর্তন | নীট বেতন পরিশোধ |
---|---|---|---|---|---|---|---|
{{ $numto->BnNum($loop->iteration) }} | {{ $data->employee->employee_name . ' , ' . $data->employee->designation->designation_name }} | @foreach ($bhataHeaderList as $header)@php $allowanceArray = json_decode($data->allowances, true); foreach ($allowanceArray as $item) { if ( isset($item['code_id']) && $item['code_id'] === $header->code_id ) { if (isset($item['allowance_amount'])) { echo $item['allowance_amount']; } else { echo 0; } break; // Exit the loop once found } } @endphp | @endforeach{{ $data->allowance_total }} | @foreach ($kortonHeaderList as $header)@php $kortonArray = json_decode($data->deductions, true); foreach ($kortonArray as $item) { if ( isset($item['deduction_type_id']) && $item['deduction_type_id'] === $header->code_id ) { if (isset($item['deduction_amount'])) { echo $item['deduction_amount']; } else { echo 0; } break; // Exit the loop once found } } @endphp | @endforeach{{ $data->deduction_total }} | {{ $data->net_salary }} |