@extends('admin.layout.master') @section('content')

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

@include('payroll.includes.printAndExcel')
@if(count($employees) >0)
@foreach ($employees->chunk(45) as $chunk_data)

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

{{$chunk_data->first()->fetch_department->name}}

@if (!empty($allowances)) @foreach($allowances as $allowance) @endforeach @endif @php $sl =1; @endphp @foreach ($chunk_data as $employee) @foreach ($allowances as $allowance) @endforeach @endforeach
{{__('obs.sl')}} {{__('obs.name')}} {{__('obs.code')}} {{__('obs.designation')}} Basic{{$allowance->name}}{{__('obs.gross')}} {{__('obs.bank_amount')}}
{{$sl++}} {{$employee->emp_name}} {{$employee->emp_code}} {{ $employee->fetch_designation ? $employee->fetch_designation->name : null}} {{number_format($employee->basic_salary)}} @if(!empty($employee->fetch_allowance_data) && count($employee->fetch_allowance_data)>0) @foreach($employee->fetch_allowance_data as $key=>$value) @if($allowance->id == $value->allowance_id) {{number_format($value->amount)}} @endif @endforeach @endif {{number_format($employee->gross_salary)}} {{$employee->fetch_other_info_data ? number_format($employee->fetch_other_info_data->bank_amount) : null}}
@endforeach
@else @if(request()->get('search') !=null)

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

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