@extends('admin.layout.master') @section('content') @section('custom_style') {{-- --}} @endsection

Employee Leave Balance

@include('payroll.includes.report_print_excel_button')
@if (count($leaves) > 0)
{!! $print['head'] !!} @include('payroll.report_header',['text_align'=>"text-center"])
@foreach ($leave_types as $type) @endforeach @foreach ($leave_types as $type) @endforeach @php $total_leave = $leave_types->sum('leave_count') @endphp
{{ $type->name }}Total
{{ $type->leave_count }}{{$total_leave}}
@foreach ($leave_types as $type) @endforeach {{-- --}} @php $sl = 1; @endphp @if (!empty($leaves)) @foreach ($leaves as $emp_id => $employee_leaves) @php $total_leave_balance= 0; @endphp @foreach ($leave_types as $type) @php $type_wise_taken_leave = $employee_leaves->where('leave_type_id',$type->id)->sum('leave_count'); $type_wise_balance = $type->leave_count - $type_wise_taken_leave; $total_leave_balance +=$type_wise_balance; @endphp @endforeach {{-- --}} @endforeach @endif
SL Emp Code Emp Name Designation{{ $type->name }}Total BalanceAction
{{ $sl++ }} {{ $employee_leaves->first()->empBasicInfo->emp_code }} {{ $employee_leaves->first()->empBasicInfo->emp_name }} {{ $employee_leaves->first()->empBasicInfo->fetch_designation->name }} {{$type_wise_balance}}{{$total_leave_balance}} Details
{{--
--}}
@else @if(request()->get('search') != null)

No Data Found

@endif @endif @endsection @section('script') {{-- --}} @endsection