@extends('portal.layout.app') @section('content') @php $header = $data['header']; unset($header[0]); unset($header[1]); unset($header[2]); $header = array_values($header); @endphp
HR Services / Attendance & Leave / Individual Leave Quota
Employee Individual Leave Quota
@foreach($data['header'] as $key=>$value) @endforeach() @php $data=$data['data']; $data = (object)$data; @endphp @if(count($data->data) > 0) @foreach($data->data as $key=>$value) @php $value = (object)$value; $emp_id = $value->emp_id; unset($value->attendance_record); unset($value->emp_id); unset($value->fdate); $total_leaves = 0; @endphp @foreach($value as $info=>$index) @if($info == 'name') @else @if($info != 'empcode') @php $total_leaves += $index; @endphp @endif @endif @endforeach() @php $total_leaves = 0; @endphp @endforeach() @else @endif
{{$value}} Total
{{$index}}{{$index}}{{$total_leaves}}
No Data Found
@php array_unshift($header,'Quota Year'); @endphp @endsection @section('scripts') @endsection