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

Leave Encash Report

@include('payroll.includes.printAndExcel')
@if(count($employees) >0) @php $sl =1; @endphp
@foreach ($employees->chunk(25) as $chunk_data)

Annual Leave Allowance ({{$leave_type_name}})

{{$chunk_data->first()->department}}

{{-- --}} @foreach ($chunk_data as $employee) @endforeach
#SL Code Name Designation Join Date Basic Leave Net PayableSignature
{{$sl++}} {{$employee->code}} {{$employee->name}} {{ $employee->designation}} {{$employee->joining_date}} {{number_format($employee->basic_salary)}} {{ $employee->leave_days}} {{number_format($employee->amount)}}
Total {{number_format($employees->sum('basic_salary'))}} {{number_format($employees->sum('amount'))}}
@endforeach
@else @if(request()->get('search') !=null)

No Data Found

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