@extends('layouts.app') @section('title', 'Holidays') @section('content')
| MON | TUE | WED | THU | FRI | SAT | SUN |
|---|---|---|---|---|---|---|
|
{{ $day->day }} @if($absents->count()!=0) {{ $absents->count() }}
@if($absents->count()==1) Person @else People @endif
Absent
@endif
@foreach($absents as $absent)
@if($absent->type=='full')
@php $absentTime = '('.date('d M, Y', strtotime($absent->from_date)).' - '. date('d M, Y', strtotime($absent->to_date)) .')'; @endphp
@else
@php $absentTime = '('. date('d M, Y', strtotime($absent->from_date)) .' (Half Day - '. strtoupper($absent->time) .')'; @endphp
@endif
|
@endforeach