@extends('layouts.layout') @section('content')
@if(count($leaveprev)>0)

@php $si=0; @endphp @if($teamleaverequest!="" && count($teamleaverequest)>0) @foreach($teamleaverequest as $teamleaverequestlist) @php $created1=date_format($teamleaverequestlist->CREATED_AT,"d-m-Y"); $fromdate1=date_format($teamleaverequestlist->FROM_DATE,"d-m-Y"); $si++; @endphp @endforeach @endif
Si Employee Name Employee ID Applied on Leave Date Reason # of days Status
{{$si}} {{$teamleaverequestlist->name}} {{$teamleaverequestlist->username}} {{$created1}} {{$fromdate1}} @if($teamleaverequestlist->OF_DAYES>1)
to

Warning: Undefined variable $teamleaverequestlist in C:\xampp\htdocs\kalimark\resources\views\leaves\leaves.blade.php on line 65

Warning: Attempt to read property "TO_DATE" on null in C:\xampp\htdocs\kalimark\resources\views\leaves\leaves.blade.php on line 65
@endif
{{$teamleaverequestlist->REASON}} @if($teamleaverequestlist->OF_DAYES==0.5) 1/2 day @else {{$teamleaverequestlist->OF_DAYES}} @endif @if($teamleaverequestlist->STATUS==1) Pending @elseif($teamleaverequestlist->STATUS==2) Cancelled @elseif($teamleaverequestlist->STATUS==3) Approved @elseif($teamleaverequestlist->STATUS==4) Disapproved @elseif($teamleaverequestlist->STATUS==5) Pull back @endif @if($teamleaverequestlist->STATUS=="1") @elseif($teamleaverequestlist->STATUS=="3") @endif
@php $siemp=0; @endphp @if($myteam!="" && count($myteam)>0) @foreach($myteam as $myteamlist) @php $siemp++; $total_credit=$myteamlist->total_credit; if(!$total_credit) { $total_credit=0; } $earned_leaves=$myteamlist->earned_leaves; if(!$earned_leaves) { $earned_leaves=0; } $balance=$total_credit-$earned_leaves; @endphp @endforeach @endif
Si Employee id Employee name Balance Credit
{{$myteamlist->username}} {{$myteamlist->name}} {{$balance}}

Leave Request


@endif
@if($myleaverequest!="" && count($myleaverequest)>0) @foreach($myleaverequest as $myleaverequestlist) @php $created=date_format($myleaverequestlist->CREATED_AT,"d-m-Y"); $fromdate=date_format($myleaverequestlist->FROM_DATE,"d-m-Y"); if($myleaverequestlist->TO_DATE!= NULL) $todate=date_format($myleaverequestlist->TO_DATE,"d-m-Y"); else $todate=''; @endphp @endforeach @endif
Applied on Leave Date # of days Permission Time Status
{{$created}} {{$fromdate}} @if($myleaverequestlist->OF_DAYES>1)
@if($todate!="")
to
{{$todate}} @endif @endif
@if($myleaverequestlist->OF_DAYES==0.5) 1/2 day - @if($myleaverequestlist->LD_DURATION_TYPE==2) F.N @else A.N @endif @else {{$myleaverequestlist->OF_DAYES}} @endif @if($myleaverequestlist->PER_ST_TIME!="" &&$myleaverequestlist->PER_END_TIME!="") {{$myleaverequestlist->PER_ST_TIME}} To {{$myleaverequestlist->PER_END_TIME}} @else --- @endif Pending Cancelled Approved Disapproved Pull back @if($myleaverequestlist->STATUS==1) @endif

Leave Request


@php $earned_leavesmy=0; $total_creditmy=0; if($mybalance!="" && count($mybalance)>0) { $earned_leavesmy=$mybalance[0]->earned_leaves; $creditsmy=$mybalance[0]->total_credit; } $balancemy=$total_creditmy-$earned_leavesmy; @endphp

@endsection