@extends('admin.layout.master') @section('content')
{{__('obs.bonus')}} {{__('obs.report')}}
@if(count($bonus_info) >0) @include('payroll.includes.printAndExcel') @endif
{{--
--}}
@if(count($bonus_info) >0)

{{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}} @endif @endforeach @endif For The Year Of @if($print_month) {{ carbon()->parse($print_month)->format("F")}} {{"-"}} @endif {{carbon()->parse($print_month)->format("Y")}}
{{-- --}} {{-- --}} @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 @php $total_bonus_amount = 0;$total_bank_amount = 0;$total_cash_amount = 0;$total_basic = 0;$total_gross =$total_half_bonus_amount= 0; $i=1; $j=1; @endphp @foreach($bonus_info as $bonus_val) {{-- @dd($bonus_val->empBasicInfo) --}} {{-- --}} @if(!empty($_GET['bonus_type_filter']) && $_GET['bonus_type_filter']==1) @else @endif @php($i++) @endforeach @if(!empty($bonus_info)) @endif
{{__('obs.sl')}}# {{__('obs.name')}} {{__('obs.design')}} {{__('obs.station')}}JoiningWorking Month{{__('obs.basic')}} {{__('obs.salary')}}{{__('obs.leave')}} {{__('obs.days')}} {{__('obs.salary')}}{{__('obs.half')}} {{__('obs.bonus')}}{{__('obs.full')}} {{__('obs.bonus')}}{{__('obs.bonus')}}{{__('obs.bank')}} {{__('obs.net')}} {{__('obs.payable')}} {{__('obs.note')}} {{__('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 @php $basic_salary = $bonus_val->basic ? $bonus_val->basic : $bonus_val->empBasicInfo->basic_salary; $total_basic += $basic_salary; @endphp {{number_format($basic_salary)}} {{$bonus_val->leave_days}} @if(!empty($_GET['bonus_type_filter']) && $_GET['bonus_type_filter']==3) {{number_format($half_bonus_amount)}} @endif {{number_format($bonus_amount)}} {{number_format($bank_amount)}} {{number_format($cash_amount)}} {{$bonus_val->note}}  
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')
@else @if(request()->get('search') !=null)

{{__('obs.no')}} {{__('obs.data')}} {{__('obs.found')}}

@endif @endif
@endsection @section('script') @endsection