@extends('layouts.app') @section('title','Attendance Administration') @section('content')<div class="space-y-6"><div><h1 class="text-2xl font-black">Attendance Administration</h1><p class="text-sm text-slate-500">Review attendance, correction requests, remote work, and lock finalized months.</p></div><form class="card flex flex-wrap gap-3 p-4" method="POST" action="{{ route('attendance.lock') }}">@csrf<input class="input" name="period" type="month" required><input class="input flex-1" name="notes" placeholder="Lock notes"><button class="btn btn-primary">Lock month</button></form><div class="card overflow-x-auto"><table class="w-full text-sm"><thead><tr><th class="p-3 text-left">User</th><th>Date</th><th>Status</th><th>Worked</th><th>Late</th><th>OT</th><th>Mode</th><th>Locked</th></tr></thead><tbody>@foreach($records as $x)<tr class="border-t"><td class="p-3">{{ $x->user->name }}</td><td>{{ $x->work_date }}</td><td>{{ $x->status }}</td><td>{{ $x->worked_minutes }}</td><td>{{ $x->late_minutes }}</td><td>{{ $x->overtime_minutes }}</td><td>{{ $x->work_mode }}</td><td>{{ $x->is_locked?'Yes':'No' }}</td></tr>@endforeach</tbody></table></div>{{ $records->links() }}</div>@endsection