@extends('layouts.master') @section('content')
Employee | @for ($day = 1; $day <= $days_in_month; $day++){{$day}} | @endfor|
---|---|---|
|
@for ($day = 1; $day <= $days_in_month; $day++)
@php
$currentMonth = request()->month ?? \Carbon\Carbon::now()->month;
$year = request()->year ?? \Carbon\Carbon::now()->year;
$attendance = $employee->attendance()
->whereDay('created_at', $day)
->whereMonth('created_at', $currentMonth)
->whereYear('created_at', $year)
->first();
@endphp
@if (!empty($attendance->checkin) && !empty($attendance->checkout))
@else | @endif @endfor |