@extends('admin.layout.master') @section('content') @php use App\Models\Payroll\Common\Settings\CommonSettingsTypes; @endphp
@if (count($errors) > 0)
@endif

{{__('obs.daily_salary')}}

@if(count($salary_info) >0)
@include('payroll.includes.printAndExcel')
@endif
@if(count($salary_info) >0)
@csrf @php $total_employee = count($salary_info); $i=0; @endphp @php $grand_total_gross = 0; $grand_total_basic = 0; $grand_net_payable = 0; $grand_total_salary = 0; $grand_advance_total = 0; $total_add_deduct_amount = 0; $total_deduction_amount = 0; $grand_loan_total = 0; $grand_total_absent_amount = 0; $grand_rocket_paid = 0; @endphp @foreach (collect($salary_info)->chunk($salary_report_design->per_page_employee) as $chunked_salary ) @php $total_employee -=count($chunked_salary); @endphp

{{$salary_report_design->is_show_store_name ==1 ? store_info()->name_eng : null}}

@if(!empty($emp_department)){{$emp_department->name}}@endif
Daily Salary Sheet @if(!empty($end_date)){{date('F\'Y',strtotime($end_date))}}@endif
@php $total_col_span = '10'; @endphp @if($salary_report_design->card_no==1) @endif @if($salary_report_design->emp_no==1) @endif @if($salary_report_design->joining_date==1) @endif @if(!empty($all_other_allowance)) @foreach($all_other_allowance as $data) @php $other_allowance_count++; $other_allowance_amount = calculate_other_allowance($data,$val['schedule_id'],$val['other_allowance'],$total_absent,$val['present'],$val['leave'],$val['total_night_shift']); @endphp @php $salary_other_allowance[$data->id][] = $other_allowance_amount; @endphp @endforeach @endif @if($salary_report_design->mobile_no == 1) @endif @if(!empty($salary_info)) @php $k = 0; //Page Total $page_total_basic = 0; $page_total_gross = 0; $page_total_salary = 0; $page_total_loan_amount = 0; $page_total_advance_amount = 0; $page_total_net_payable = 0; @endphp @foreach($chunked_salary as $val) @php ++$i; $gross_salary = 0;$basic_salary = 0; $per_day_salary = 0; $ot_hour_amount = 0; $total_absent = 0; $ot_hour_salary = 0; $ot_day_salary = 0; $absent_amount = 0; @endphp @if($salary_report_design->card_no==1) @endif @if($salary_report_design->emp_no==1) @endif @if($salary_report_design->joining_date==1) @endif @php $gross_salary = $val['gross']; @endphp {{-- DN/PN --}} @if($salary_report_design->mobile_no == 1) @endif @endforeach {{-- Page Total Start--}} {{-- @include('payroll.salary.salary_page_total') --}} {{-- Page Total End--}} @endif {{-- Grand Total Salary Start--}} @if($total_employee == 0 ) {{-- @include('payroll.salary.salary_grand_total') --}} @endif {{-- Grand Total Salary End--}}
#SL{{__('obs.card')}}{{__('obs.code')}}{{__('obs.name')}} {{__('obs.designation')}}{{__('obs.joining')}}Work Days Rate {{__('obs.total_salary')}} {{__('obs.add')}}/{{__('obs.deduct')}} @php $total_other_allowance_amount += $other_allowance_amount; @endphp {{abs($other_allowance_amount)}} {{__('obs.net_payable')}}{{__('obs.mobile_number')}}{{__('obs.signature')}}
{{$i}}{{$val['emp_card']}}{{$val['code']}} {{$val['name'] }} {{$val['designation']}}{{$val['joining_date']}}{{$val['present']}}{{number_format($gross_salary)}} @php $total_salary = $gross_salary; $grand_total_salary += $total_salary; @endphp {{number_format($total_salary)}} @php $add_deduct_amount=$val['add_deduct_amount']; $total_add_deduct_amount += $add_deduct_amount; @endphp {{number_format(abs($add_deduct_amount))}} @php $net_payable = $total_salary + $add_deduct_amount; $page_total_net_payable += $net_payable; $grand_net_payable += $net_payable; @endphp {{number_format($net_payable)}} {{$val['mobile_no']}} 
@include('payroll.signature')
@endforeach @if(count($salary_info) >0)
@endif
@endif @endsection