@extends('layouts.master', ['title' => 'Leave Taken']) @section('style') @endsection @section('contents')

Leave Taken List

Approved Leave

Your Available Leave and LWOP means deduction from Salary.

Last Updated Attendance

{{$attandance ? date('jS F, Y', strtotime($attandance->created_at)) : '' }}

Total Approved Leave Taken

{{$attandance ? $attandance->approve_leave : '' }}

Total LWOP Leave Taken

{{$attandance ? $attandance->lwp_leave : '' }}
@forelse ($monthly_leaves as $month) @php $year_day = date('Y', strtotime($month->attendance_month)); $month_day = date('m', strtotime($month->attendance_month)); $days_in_month = cal_days_in_month(CAL_GREGORIAN, $month_day, $year_day); $gap_in_service = 0; $working_days = $days_in_month; if ($month->approve_leave < $month->lwp_leave) { $gap_in_service = $month->lwp_leave - $month->approve_leave; //get actual leave without wallet leave $working_days = $days_in_month - $gap_in_service; //calculate working days } @endphp @empty @endforelse
Month Year(Days In Month) Marked As Absent Working Days Approved Leave Leave Taken
{{ $month->attendance_month }} {{ $gap_in_service }} {{ $working_days }} {{ $month->approve_leave }} {{ $month->lwp_leave }}
No Record Found
@endsection