- integrate spatie/icalendar-generator for candidate & panelist .ics invitations (RSVP & 15m alerts)
- add StoreInterviewRequest, ScheduleInterviewDto, and invitation/reminder queued actions
- add migration for job_title, round, description, and reminder_sent_at on interviews table
- style datetime-local picker indicators to pure white on dark input backgrounds
- support button loading spinners with :showLoader="true" and loadingText
- auto-open schedule drawer on validation failure with inline @error alerts and old() bindings
226 lines
8.3 KiB
PHP
226 lines
8.3 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Interview Invitation - SingleLogin</title>
|
|
<style>
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
|
|
background-color: #0b0f19;
|
|
color: #e2e8f0;
|
|
margin: 0;
|
|
padding: 24px;
|
|
}
|
|
.container {
|
|
max-width: 600px;
|
|
margin: 0 auto;
|
|
background: #131b2e;
|
|
border: 1px solid #1e293b;
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
}
|
|
.header {
|
|
background: linear-gradient(135deg, #4338ca 0%, #312e81 100%);
|
|
padding: 32px 24px;
|
|
text-align: center;
|
|
}
|
|
.header h1 {
|
|
color: #ffffff;
|
|
font-size: 22px;
|
|
margin: 0 0 6px 0;
|
|
font-weight: 700;
|
|
}
|
|
.header p {
|
|
color: #cbd5e1;
|
|
font-size: 14px;
|
|
margin: 0;
|
|
}
|
|
.content {
|
|
padding: 28px 24px;
|
|
}
|
|
.greeting {
|
|
font-size: 16px;
|
|
margin-bottom: 16px;
|
|
color: #ffffff;
|
|
}
|
|
.lead-text {
|
|
font-size: 14px;
|
|
line-height: 1.6;
|
|
color: #94a3b8;
|
|
margin-bottom: 24px;
|
|
}
|
|
.card {
|
|
background: #0f172a;
|
|
border: 1px solid #334155;
|
|
border-radius: 8px;
|
|
padding: 16px;
|
|
margin-bottom: 24px;
|
|
}
|
|
.card-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
padding: 8px 0;
|
|
border-bottom: 1px solid #1e293b;
|
|
font-size: 13px;
|
|
}
|
|
.card-row:last-child {
|
|
border-bottom: none;
|
|
}
|
|
.card-label {
|
|
color: #64748b;
|
|
font-weight: 500;
|
|
}
|
|
.card-value {
|
|
color: #f1f5f9;
|
|
font-weight: 600;
|
|
text-align: right;
|
|
}
|
|
.credentials-box {
|
|
background: #1e1b4b;
|
|
border: 1px solid #4f46e5;
|
|
border-radius: 8px;
|
|
padding: 18px;
|
|
margin-bottom: 24px;
|
|
text-align: center;
|
|
}
|
|
.credentials-box h3 {
|
|
margin: 0 0 12px 0;
|
|
color: #c7d2fe;
|
|
font-size: 14px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
.temp-pass {
|
|
font-family: 'Courier New', Courier, monospace;
|
|
font-size: 20px;
|
|
font-weight: 700;
|
|
color: #38bdf8;
|
|
background: #0f172a;
|
|
padding: 8px 16px;
|
|
border-radius: 6px;
|
|
display: inline-block;
|
|
letter-spacing: 1px;
|
|
border: 1px dashed #38bdf8;
|
|
}
|
|
.btn-container {
|
|
text-align: center;
|
|
margin: 28px 0;
|
|
}
|
|
.btn {
|
|
background: #4f46e5;
|
|
color: #ffffff !important;
|
|
padding: 12px 28px;
|
|
border-radius: 6px;
|
|
text-decoration: none;
|
|
font-weight: 600;
|
|
font-size: 14px;
|
|
display: inline-block;
|
|
}
|
|
.rsvp-notice {
|
|
background: rgba(16, 185, 129, 0.1);
|
|
border: 1px solid rgba(16, 185, 129, 0.3);
|
|
border-radius: 8px;
|
|
padding: 14px;
|
|
margin-bottom: 24px;
|
|
font-size: 13px;
|
|
color: #6ee7b7;
|
|
}
|
|
.rsvp-notice strong {
|
|
color: #a7f3d0;
|
|
}
|
|
.instructions {
|
|
font-size: 12px;
|
|
line-height: 1.6;
|
|
color: #64748b;
|
|
border-top: 1px solid #1e293b;
|
|
padding-top: 18px;
|
|
}
|
|
.footer {
|
|
background: #0b0f19;
|
|
padding: 16px 24px;
|
|
text-align: center;
|
|
font-size: 11px;
|
|
color: #475569;
|
|
border-top: 1px solid #1e293b;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<div class="header">
|
|
<h1>Interview Assessment Invitation</h1>
|
|
<p>SingleLogin Assessment & Technical Evaluation Portal</p>
|
|
</div>
|
|
<div class="content">
|
|
<div class="greeting">Hello {{ $interview->candidate_name }},</div>
|
|
<div class="lead-text">
|
|
You have been invited for a technical assessment session.
|
|
Please accept the invitation to appear in the assesment. You are requested to attend the interview from Laptop with a proper internet Connection.
|
|
<br />
|
|
Please review your session details and login credentials below.
|
|
</div>
|
|
|
|
<!-- Assessment Details Card -->
|
|
<div class="card">
|
|
<div class="card-row">
|
|
<span class="card-label">Position / Role</span>
|
|
<span class="card-value">{{ $interview->job_title ?? 'Candidate Assessment' }}</span>
|
|
</div>
|
|
<div class="card-row">
|
|
<span class="card-label">Round</span>
|
|
<span class="card-value">{{ $interview->round ?? 'R1' }}</span>
|
|
</div>
|
|
<div class="card-row">
|
|
<span class="card-label">Start Time</span>
|
|
<span class="card-value">{{ $interview->scheduled_at ? $interview->scheduled_at->format('M d, Y h:i A') : 'Immediate' }}</span>
|
|
</div>
|
|
<div class="card-row">
|
|
<span class="card-label">Access Duration</span>
|
|
<span class="card-value">{{ $interview->valid_hours ?? round($interview->scheduled_at?->diffInHours($interview->expires_at) ?? 2) }} Hour(s)</span>
|
|
</div>
|
|
<div class="card-row">
|
|
<span class="card-label">Coding Language</span>
|
|
<span class="card-value" style="text-transform: uppercase;">{{ $interview->language ?? 'Python' }}</span>
|
|
</div>
|
|
<div class="card-row">
|
|
<span class="card-label">Unique Session ID</span>
|
|
<span class="card-value" style="font-family: monospace; font-size: 11px;">{{ $interview->submission_unique_id }}</span>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Credentials Box -->
|
|
<div class="credentials-box">
|
|
<h3>Your Temporary Login Credentials</h3>
|
|
<div style="font-size: 12px; color: #94a3b8; margin-bottom: 8px;">Login Identifier: <strong style="color: #f1f5f9;">{{ $interview->candidate_email }}</strong></div>
|
|
<div class="temp-pass">{{ $interview->temp_password }}</div>
|
|
<div style="font-size: 11px; color: #64748b; margin-top: 8px;">Keep this temporary password confidential. It expires after the interview window.</div>
|
|
</div>
|
|
|
|
<div class="btn-container">
|
|
<a href="{{ route('interview.candidate.login') }}" class="btn" target="_blank">Open Candidate Assessment Portal</a>
|
|
</div>
|
|
|
|
@if(!empty($interview->description))
|
|
<div style="background: #0f172a; border-left: 3px solid #6366f1; padding: 12px 16px; margin-bottom: 24px; border-radius: 0 6px 6px 0;">
|
|
<div style="font-size: 11px; font-weight: 600; color: #a5b4fc; text-transform: uppercase; margin-bottom: 4px;">Additional Instructions</div>
|
|
<div style="font-size: 13px; color: #cbd5e1; white-space: pre-line;">{{ $interview->description }}</div>
|
|
</div>
|
|
@endif
|
|
|
|
<div class="instructions">
|
|
<strong>Important Guidelines for Candidates:</strong>
|
|
<ul>
|
|
<li>Use a laptop or desktop computer with a supported modern browser (Chrome, Edge, Firefox).</li>
|
|
<li>Ensure your web camera and microphone permissions are granted for live proctoring.</li>
|
|
<li>Do not switch tabs, navigate away, or attempt unauthorized external assistance during the active assessment session.</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div class="footer">
|
|
© {{ date('Y') }} SingleLogin Assessment System. All rights reserved.
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|