@extends('layouts.app') @section('title','Employee Portal') @section('content')<p class="text-sm font-semibold text-blue-600">EMPLOYEE PORTAL</p><h1 class="text-3xl font-black">Welcome, {{ auth()->user()->name }}</h1><div class="mt-6 grid gap-4 lg:grid-cols-3"><div class="card p-5"><p class="text-sm text-slate-500">Today attendance</p><p class="mt-2 text-xl font-bold">{{ $attendance?ucfirst($attendance->status):'Not checked in' }}</p><a class="mt-4 btn btn-primary" href="{{ route('attendance.index') }}">Open attendance</a></div><div class="card p-5"><p class="text-sm text-slate-500">Active projects</p><p class="mt-2 text-3xl font-black">{{ $projects->count() }}</p></div><div class="card p-5"><p class="text-sm text-slate-500">Open tasks</p><p class="mt-2 text-3xl font-black">{{ $tasks->count() }}</p></div></div><div class="mt-6 card overflow-hidden"><div class="border-b p-5 font-bold">My priority work</div>@forelse($tasks as $task)<div class="flex items-center justify-between border-b px-5 py-4 last:border-0"><div><p class="font-semibold">{{ $task->title }}</p><p class="text-xs text-slate-500">Due {{ optional($task->due_date)->format('d M Y') }}</p></div><span class="badge">{{ $task->status }}</span></div>@empty<div class="p-5 text-sm text-slate-500">No open tasks.</div>@endforelse</div>@endsection
