@extends('layouts.app') @section('title','Intern Development') @section('content')<div class="space-y-6"><div><h1 class="text-2xl font-black">{{ $intern->user->name }} — Internship Development</h1><p class="text-sm text-slate-500">Mentor, learning plan, evaluations, completion and certificate.</p></div><div class="grid gap-6 lg:grid-cols-2"><form method="POST" action="{{ route('interns.learning',$intern) }}" class="card p-5">@csrf<h2 class="font-bold">Learning item</h2><input class="input mt-3 w-full" name="title" placeholder="Learning objective" required><textarea class="input mt-3 w-full" name="description" placeholder="Description"></textarea><input class="input mt-3" type="date" name="due_date"><button class="btn btn-primary mt-3">Add</button></form><form method="POST" action="{{ route('interns.evaluate',$intern) }}" class="card p-5">@csrf<h2 class="font-bold">Evaluation</h2><input type="hidden" name="evaluation_type" value="monthly"><input class="input mt-3" type="date" name="evaluation_date" value="{{ today()->format('Y-m-d') }}" required><div class="grid grid-cols-2 gap-2 mt-3">@foreach(['technical_score','communication_score','attendance_score','ownership_score'] as $s)<input class="input" type="number" min="0" max="100" name="{{ $s }}" placeholder="{{ str_replace('_',' ',$s) }}" required>@endforeach</div><button class="btn btn-primary mt-3">Save evaluation</button></form></div><div class="card p-5"><h2 class="font-bold">Learning plan</h2>@foreach($intern->learningItems as $x)<div class="border-b py-3"><strong>{{ $x->title }}</strong> <span class="text-xs text-slate-500">{{ $x->status }} · {{ $x->progress_percent }}%</span></div>@endforeach</div>@if(!$intern->certificate)<form method="POST" action="{{ route('interns.certificate',$intern) }}">@csrf<button class="btn btn-primary">Complete internship & issue certificate</button></form>@else<div class="card p-4">Certificate: {{ $intern->certificate->certificate_no }}</div>@endif</div>@endsection