@extends('layouts.app') @section('title','Intern Portal') @section('content')<p class="text-sm font-semibold text-violet-600">DEDICATED INTERN PORTAL</p><h1 class="text-3xl font-black">{{ auth()->user()->name }}</h1><p class="mt-1 text-slate-500">Mentorship, learning goals, assigned project work and stipend visibility are separated from employee payroll.</p><div class="mt-6 grid gap-4 lg:grid-cols-3"><div class="card p-5"><p class="text-sm text-slate-500">Mentor</p><p class="mt-2 font-bold">{{ optional(\App\Models\User::find($intern?->mentor_user_id))->name ?? 'Not assigned' }}</p></div><div class="card p-5"><p class="text-sm text-slate-500">Internship ends</p><p class="mt-2 font-bold">{{ optional($intern?->end_date)->format('d M Y') ?? 'Open-ended' }}</p></div><div class="card p-5"><p class="text-sm text-slate-500">Stipend</p><p class="mt-2 text-2xl font-black">PKR {{ number_format((float)($intern?->stipend_amount ?? 0)) }}</p></div></div><div class="mt-6 card p-6"><h2 class="font-bold">Learning goals</h2><p class="mt-2 text-sm text-slate-600">{{ $intern?->learning_goals ?: 'No learning goals assigned yet.' }}</p></div><div class="mt-6 card overflow-hidden"><div class="border-b p-5 font-bold">Assigned work</div>@forelse($tasks as $task)<div class="flex items-center justify-between border-b px-5 py-4 last:border-0"><p class="font-semibold">{{ $task->title }}</p><span class="badge">{{ $task->status }}</span></div>@empty<div class="p-5 text-sm text-slate-500">No assigned tasks.</div>@endforelse</div>@endsection
