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

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

@if(count($salaries) >0)
@include('payroll.includes.printAndExcel')
@endif
@if(count($salaries) >0) @php $total_employee = count($salaries); $grand_total_net_payable = 0; $i=1; @endphp
@foreach (collect($salaries)->chunk(25) as $chunk_data) @php $total_employee -=count($chunk_data); @endphp

{{__('obs.net_payable_report')}} ({{carbon()->create($date)->format('F-Y')}})

{{$department ? $department->name : null}}

@foreach ($chunk_data as $data) @endforeach @if($total_employee == 0) @endif
{{__('obs.sl')}} {{__('obs.code')}} {{__('obs.name')}} {{__('obs.designation')}} {{__('obs.net_payable')}} {{__('obs.advance')}} {{__('obs.food')}} {{__('obs.payable')}}
{{$i++}} {{$data->get_emp_info->emp_code}} {{$data->get_emp_info->emp_name}} {{$data->get_emp_info->fetch_designation->name}} {{number_format($data->net_amount)}} @php $grand_total_net_payable +=$data->net_amount; @endphp
{{__('obs.grand_total')}} {{number_format($grand_total_net_payable)}}
@endforeach
@else @if(request()->get('search') !=null)

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

@endif @endif @endsection @section('script') @include('payroll.hrm_script') @endsection