@extends('layouts.app')

@section('title', 'Asignacion - Solicitante')

@section('content')
    <div class="row justify-content-center">
        <div class="col-12 col-md-8 col-lg-6">
            <div class="card card-soft border-0">
                <div class="card-body p-4 p-md-5">
                    <h1 class="h4 mb-2">Cedula del Solicitante</h1>
                    <p class="text-muted-brand mb-4">Ingrese la cedula para continuar con la asignacion.</p>

                    <form action="{{ route('asignacion.solicitante.validar') }}" method="POST">
                        @csrf

                        <div class="mb-3">
                            <label for="cedula" class="form-label">Cedula</label>
                            <input
                                type="text"
                                id="cedula"
                                name="cedula"
                                class="form-control @error('cedula') is-invalid @enderror"
                                value="{{ old('cedula') }}"
                                maxlength="20"
                                autocomplete="off"
                                autofocus
                                required
                            >
                            @error('cedula')
                                <div class="invalid-feedback">{{ $message }}</div>
                            @enderror
                        </div>

                        <div class="d-flex justify-content-between align-items-center gap-2">
                            <a href="{{ route('dashboard') }}" class="btn btn-outline-secondary">Cancelar</a>
                            <button type="submit" class="btn btn-brand">Siguiente</button>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
@endsection
