Attendance
@if(! $today?->check_in)Not checked in
@elseif($today->check_out)Checked out
@elseif($today->break_started_at)On break
@else{{ $today->status === 'wfh' ? 'Working from home' : 'Checked in' }}@endif
In{{ $today?->check_in?->format('H:i') ?? '—' }}
Out{{ $today?->check_out?->format('H:i') ?? '—' }}
Worked{{ $today?->check_in ? $today->workedLabel() : '—' }}
Now {{ now()->format('H:i') }} · breaks {{ $today?->break_minutes ?? 0 }} min
@if(! $today?->check_in)
@elseif(! $today->check_out)
@endif
This week
Hours logged{{ $weekHours + 0 }} of {{ $me->weekly_hours }}
Leave left
{{ collect($balances)->filter(fn ($b) => $b['total'] > 0)->map(fn ($b) => ($b['left'] + 0).' '.strtolower(explode(' ', $b['type']->name)[0]))->implode(' · ') }}
Log today’s time
Announcements
@foreach($announcements as $a){{ $a->title }}@if($a->body) · {{ $a->body }}@endif@endforeach
@if($holiday)Next holiday · {{ $holiday->name }}, {{ $holiday->date->format('D j M') }}@endif
@foreach($birthdays as $b)🎂 {{ $b->name }} · birthday {{ $b->date_of_birth->format('j M') }}@endforeach
My tasks {{ $tasks->where('status', '!=', 'done')->count() }} open
Only tasks assigned to you
@forelse($tasks as $t)
@empty
No tasks assigned. Enjoy the calm.@endforelse
@endsection