@extends('admin.layout.master') @section('content')
@if (count($errors) > 0)
@endif

{{__('obs.bonus')}} {{__('obs.report')}}

@if(count($bonus_info) >0)
@include('payroll.includes.printAndExcel')
@endif
{{--

{{__('obs.bonus')}} {{__('obs.report')}}

--}} {{-- --}} {{-- --}} @if(!empty($_GET['bonus_type_filter']) && $_GET['bonus_type_filter']==1) @else @if(!empty($_GET['bonus_type_filter']) && $_GET['bonus_type_filter']==3) @else @endif @endif @if(!empty($bonus_info)) @php($i=1)@php($j=1) @foreach($bonus_info as $bonus_val) {{-- @dd($bonus_val->empBasicInfo) --}} {{-- --}} @if(!empty($_GET['bonus_type_filter']) && $_GET['bonus_type_filter']==1) @php($i++) @endforeach @endif @if(!empty($bonus_info)) @endif
{{--

{{__('obs.mitali')}} {{__('obs.traders')}}

--}}

{{store_info()->name_eng}}

@if(!empty($_GET['emp_department'])) {{\App\Models\Payroll\Settings\PayDepartments::find($_GET['emp_department'])->name}}@endif
@if(!empty($_GET['bonus_type_filter'])) @foreach($bonus_types as $b_type) @if($b_type->id==$_GET['bonus_type_filter']) {{$b_type->title}} (April) @endif @endforeach @endif FOR THE YEAR OF 2022
{{__('obs.sl')}}# {{__('obs.name')}} {{__('obs.design')}} {{__('obs.station')}}{{__('obs.joining')}}{{__('obs.working')}} {{__('obs.month')}}{{__('obs.basic')}} {{__('obs.salary')}}{{__('obs.leave')}} {{__('obs.day')}} {{__('obs.salary')}}{{__('obs.half')}} {{__('obs.bonus')}}{{__('obs.full')}} {{__('obs.bonus')}}{{__('obs.bonus')}}{{__('obs.bank')}} {{__('obs.netpayable')}} {{__('obs.signature')}}
{{$j++}} {{$bonus_val->empBasicInfo->emp_name}} {{$bonus_val->empBasicInfo->fetch_designation->name}} {{$bonus_val->empBasicInfo->station_vehicle_no}} {{$bonus_val->empBasicInfo->joining_date}} {{ $emp_job_duration = $diff}} Months {{number_format($basic_salary)}}{{$emp_job_duration}} @else @if(!empty($_GET['bonus_type_filter']) && $_GET['bonus_type_filter']==3) {{number_format($half_bonus_amount)}} @endif @endif {{number_format($bonus_amount)}} {{number_format($bank_amount)}} {{number_format($cash_amount)}}  
Total {{number_format($total_basic)}} @if(!empty($_GET['bonus_type_filter']) && $_GET['bonus_type_filter']==3){{round($total_half_bonus_amount)}}@else   @endif {{number_format($total_bonus_amount)}} {{number_format($total_bank_amount)}} {{number_format($total_cash_amount)}}  
@include('payroll.signature')
@endsection