<!DOCTYPE html>
<html lang="{{ app()->getLocale() }}">
<head>
    <meta charset="utf-8">
    <title>{{ __('exports.employee_profile.title', ['name' => $employee->full_name]) }}</title>
    <style>
        body { font-family: DejaVu Sans, sans-serif; font-size: 12px; color: #1e293b; }
        h1 { color: #1d4ed8; margin-bottom: 4px; }
        .muted { color: #64748b; }
        .grid { width: 100%; margin-top: 16px; }
        .grid td { padding: 6px 8px; vertical-align: top; }
        .label { font-weight: bold; width: 140px; }
        .badge { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #dbeafe; color: #1d4ed8; }
        .stats { margin-top: 20px; }
        .stats td { border: 1px solid #e2e8f0; text-align: center; padding: 10px; }
    </style>
</head>
<body>
    <h1>{{ $employee->full_name }}</h1>
    <p class="muted">#{{ $employee->employee_number }} · {{ config('hr.company_name') }}</p>

    <table class="grid">
        <tr><td class="label">@lang('exports.employee_profile.department')</td><td>{{ $employee->department?->name }}</td></tr>
        <tr><td class="label">@lang('exports.employee_profile.position')</td><td>{{ $employee->position?->name }}</td></tr>
        <tr><td class="label">@lang('exports.employee_profile.shift')</td><td>{{ $employee->shift?->name }}</td></tr>
        <tr><td class="label">@lang('exports.employee_profile.status')</td><td><span class="badge">{{ $employee->employment_status->label() }}</span></td></tr>
        <tr><td class="label">@lang('exports.employee_profile.phone')</td><td>{{ $employee->phone }}</td></tr>
        <tr><td class="label">@lang('exports.employee_profile.hire_date')</td><td>{{ $employee->hire_date?->format('Y-m-d') }}</td></tr>
        @if ($employee->termination_date)
            <tr><td class="label">@lang('exports.employee_profile.termination')</td><td>{{ $employee->termination_date->format('Y-m-d') }}</td></tr>
        @endif
    </table>

    <table class="stats grid">
        <tr>
            <td><strong>@lang('exports.employee_profile.vacation_taken')</strong><br>{{ $summary->vacationTaken }}</td>
            <td><strong>@lang('exports.employee_profile.remaining')</strong><br>{{ $summary->vacationRemaining }}</td>
            <td><strong>@lang('exports.employee_profile.sick_leaves')</strong><br>{{ $summary->sickLeaveCount }}</td>
            <td><strong>@lang('exports.employee_profile.reports')</strong><br>{{ $summary->reportsCount }}</td>
        </tr>
    </table>
</body>
</html>
