<?php require __DIR__ . '/../layouts/header.php'; ?>

<div class="d-flex justify-content-between align-items-center mb-4">
    <div>
        <h1 class="fw-bold mb-0"><?= e(trans('upload_camera_ready')) ?></h1>
        <div class="text-muted"><?= e((string) $submission['submission_no']) ?> — <?= e((string) $submission['title']) ?></div>
    </div>
    <a href="<?= e(base_path('submissions/show?id=' . (int) $submission['id'])) ?>" class="btn btn-outline-secondary rounded-3"><?= e(trans('back')) ?></a>
</div>

<div class="card border-0 shadow-sm rounded-4">
    <div class="card-body p-4">
        <form method="post" action="<?= e(base_path('submissions/camera-ready?id=' . (int) $submission['id'])) ?>" enctype="multipart/form-data">
            <input type="hidden" name="_csrf" value="<?= e(csrf_token()) ?>">

            <div class="mb-3">
                <label class="form-label ec-required"><?= e(trans('camera_ready_file')) ?></label>
                <input type="file" name="camera_ready_file" class="form-control rounded-3" required>
                <div class="form-text"><?= e(trans('allowed_files')) ?></div>
            </div>

            <div class="mb-4">
                <label class="form-label"><?= e(trans('doi')) ?></label>
                <input type="text" name="doi" class="form-control rounded-3" value="<?= e((string) ($proceeding['doi'] ?? '')) ?>">
            </div>

            <button type="submit" class="btn btn-success rounded-3"><?= e(trans('upload_camera_ready')) ?></button>
        </form>
    </div>
</div>

<?php require __DIR__ . '/../layouts/footer.php'; ?>
