@extends('app-new') @push('head-script') @endpush @push('content-header') @endpush @section('content')
@foreach ($months as $month) @endforeach @forelse ($employees as $employee) @php $rowCount = max($leaveTypes->count(), 1); @endphp @forelse ($leaveTypes as $index => $leaveType) @if ($index === 0) @endif @foreach ($months as $month) @php $value = $consumption[$employee->id][$month][$leaveType->id] ?? 0; @endphp @endforeach @empty @foreach ($months as $month) @endforeach @endforelse @empty @endforelse
Employee Date of Joining Leave Type{{ \Carbon\Carbon::parse($month . '-01')->format('M') }}
{{ ucwords($employee->name) }}
{{ $employee->employee_code }}
{{ $employee->date_of_joining ? \Carbon\Carbon::parse($employee->date_of_joining)->format('d M Y') : '-' }} {{ ucwords($leaveType->name) }} {{ $value > 0 ? rtrim(rtrim(number_format($value, 2), '0'), '.') : '-' }}
{{ ucwords($employee->name) }}
{{ $employee->employee_code }}
{{ $employee->date_of_joining ? \Carbon\Carbon::parse($employee->date_of_joining)->format('d M Y') : '-' }} --
No records found
{{ $employees->links('pagination::bootstrap-4') }}
@endsection @push('footer-script') @endpush