@extends('layouts.admin')
@section('title', 'Submissão #' . $submission->id)
@section('content')
    <a href="{{ route('admin.submissions.index') }}" class="btn btn-sm btn-outline" style="margin-bottom: 1rem;">←
        Voltar</a>

    <div class="page-header">
        <h1>Submissão #{{ $submission->id }}</h1>
        <p class="subtitle">@statusBadge($submission->status) · {{ $submission->created_at->format('d/m/Y H:i') }}</p>
        <div style="margin-top: 1rem;">
            <a href="{{ route('admin.submissions.pdf', $submission) }}" target="_blank" class="btn btn-sm btn-outline">
                📄 Gerar PDF
            </a>
        </div>
    </div>

    <div class="card">
        <h2>Dados</h2>
        <div class="detail-grid">
            <div class="detail-item">
                <div class="detail-label">Nome completo</div>
                <div class="detail-value">{{ $submission->nome_completo }}</div>
            </div>
            <div class="detail-item">
                <div class="detail-label">NIF</div>
                <div class="detail-value">{{ $submission->nif }}</div>
            </div>
            <div class="detail-item">
                <div class="detail-label">Data nascimento</div>
                <div class="detail-value">{{ $submission->data_nascimento->format('d/m/Y') }}</div>
            </div>
            <div class="detail-item">
                <div class="detail-label">Estado civil</div>
                <div class="detail-value">{{ $submission->estado_civil_label }}</div>
            </div>
            <div class="detail-item">
                <div class="detail-label">N.º dependentes</div>
                <div class="detail-value">{{ $submission->nr_dependentes }}</div>
            </div>
            <div class="detail-item full">
                <div class="detail-label">Morada</div>
                <div class="detail-value">{{ $submission->morada_final }}</div>
            </div>
            <div class="detail-item">
                <div class="detail-label">Habilitações</div>
                <div class="detail-value">{{ $submission->habilitacoes_label }}</div>
            </div>
        </div>
    </div>
@endsection