@extends('admin.layouts.form') @section('content')
Employee ID | Name | Designation | Department | Date Of Joining | CL | SL | EL | Others |
---|---|---|---|---|---|---|---|---|
{!! $result->attendance_id !!} | {!! $result->user->name !!} | {!! $result->designation !!} | {!! $result->department !!} | {!! $result->date_of_joining !!} | {!! $result->getRemainingLeaveForCurrentYear()['casual_leave']['balance'] !!} | {!! $result->getRemainingLeaveForCurrentYear()['sick_leave']['balance'] !!} | {!! $result->getRemainingLeaveForCurrentYear()['earned_leave']['balance'] !!} | @php if($result->gender == 'Male'){ $total = $result->getRemainingLeaveForCurrentYear()['paternal_leave_for_first_child']['balance']+$result->getRemainingLeaveForCurrentYear()['paternal_leave_for_second_child']['balance']; echo $total; }else{ $total = $result->getRemainingLeaveForCurrentYear()['maternity_leave_for_first_child']['balance'] + $result->getRemainingLeaveForCurrentYear()['maternity_leave_for_second_child']['balance']; echo $total; } @endphp |