@extends('layouts.team') @section('title', 'Today') @section('content')
{{ now()->format('l, j F') }}

Good {{ now()->hour < 12 ? 'morning' : (now()->hour < 17 ? 'afternoon' : 'evening') }}, {{ explode(' ', $me->name)[0] }}.

Log timeApply for leave

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)
@csrf
@elseif(! $today->check_out)
@csrf
@csrf
@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)
@csrf @method('PATCH')
{{ $t->title }}{{ $t->project->name }} · {{ $t->project->client->company }} @if($t->status !== 'done')
@csrf @method('PATCH')
@endif @if($t->status === 'done')Done@elseif($t->due_date) $t->due_date->isPast(), 'b-warn' => $t->due_date->isToday()])>{{ $t->due_date->isToday() ? 'Today' : $t->due_date->format('j M') }}@endif
@emptyNo tasks assigned. Enjoy the calm.@endforelse
@endsection