Compare commits
5 Commits
SAAS
...
9edf79e8ba
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9edf79e8ba | ||
|
|
97a8b9443d | ||
|
|
7c01803f46 | ||
|
|
fd4a39a703 | ||
|
|
29c274b23b |
@@ -1,7 +1,109 @@
|
|||||||
{
|
{
|
||||||
"permissions": {
|
"permissions": {
|
||||||
"allow": [
|
"allow": [
|
||||||
"Bash(npm run *)"
|
"Bash(npm run *)",
|
||||||
|
"Bash(npm --version)",
|
||||||
|
"Bash(npx --version)",
|
||||||
|
"Bash(npx --yes create-next-app@latest . --typescript --tailwind --app --src-dir --import-alias \"@/*\" --use-npm --eslint --no-turbopack --yes)",
|
||||||
|
"Bash(npm install *)",
|
||||||
|
"Bash(npx prisma *)",
|
||||||
|
"Bash(curl -s -o /dev/null -w '%{http_code}' http://localhost:3000__TRACKED_VAR__)",
|
||||||
|
"Bash(curl -s -X POST http://localhost:3000/api/readings -H \"Content-Type: application/json\" -d '{\"moment\":\"FASTING\",\"value\":1.05,\"notes\":\"Test smoke\"}')",
|
||||||
|
"Bash(curl -s \"http://localhost:3000/api/stats\")",
|
||||||
|
"Bash(curl -s -X DELETE http://localhost:3000/api/readings/91)",
|
||||||
|
"Bash(curl -s -o /dev/null -w \"%{http_code}\\\\n\" http://localhost:3000/api/export)",
|
||||||
|
"Bash(curl -s -o /dev/null -w \"%{http_code}\\\\n\" http://localhost:3000/profil)",
|
||||||
|
"Bash(curl -s -o /dev/null -w \"%{http_code}\\\\n\" http://localhost:3000/api/patient)",
|
||||||
|
"Bash(curl -s -X PUT http://localhost:3000/api/patient -H \"Content-Type: application/json\" -d '{\"firstName\":\"Jeremy\",\"lastName\":\"Bayse\",\"email\":\"jeremy.bayse@gmail.com\",\"birthDate\":\"1985-06-15\",\"heightCm\":180,\"weightKg\":78.5}')",
|
||||||
|
"Bash(curl -s http://localhost:3000/api/patient)",
|
||||||
|
"Bash(taskkill //PID 40172 //F)",
|
||||||
|
"Bash(curl -s -o /dev/null -w \"GET /profil %{http_code}\\\\n\" http://localhost:3000/profil)",
|
||||||
|
"Bash(curl -s -o /dev/null -w \"GET /api/patient %{http_code}\\\\n\" http://localhost:3000/api/patient)",
|
||||||
|
"Bash(curl -s http://localhost:3000/)",
|
||||||
|
"Bash(curl -s -X PUT http://localhost:3000/api/patient -H \"Content-Type: application/json\" -d '{\"firstName\":\"Jeremy\",\"lastName\":\"Bayse\",\"email\":\"jeremy.bayse@gmail.com\",\"birthDate\":\"1985-06-15\",\"heightCm\":180,\"weightKg\":78.5,\"sex\":\"M\",\"diabetesType\":\"TYPE_2\",\"treatment\":\"Metformine 1000 mg matin et soir\"}')",
|
||||||
|
"Bash(curl -s -X PUT http://localhost:3000/api/patient -H \"Content-Type: application/json\" -d '{\"firstName\":\"Jeremy\",\"lastName\":\"Bayse\",\"sex\":\"INVALID\"}')",
|
||||||
|
"Bash(curl -s http://localhost:3000/profil)",
|
||||||
|
"Bash(curl -s -o /dev/null -w \"%{http_code}\\\\n\" http://localhost:3001/profil)",
|
||||||
|
"Bash(curl -s -X PUT http://localhost:3001/api/patient -H \"Content-Type: application/json\" -d '{\"firstName\":\"Jeremy\",\"lastName\":\"Bayse\",\"email\":\"jeremy.bayse@gmail.com\",\"birthDate\":\"1985-06-15\",\"heightCm\":180,\"weightKg\":78.5,\"sex\":\"M\",\"diabetesType\":\"TYPE_2\",\"treatment\":\"Metformine 1000 mg matin et soir\"}')",
|
||||||
|
"Bash(curl -s http://localhost:3001/api/patient)",
|
||||||
|
"Bash(curl -s http://localhost:3001/)",
|
||||||
|
"Bash(grep -oE \"Diab.{1,30}\")",
|
||||||
|
"Bash(taskkill //PID 37932 //F)",
|
||||||
|
"Bash(curl -s -X POST http://localhost:3001/api/chat -H \"Content-Type: application/json\" -d '{\"message\":\"Bonjour, comment se passe mon suivi cette semaine ?\",\"history\":[]}' --max-time 30)",
|
||||||
|
"Bash(curl -s \"https://generativelanguage.googleapis.com/v1beta/models?key=AIzaSyD7ltywmUmEooMOBiMkfyhQygCEU06LbR4\")",
|
||||||
|
"Bash(curl -s -X POST \"https://generativelanguage.googleapis.com/v1beta/models/gemini-2.0-flash:generateContent?key=AIzaSyD7ltywmUmEooMOBiMkfyhQygCEU06LbR4\" -H \"Content-Type: application/json\" -d '{\"contents\":[{\"parts\":[{\"text\":\"Dis bonjour en une phrase.\"}]}]}')",
|
||||||
|
"Bash(curl -s -X POST \"https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash:generateContent?key=AIzaSyD7ltywmUmEooMOBiMkfyhQygCEU06LbR4\" -H \"Content-Type: application/json\" -d '{\"contents\":[{\"parts\":[{\"text\":\"Dis bonjour en une phrase.\"}]}]}')",
|
||||||
|
"Bash(curl -s -X POST http://localhost:3001/api/chat -H \"Content-Type: application/json\" -d '{\"message\":\"Comment se passe mon suivi cette semaine ?\",\"history\":[]}' --max-time 30)",
|
||||||
|
"Bash(curl -s http://localhost:3001/api/daily-analysis --max-time 30)",
|
||||||
|
"Bash(taskkill //PID 42196 //F)",
|
||||||
|
"Bash(curl -s http://localhost:3001/api/daily-analysis --max-time 35)",
|
||||||
|
"Bash(curl -s http://localhost:3001/api/daily-analysis --max-time 10)",
|
||||||
|
"Bash(python -c \"import sys,json; d=json.load\\(sys.stdin\\); print\\('fresh:', d.get\\('fresh'\\), '| generatedAt:', d.get\\('generatedAt'\\)\\)\")",
|
||||||
|
"Bash(taskkill //PID 33804 //F)",
|
||||||
|
"Bash(curl -s http://localhost:3000/mobile)",
|
||||||
|
"Bash(curl -s http://localhost:3001/mobile)",
|
||||||
|
"Bash(npx tsc *)",
|
||||||
|
"Bash(curl -s -o /dev/null -w \"%{http_code}\" http://localhost:3000/)",
|
||||||
|
"Bash(curl -s http://localhost:3001/dashboard)",
|
||||||
|
"Bash(curl -sv http://localhost:3001/dashboard)",
|
||||||
|
"Bash(python3 -c \"import sys; data=sys.stdin.read\\(\\); print\\(data[data.find\\('Error'\\):data.find\\('Error'\\)+500] if 'Error' in data else data[:500]\\)\")",
|
||||||
|
"Bash(node -e \"console.log\\(require\\('./node_modules/next/package.json'\\).version\\)\")",
|
||||||
|
"Bash(rm -rf .next)",
|
||||||
|
"Bash(curl -s -o /dev/null -w \"%{http_code}\" http://localhost:3001/)",
|
||||||
|
"Bash(curl -s -o /dev/null -w \"%{http_code}\" http://localhost:3001/dashboard)",
|
||||||
|
"Bash(curl -s -o /dev/null -w \"%{http_code}\" http://localhost:3002/)",
|
||||||
|
"Bash(curl -s -o /dev/null -w \"%{http_code}\" http://localhost:3002/dashboard)",
|
||||||
|
"Bash(curl -s -o /dev/null -w \"%{http_code}\" http://localhost:3002/auth/login)",
|
||||||
|
"Bash(curl -s -o /dev/null -w \"%{http_code}\" http://localhost:3002/pricing)",
|
||||||
|
"Bash(curl -s -o /dev/null -w \"%{http_code}\" http://localhost:3002/auth/register)",
|
||||||
|
"Bash(curl -s -o /dev/null -w \"%{http_code}\" http://localhost:3002/auth/verify-pending)",
|
||||||
|
"Bash(taskkill //F //IM node.exe)",
|
||||||
|
"Bash(curl -s -X POST http://localhost:3000/api/auth/register -H 'Content-Type: application/json' -d '{\"name\":\"Test User\",\"email\":\"test@test.com\",\"password\":\"password123\"}')",
|
||||||
|
"Bash(curl -s -X POST http://localhost:3000/api/auth/register -H 'Content-Type: application/json' -d '{\"name\":\"Jean Dupont\",\"email\":\"jean__CMDSUB_OUTPUT__@example.com\",\"password\":\"motdepasse123\"}')",
|
||||||
|
"mcp__Claude_in_Chrome__tabs_context_mcp",
|
||||||
|
"mcp__Claude_in_Chrome__browser_batch",
|
||||||
|
"mcp__Claude_in_Chrome__switch_browser",
|
||||||
|
"mcp__Claude_in_Chrome__list_connected_browsers",
|
||||||
|
"mcp__Claude_in_Chrome__select_browser",
|
||||||
|
"Bash(taskkill /F /IM node.exe)",
|
||||||
|
"PowerShell(Stop-Process -Name node -Force -ErrorAction SilentlyContinue)",
|
||||||
|
"Bash(curl -s http://localhost:3000/pricing)",
|
||||||
|
"Bash(cat)",
|
||||||
|
"Bash(chmod +x test-stripe.sh)",
|
||||||
|
"Bash(./test-stripe.sh)",
|
||||||
|
"Bash(curl -s http://localhost:3000/pricing -X POST -H \"Content-Type: application/json\")",
|
||||||
|
"Bash(pkill -9 node)",
|
||||||
|
"mcp__Claude_in_Chrome__navigate",
|
||||||
|
"mcp__Claude_in_Chrome__computer",
|
||||||
|
"mcp__Claude_in_Chrome__form_input",
|
||||||
|
"Bash(sqlite3 prisma/dev.db \"SELECT id, email, plan FROM User LIMIT 5;\")",
|
||||||
|
"Bash(node -e ' *)",
|
||||||
|
"Bash(npm exec *)",
|
||||||
|
"Bash(node test-cancel-subscription.mjs)",
|
||||||
|
"Bash(pkill -f \"next dev\")",
|
||||||
|
"mcp__Claude_in_Chrome__find",
|
||||||
|
"Bash(curl -s http://localhost:3000)",
|
||||||
|
"Bash(node add_readings.js)",
|
||||||
|
"mcp__Claude_in_Chrome__read_network_requests",
|
||||||
|
"mcp__Claude_in_Chrome__read_console_messages",
|
||||||
|
"Bash(taskkill /PID 54104 /F)",
|
||||||
|
"Bash(file ~/Downloads/rapport_glycemie*.pdf)",
|
||||||
|
"Bash(pdftotext ~/Downloads/rapport_glycemie_2026-04*.pdf -)",
|
||||||
|
"Bash(node /tmp/check_pdf.js)",
|
||||||
|
"Bash(tasklist)",
|
||||||
|
"Bash(curl -s http://localhost:3000/dashboard/rapports -c /tmp/cookies.txt)",
|
||||||
|
"Bash(curl -s \"http://localhost:3000/api/reports/generate-pdf?month=2026-04-01\" -H \"Cookie: $\\(curl -s http://localhost:3000/dashboard/rapports -c /tmp/cookies.txt)",
|
||||||
|
"Bash(grep -o '[^ ]*$')",
|
||||||
|
"Bash(chmod +x /tmp/deploy-setup.sh)",
|
||||||
|
"Bash(git remote *)",
|
||||||
|
"Bash(git add *)",
|
||||||
|
"Bash(git commit -m ' *)",
|
||||||
|
"Bash(git push *)",
|
||||||
|
"Bash(tar -czf diabetix-build.tar.gz .next/ node_modules/ package.json package-lock.json public/ prisma/ src/ .env.production next.config.js tsconfig.json)",
|
||||||
|
"Bash(rm diabetix-build.tar.gz)",
|
||||||
|
"Bash(tar -czf diabetix-build.tar.gz .next/ node_modules/ package.json package-lock.json public/ prisma/schema.prisma prisma/migrations/ src/ next.config.ts tsconfig.json)",
|
||||||
|
"Bash(scp diabetix-build.tar.gz root@192.168.20.28:/tmp/)",
|
||||||
|
"Bash(sshpass -p \"Lucas1978!\" scp -o StrictHostKeyChecking=no diabetix-build.tar.gz root@192.168.20.28:/tmp/)"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
78
app/Http/Controllers/Admin/JobPositionAiHelperController.php
Normal file
78
app/Http/Controllers/Admin/JobPositionAiHelperController.php
Normal file
@@ -0,0 +1,78 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Http\Controllers\Admin;
|
||||||
|
|
||||||
|
use App\Http\Controllers\Controller;
|
||||||
|
use Illuminate\Http\Request;
|
||||||
|
|
||||||
|
use Illuminate\Support\Facades\Http;
|
||||||
|
use Illuminate\Support\Facades\Log;
|
||||||
|
|
||||||
|
class JobPositionAiHelperController extends Controller
|
||||||
|
{
|
||||||
|
public function generate(Request $request)
|
||||||
|
{
|
||||||
|
if (!auth()->user()->isAdmin()) {
|
||||||
|
abort(403);
|
||||||
|
}
|
||||||
|
|
||||||
|
$request->validate([
|
||||||
|
'title' => 'required|string',
|
||||||
|
'description' => 'required|string',
|
||||||
|
]);
|
||||||
|
|
||||||
|
$prompt = "Tu es un expert en ingénierie logicielle spécialisé dans la Fonction Publique Territoriale (FPT) et le Code Général de la Fonction Publique (CGFP).
|
||||||
|
Mon application permet de créer des offres d'emploi. Je n'ai pas encore de backend RH métier. Ton rôle est de transformer une saisie utilisateur (souvent incomplète) en un objet JSON structuré respectant strictement les obligations réglementaires françaises (DVE, publicité légale).
|
||||||
|
|
||||||
|
### INPUT UTILISATEUR :
|
||||||
|
Titre : {$request->title}
|
||||||
|
Description : {$request->description}
|
||||||
|
|
||||||
|
### TES MISSIONS :
|
||||||
|
1. ANALYSE STATUTAIRE : Identifie automatiquement la catégorie (A, B, C), le cadre d'emplois et les grades possibles selon l'intitulé du poste.
|
||||||
|
2. COMPLÉTION RÉGLEMENTAIRE : Génère les mentions obligatoires manquantes (fondements juridiques pour les contractuels, références au CGFP).
|
||||||
|
3. STRUCTURATION DES DONNÉES : Retourne uniquement un objet JSON contenant :
|
||||||
|
- \"infos_poste\" : {intitule, categorie, cadre_emplois, grade_mini, grade_maxi}
|
||||||
|
- \"conformite\" : {fondement_juridique_recrutement, mentions_legales_obligatoires: []}
|
||||||
|
- \"publication\" : {support_obligatoire: \"Choisir le service public / Emploi Territorial\", delai_affichage_minimal: \"30 jours\"}
|
||||||
|
- \"fiche_synthese\" : Un texte complet de l'annonce, richement formaté en Markdown (avec des titres ###, des puces -, et du texte en **gras** pour optimiser l'attractivité et le SEO), tout en restant conforme au droit.
|
||||||
|
|
||||||
|
### CONTRAINTES :
|
||||||
|
- Ne propose que des cadres d'emplois existants dans la FPT (ex: Adjoint technique, Rédacteur, Attaché).
|
||||||
|
- Si le poste semble ouvert aux contractuels, précise l'article L332-8 ou L332-14 du CGFP approprié.
|
||||||
|
- L'ensemble de ta réponse doit être un objet JSON brut. Ne mets PAS de blocs de code markdown (comme ```json) autour de la réponse, retourne juste le JSON. Le contenu de la clé `fiche_synthese` DOIT cependant contenir du formatage Markdown interne.";
|
||||||
|
|
||||||
|
$apiKey = env('GEMINI_API_KEY');
|
||||||
|
if (!$apiKey) {
|
||||||
|
return response()->json(['error' => 'API Key non configurée'], 500);
|
||||||
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
$response = Http::timeout(60)->post("https://generativelanguage.googleapis.com/v1beta/models/gemini-3.1-flash-lite-preview:generateContent?key={$apiKey}", [
|
||||||
|
'generationConfig' => [
|
||||||
|
'temperature' => 0.2,
|
||||||
|
'responseMimeType' => 'application/json'
|
||||||
|
],
|
||||||
|
'contents' => [
|
||||||
|
['role' => 'user', 'parts' => [['text' => $prompt]]]
|
||||||
|
]
|
||||||
|
]);
|
||||||
|
|
||||||
|
if ($response->successful()) {
|
||||||
|
$text = $response->json('candidates.0.content.parts.0.text');
|
||||||
|
// Extract JSON if it contains markdown formatting
|
||||||
|
preg_match('/\{.*\}/s', $text, $matches);
|
||||||
|
$json = $matches[0] ?? $text;
|
||||||
|
|
||||||
|
return response()->json(json_decode($json, true));
|
||||||
|
}
|
||||||
|
|
||||||
|
Log::error("Gemini API Error: " . $response->body());
|
||||||
|
return response()->json(['error' => 'Erreur de génération IA'], 500);
|
||||||
|
|
||||||
|
} catch (\Exception $e) {
|
||||||
|
Log::error("Gemini Connection Failed: " . $e->getMessage());
|
||||||
|
return response()->json(['error' => 'Erreur de connexion à l\'IA'], 500);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
55
app/Http/Controllers/Api/CandidateHoneypotController.php
Normal file
55
app/Http/Controllers/Api/CandidateHoneypotController.php
Normal file
@@ -0,0 +1,55 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Http\Controllers\Api;
|
||||||
|
|
||||||
|
use App\Http\Controllers\Controller;
|
||||||
|
use Illuminate\Http\Request;
|
||||||
|
|
||||||
|
class CandidateHoneypotController extends Controller
|
||||||
|
{
|
||||||
|
public function logDirectoryTraversal(Request $request)
|
||||||
|
{
|
||||||
|
$this->logSecurityAlert('directory_traversal', $request);
|
||||||
|
|
||||||
|
// Fausse réponse pour faire croire que le serveur est vulnérable
|
||||||
|
return response(
|
||||||
|
"<html><body><h1>Index of /documents/private</h1><ul><li><a href='../'>../</a></li><li><a href='reponses_tests_2026.pdf'>reponses_tests_2026.pdf</a></li><li><a href='backup_db.sql'>backup_db.sql</a></li></ul></body></html>",
|
||||||
|
200
|
||||||
|
)->header('Content-Type', 'text/html');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function logMassAssignment(Request $request)
|
||||||
|
{
|
||||||
|
$this->logSecurityAlert('mass_assignment', $request);
|
||||||
|
|
||||||
|
// Faire croire que l'opération a réussi mais renvoyer une erreur 403 discrètement
|
||||||
|
return response()->json([
|
||||||
|
'status' => 'success',
|
||||||
|
'message' => 'Profil mis à jour.',
|
||||||
|
'debug' => 'Attempt logged.'
|
||||||
|
], 403);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function downloadFakeFile(Request $request, $filename)
|
||||||
|
{
|
||||||
|
$this->logSecurityAlert('file_exfiltration', $request, ['filename' => $filename]);
|
||||||
|
|
||||||
|
// Faux contenu
|
||||||
|
$content = "Ceci est un honeypot de sécurité. Votre action a été journalisée.";
|
||||||
|
return response($content, 200)
|
||||||
|
->header('Content-Type', 'text/plain')
|
||||||
|
->header('Content-Disposition', 'attachment; filename="' . $filename . '"');
|
||||||
|
}
|
||||||
|
|
||||||
|
private function logSecurityAlert(string $type, Request $request, array $extraPayload = [])
|
||||||
|
{
|
||||||
|
\App\Models\SecurityAlert::create([
|
||||||
|
'user_id' => auth()->id(),
|
||||||
|
'type' => $type,
|
||||||
|
'endpoint' => $request->path(),
|
||||||
|
'payload' => array_merge($request->all(), $extraPayload),
|
||||||
|
'ip_address' => $request->ip(),
|
||||||
|
'user_agent' => $request->userAgent(),
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -93,11 +93,20 @@ class CandidateController extends Controller
|
|||||||
public function store(Request $request)
|
public function store(Request $request)
|
||||||
{
|
{
|
||||||
$request->validate([
|
$request->validate([
|
||||||
'name' => 'required|string|max:255',
|
'birth_name' => 'nullable|string|max:255',
|
||||||
|
'usage_name' => 'nullable|string|max:255',
|
||||||
|
'first_name' => 'nullable|string|max:255',
|
||||||
|
'address' => 'nullable|string|max:255',
|
||||||
|
'zip_code' => 'nullable|string|max:10',
|
||||||
'email' => 'required|string|email|max:255|unique:users',
|
'email' => 'required|string|email|max:255|unique:users',
|
||||||
'phone' => 'nullable|string|max:20',
|
'phone' => 'nullable|string|max:20',
|
||||||
'linkedin_url' => 'nullable|url|max:255',
|
|
||||||
'city' => 'nullable|string|max:255',
|
'city' => 'nullable|string|max:255',
|
||||||
|
'birth_date' => 'nullable|date',
|
||||||
|
'birth_place' => 'nullable|string|max:255',
|
||||||
|
'nationality' => 'nullable|string|max:255',
|
||||||
|
'current_situation' => 'nullable|string|max:255',
|
||||||
|
'education_level' => 'nullable|string|max:255',
|
||||||
|
'has_driving_license' => 'nullable|boolean',
|
||||||
'cv' => 'nullable|mimes:pdf|max:5120',
|
'cv' => 'nullable|mimes:pdf|max:5120',
|
||||||
'cover_letter' => 'nullable|mimes:pdf|max:5120',
|
'cover_letter' => 'nullable|mimes:pdf|max:5120',
|
||||||
'tenant_id' => 'nullable|exists:tenants,id',
|
'tenant_id' => 'nullable|exists:tenants,id',
|
||||||
@@ -106,20 +115,34 @@ class CandidateController extends Controller
|
|||||||
|
|
||||||
$password = Str::random(10);
|
$password = Str::random(10);
|
||||||
|
|
||||||
|
$name = $request->first_name
|
||||||
|
? ($request->first_name . ' ' . ($request->usage_name ?? ''))
|
||||||
|
: $request->name;
|
||||||
|
|
||||||
$user = User::create([
|
$user = User::create([
|
||||||
'name' => $request->name,
|
'name' => $name,
|
||||||
'email' => $request->email,
|
'email' => $request->email,
|
||||||
'password' => Hash::make(Str::random(12)),
|
'password' => Hash::make($password),
|
||||||
'role' => 'candidate',
|
'role' => 'candidate',
|
||||||
'tenant_id' => auth()->user()->isSuperAdmin() ? $request->tenant_id : auth()->user()->tenant_id,
|
'tenant_id' => (auth()->user()->isSuperAdmin() || auth()->user()->isGestionnaireRH()) ? $request->tenant_id : auth()->user()->tenant_id,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$candidate = $user->candidate()->create([
|
$candidate = $user->candidate()->create([
|
||||||
|
'birth_name' => $request->birth_name,
|
||||||
|
'usage_name' => $request->usage_name,
|
||||||
|
'first_name' => $request->first_name,
|
||||||
|
'address' => $request->address,
|
||||||
|
'zip_code' => $request->zip_code,
|
||||||
'phone' => $request->phone,
|
'phone' => $request->phone,
|
||||||
'linkedin_url' => $request->linkedin_url,
|
|
||||||
'city' => $request->city,
|
'city' => $request->city,
|
||||||
|
'birth_date' => $request->birth_date,
|
||||||
|
'birth_place' => $request->birth_place,
|
||||||
|
'nationality' => $request->nationality,
|
||||||
|
'current_situation' => $request->current_situation,
|
||||||
|
'education_level' => $request->education_level,
|
||||||
|
'has_driving_license' => $request->has_driving_license ?? false,
|
||||||
'status' => 'en_attente',
|
'status' => 'en_attente',
|
||||||
'tenant_id' => auth()->user()->isSuperAdmin() ? $request->tenant_id : auth()->user()->tenant_id,
|
'tenant_id' => (auth()->user()->isSuperAdmin() || auth()->user()->isGestionnaireRH()) ? $request->tenant_id : auth()->user()->tenant_id,
|
||||||
'job_position_id' => $request->job_position_id,
|
'job_position_id' => $request->job_position_id,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
@@ -132,7 +155,7 @@ class CandidateController extends Controller
|
|||||||
public function show(Candidate $candidate)
|
public function show(Candidate $candidate)
|
||||||
{
|
{
|
||||||
$candidate->load([
|
$candidate->load([
|
||||||
'user',
|
'user.securityAlerts',
|
||||||
'documents',
|
'documents',
|
||||||
'jobPosition',
|
'jobPosition',
|
||||||
'tenant'
|
'tenant'
|
||||||
@@ -165,7 +188,7 @@ class CandidateController extends Controller
|
|||||||
]
|
]
|
||||||
];
|
];
|
||||||
|
|
||||||
if (auth()->user()->isSuperAdmin()) {
|
if (auth()->user()->isSuperAdmin() || auth()->user()->isGestionnaireRH()) {
|
||||||
$data['tenants'] = \App\Models\Tenant::orderBy('name')->get();
|
$data['tenants'] = \App\Models\Tenant::orderBy('name')->get();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -190,22 +213,42 @@ class CandidateController extends Controller
|
|||||||
public function update(Request $request, Candidate $candidate)
|
public function update(Request $request, Candidate $candidate)
|
||||||
{
|
{
|
||||||
$request->validate([
|
$request->validate([
|
||||||
|
'birth_name' => 'nullable|string|max:255',
|
||||||
|
'usage_name' => 'nullable|string|max:255',
|
||||||
|
'first_name' => 'nullable|string|max:255',
|
||||||
|
'address' => 'nullable|string|max:255',
|
||||||
|
'zip_code' => 'nullable|string|max:10',
|
||||||
|
'phone' => 'nullable|string|max:255',
|
||||||
|
'city' => 'nullable|string|max:255',
|
||||||
|
'birth_date' => 'nullable|date',
|
||||||
|
'birth_place' => 'nullable|string|max:255',
|
||||||
|
'nationality' => 'nullable|string|max:255',
|
||||||
|
'current_situation' => 'nullable|string|max:255',
|
||||||
|
'education_level' => 'nullable|string|max:255',
|
||||||
|
'has_driving_license' => 'nullable|boolean',
|
||||||
|
'email' => 'nullable|string|email|max:255|unique:users,email,' . $candidate->user_id,
|
||||||
|
'linkedin_url' => 'nullable|url|max:255',
|
||||||
'cv' => 'nullable|file|mimes:pdf|max:5120',
|
'cv' => 'nullable|file|mimes:pdf|max:5120',
|
||||||
'cover_letter' => 'nullable|file|mimes:pdf|max:5120',
|
'cover_letter' => 'nullable|file|mimes:pdf|max:5120',
|
||||||
'name' => 'nullable|string|max:255',
|
|
||||||
'email' => 'nullable|string|email|max:255|unique:users,email,' . $candidate->user_id,
|
|
||||||
'phone' => 'nullable|string|max:255',
|
|
||||||
'linkedin_url' => 'nullable|url|max:255',
|
|
||||||
'city' => 'nullable|string|max:255',
|
|
||||||
]);
|
]);
|
||||||
|
|
||||||
// Update User info if name or email present
|
// Update User info if name or email present
|
||||||
if ($request->has('name') || $request->has('email')) {
|
if ($request->has('email')) {
|
||||||
$candidate->user->update($request->only(['name', 'email']));
|
$candidate->user->update(['email' => $request->email]);
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($request->has('first_name') || $request->has('usage_name')) {
|
||||||
|
$firstName = $request->first_name ?? $candidate->first_name;
|
||||||
|
$usageName = $request->usage_name ?? $candidate->usage_name;
|
||||||
|
$candidate->user->update(['name' => $firstName . ' ' . $usageName]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update Candidate info
|
// Update Candidate info
|
||||||
$candidate->update($request->only(['phone', 'linkedin_url', 'city']));
|
$candidate->update($request->only([
|
||||||
|
'birth_name', 'usage_name', 'first_name', 'address', 'zip_code',
|
||||||
|
'phone', 'linkedin_url', 'city', 'birth_date', 'birth_place',
|
||||||
|
'nationality', 'current_situation', 'education_level', 'has_driving_license'
|
||||||
|
]));
|
||||||
|
|
||||||
if ($request->hasFile('cv')) {
|
if ($request->hasFile('cv')) {
|
||||||
$this->replaceDocument($candidate, $request->file('cv'), 'cv');
|
$this->replaceDocument($candidate, $request->file('cv'), 'cv');
|
||||||
@@ -223,7 +266,7 @@ class CandidateController extends Controller
|
|||||||
$request->validate([
|
$request->validate([
|
||||||
'notes' => 'nullable|string',
|
'notes' => 'nullable|string',
|
||||||
'interview_details' => 'nullable|array',
|
'interview_details' => 'nullable|array',
|
||||||
'interview_score' => 'nullable|numeric|min:0|max:30',
|
'interview_score' => 'nullable|numeric|min:0|max:25',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$candidate->update([
|
$candidate->update([
|
||||||
@@ -240,7 +283,7 @@ class CandidateController extends Controller
|
|||||||
$request->validate([
|
$request->validate([
|
||||||
'cv_score' => 'nullable|numeric|min:0|max:20',
|
'cv_score' => 'nullable|numeric|min:0|max:20',
|
||||||
'motivation_score' => 'nullable|numeric|min:0|max:10',
|
'motivation_score' => 'nullable|numeric|min:0|max:10',
|
||||||
'interview_score' => 'nullable|numeric|min:0|max:30',
|
'interview_score' => 'nullable|numeric|min:0|max:25',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$candidate->update($request->only(['cv_score', 'motivation_score', 'interview_score']));
|
$candidate->update($request->only(['cv_score', 'motivation_score', 'interview_score']));
|
||||||
@@ -263,7 +306,7 @@ class CandidateController extends Controller
|
|||||||
|
|
||||||
public function updateTenant(Request $request, Candidate $candidate)
|
public function updateTenant(Request $request, Candidate $candidate)
|
||||||
{
|
{
|
||||||
if (!auth()->user()->isSuperAdmin()) {
|
if (!auth()->user()->isSuperAdmin() && !auth()->user()->isGestionnaireRH()) {
|
||||||
abort(403);
|
abort(403);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ class JobPositionController extends Controller
|
|||||||
$this->authorizeAdmin();
|
$this->authorizeAdmin();
|
||||||
|
|
||||||
return Inertia::render('Admin/JobPositions/Index', [
|
return Inertia::render('Admin/JobPositions/Index', [
|
||||||
'jobPositions' => JobPosition::with(['tenant', 'quizzes'])->get(),
|
'jobPositions' => JobPosition::with(['tenant', 'quizzes'])->withCount('candidates')->get(),
|
||||||
'tenants' => \App\Models\Tenant::orderBy('name')->get(),
|
'tenants' => \App\Models\Tenant::orderBy('name')->get(),
|
||||||
'quizzes' => \App\Models\Quiz::all()
|
'quizzes' => \App\Models\Quiz::all()
|
||||||
]);
|
]);
|
||||||
@@ -29,9 +29,11 @@ class JobPositionController extends Controller
|
|||||||
'requirements' => 'nullable|array',
|
'requirements' => 'nullable|array',
|
||||||
'ai_prompt' => 'nullable|string',
|
'ai_prompt' => 'nullable|string',
|
||||||
'ai_bypass_base_prompt' => 'boolean',
|
'ai_bypass_base_prompt' => 'boolean',
|
||||||
|
'fpt_metadata' => 'nullable|array',
|
||||||
'tenant_id' => 'nullable|exists:tenants,id',
|
'tenant_id' => 'nullable|exists:tenants,id',
|
||||||
'quiz_ids' => 'nullable|array',
|
'quiz_ids' => 'nullable|array',
|
||||||
'quiz_ids.*' => 'exists:quizzes,id',
|
'quiz_ids.*' => 'exists:quizzes,id',
|
||||||
|
'expires_at' => 'nullable|date',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$jobPosition = JobPosition::create([
|
$jobPosition = JobPosition::create([
|
||||||
@@ -40,7 +42,9 @@ class JobPositionController extends Controller
|
|||||||
'requirements' => $request->requirements,
|
'requirements' => $request->requirements,
|
||||||
'ai_prompt' => $request->ai_prompt,
|
'ai_prompt' => $request->ai_prompt,
|
||||||
'ai_bypass_base_prompt' => $request->boolean('ai_bypass_base_prompt'),
|
'ai_bypass_base_prompt' => $request->boolean('ai_bypass_base_prompt'),
|
||||||
'tenant_id' => auth()->user()->isSuperAdmin() ? $request->tenant_id : auth()->user()->tenant_id,
|
'fpt_metadata' => $request->fpt_metadata,
|
||||||
|
'tenant_id' => (auth()->user()->isSuperAdmin() || auth()->user()->isGestionnaireRH()) ? $request->tenant_id : auth()->user()->tenant_id,
|
||||||
|
'expires_at' => $request->expires_at,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$jobPosition->quizzes()->sync($request->input('quiz_ids', []));
|
$jobPosition->quizzes()->sync($request->input('quiz_ids', []));
|
||||||
@@ -58,9 +62,11 @@ class JobPositionController extends Controller
|
|||||||
'requirements' => 'nullable|array',
|
'requirements' => 'nullable|array',
|
||||||
'ai_prompt' => 'nullable|string',
|
'ai_prompt' => 'nullable|string',
|
||||||
'ai_bypass_base_prompt' => 'boolean',
|
'ai_bypass_base_prompt' => 'boolean',
|
||||||
|
'fpt_metadata' => 'nullable|array',
|
||||||
'tenant_id' => 'nullable|exists:tenants,id',
|
'tenant_id' => 'nullable|exists:tenants,id',
|
||||||
'quiz_ids' => 'nullable|array',
|
'quiz_ids' => 'nullable|array',
|
||||||
'quiz_ids.*' => 'exists:quizzes,id',
|
'quiz_ids.*' => 'exists:quizzes,id',
|
||||||
|
'expires_at' => 'nullable|date',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$jobPosition->update([
|
$jobPosition->update([
|
||||||
@@ -69,7 +75,9 @@ class JobPositionController extends Controller
|
|||||||
'requirements' => $request->requirements,
|
'requirements' => $request->requirements,
|
||||||
'ai_prompt' => $request->ai_prompt,
|
'ai_prompt' => $request->ai_prompt,
|
||||||
'ai_bypass_base_prompt' => $request->boolean('ai_bypass_base_prompt'),
|
'ai_bypass_base_prompt' => $request->boolean('ai_bypass_base_prompt'),
|
||||||
'tenant_id' => auth()->user()->isSuperAdmin() ? $request->tenant_id : auth()->user()->tenant_id,
|
'fpt_metadata' => $request->fpt_metadata,
|
||||||
|
'tenant_id' => (auth()->user()->isSuperAdmin() || auth()->user()->isGestionnaireRH()) ? $request->tenant_id : auth()->user()->tenant_id,
|
||||||
|
'expires_at' => $request->expires_at,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$jobPosition->quizzes()->sync($request->input('quiz_ids', []));
|
$jobPosition->quizzes()->sync($request->input('quiz_ids', []));
|
||||||
|
|||||||
133
app/Http/Controllers/PublicJobApplicationController.php
Normal file
133
app/Http/Controllers/PublicJobApplicationController.php
Normal file
@@ -0,0 +1,133 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Http\Controllers;
|
||||||
|
|
||||||
|
use Illuminate\Http\Request;
|
||||||
|
use App\Models\JobPosition;
|
||||||
|
use App\Models\Candidate;
|
||||||
|
use App\Models\User;
|
||||||
|
use App\Models\Document;
|
||||||
|
use Illuminate\Support\Facades\Hash;
|
||||||
|
use Illuminate\Support\Str;
|
||||||
|
use Inertia\Inertia;
|
||||||
|
use Illuminate\Support\Facades\Auth;
|
||||||
|
|
||||||
|
class PublicJobApplicationController extends Controller
|
||||||
|
{
|
||||||
|
public function index()
|
||||||
|
{
|
||||||
|
$jobs = JobPosition::with('tenant')
|
||||||
|
->where(function($q) {
|
||||||
|
$q->whereNull('expires_at')
|
||||||
|
->orWhere('expires_at', '>=', now());
|
||||||
|
})
|
||||||
|
->orderBy('created_at', 'desc')
|
||||||
|
->get()
|
||||||
|
->map(function($job) {
|
||||||
|
$job->description = strip_tags(\Illuminate\Support\Str::markdown($job->description));
|
||||||
|
return $job;
|
||||||
|
});
|
||||||
|
|
||||||
|
return Inertia::render('Public/Jobs/Index', [
|
||||||
|
'jobs' => $jobs
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function show(JobPosition $jobPosition)
|
||||||
|
{
|
||||||
|
if ($jobPosition->expires_at && $jobPosition->expires_at->isPast()) {
|
||||||
|
abort(404);
|
||||||
|
}
|
||||||
|
|
||||||
|
$data = $jobPosition->toArray();
|
||||||
|
$data['description_html'] = \Illuminate\Support\Str::markdown($jobPosition->description);
|
||||||
|
|
||||||
|
return Inertia::render('Public/Jobs/Show', [
|
||||||
|
'jobPosition' => $data
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function store(Request $request, JobPosition $jobPosition)
|
||||||
|
{
|
||||||
|
if ($jobPosition->expires_at && $jobPosition->expires_at->isPast()) {
|
||||||
|
return back()->withErrors(['error' => 'Cette offre a expiré.']);
|
||||||
|
}
|
||||||
|
|
||||||
|
$request->validate([
|
||||||
|
'birth_name' => 'required|string|max:255',
|
||||||
|
'usage_name' => 'required|string|max:255',
|
||||||
|
'first_name' => 'required|string|max:255',
|
||||||
|
'address' => 'required|string|max:255',
|
||||||
|
'zip_code' => 'required|string|max:10',
|
||||||
|
'city' => 'required|string|max:255',
|
||||||
|
'phone' => 'required|string|max:20',
|
||||||
|
'email' => 'required|string|email|max:255|unique:users|confirmed',
|
||||||
|
'birth_date' => 'required|date',
|
||||||
|
'birth_place' => 'required|string|max:255',
|
||||||
|
'nationality' => 'required|string|max:255',
|
||||||
|
'current_situation' => 'required|string|max:255',
|
||||||
|
'education_level' => 'required|string|max:255',
|
||||||
|
'has_driving_license' => 'required|boolean',
|
||||||
|
'privacy_policy' => 'accepted',
|
||||||
|
'cv' => 'nullable|mimes:pdf|max:5120',
|
||||||
|
'cover_letter' => 'nullable|mimes:pdf|max:5120',
|
||||||
|
]);
|
||||||
|
|
||||||
|
$password = Str::random(10);
|
||||||
|
|
||||||
|
$user = User::create([
|
||||||
|
'name' => $request->first_name . ' ' . $request->usage_name,
|
||||||
|
'email' => $request->email,
|
||||||
|
'password' => Hash::make($password),
|
||||||
|
'role' => 'candidate',
|
||||||
|
'tenant_id' => $jobPosition->tenant_id,
|
||||||
|
]);
|
||||||
|
|
||||||
|
$candidate = $user->candidate()->create([
|
||||||
|
'birth_name' => $request->birth_name,
|
||||||
|
'usage_name' => $request->usage_name,
|
||||||
|
'first_name' => $request->first_name,
|
||||||
|
'address' => $request->address,
|
||||||
|
'zip_code' => $request->zip_code,
|
||||||
|
'city' => $request->city,
|
||||||
|
'phone' => $request->phone,
|
||||||
|
'birth_date' => $request->birth_date,
|
||||||
|
'birth_place' => $request->birth_place,
|
||||||
|
'nationality' => $request->nationality,
|
||||||
|
'current_situation' => $request->current_situation,
|
||||||
|
'education_level' => $request->education_level,
|
||||||
|
'has_driving_license' => $request->has_driving_license,
|
||||||
|
'status' => 'en_attente',
|
||||||
|
'tenant_id' => $jobPosition->tenant_id,
|
||||||
|
'job_position_id' => $jobPosition->id,
|
||||||
|
]);
|
||||||
|
|
||||||
|
if ($request->hasFile('cv')) {
|
||||||
|
$this->storeDocument($candidate, $request->file('cv'), 'cv');
|
||||||
|
}
|
||||||
|
if ($request->hasFile('cover_letter')) {
|
||||||
|
$this->storeDocument($candidate, $request->file('cover_letter'), 'cover_letter');
|
||||||
|
}
|
||||||
|
|
||||||
|
// Auto-login
|
||||||
|
Auth::login($user);
|
||||||
|
|
||||||
|
return redirect()->route('dashboard')->with('success', 'Votre candidature a bien été enregistrée. Voici votre mot de passe temporaire pour vous reconnecter : ' . $password);
|
||||||
|
}
|
||||||
|
|
||||||
|
private function storeDocument(Candidate $candidate, $file, string $type)
|
||||||
|
{
|
||||||
|
if (!$file) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
$path = $file->store('private/documents/' . $candidate->id, 'local');
|
||||||
|
|
||||||
|
Document::create([
|
||||||
|
'candidate_id' => $candidate->id,
|
||||||
|
'type' => $type,
|
||||||
|
'file_path' => $path,
|
||||||
|
'original_name' => $file->getClientOriginalName(),
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -10,7 +10,7 @@ class TenantController extends Controller
|
|||||||
{
|
{
|
||||||
public function index()
|
public function index()
|
||||||
{
|
{
|
||||||
if (!auth()->user()->isSuperAdmin()) {
|
if (!auth()->user()->isSuperAdmin() && !auth()->user()->isGestionnaireRH()) {
|
||||||
abort(403, 'Unauthorized action.');
|
abort(403, 'Unauthorized action.');
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -23,7 +23,7 @@ class TenantController extends Controller
|
|||||||
|
|
||||||
public function store(Request $request)
|
public function store(Request $request)
|
||||||
{
|
{
|
||||||
if (!auth()->user()->isSuperAdmin()) {
|
if (!auth()->user()->isSuperAdmin() && !auth()->user()->isGestionnaireRH()) {
|
||||||
abort(403, 'Unauthorized action.');
|
abort(403, 'Unauthorized action.');
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -38,7 +38,7 @@ class TenantController extends Controller
|
|||||||
|
|
||||||
public function update(Request $request, Tenant $tenant)
|
public function update(Request $request, Tenant $tenant)
|
||||||
{
|
{
|
||||||
if (!auth()->user()->isSuperAdmin()) {
|
if (!auth()->user()->isSuperAdmin() && !auth()->user()->isGestionnaireRH()) {
|
||||||
abort(403, 'Unauthorized action.');
|
abort(403, 'Unauthorized action.');
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -53,7 +53,7 @@ class TenantController extends Controller
|
|||||||
|
|
||||||
public function destroy(Tenant $tenant)
|
public function destroy(Tenant $tenant)
|
||||||
{
|
{
|
||||||
if (!auth()->user()->isSuperAdmin()) {
|
if (!auth()->user()->isSuperAdmin() && !auth()->user()->isGestionnaireRH()) {
|
||||||
abort(403, 'Unauthorized action.');
|
abort(403, 'Unauthorized action.');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ class UserController extends Controller
|
|||||||
abort(403, 'Unauthorized action.');
|
abort(403, 'Unauthorized action.');
|
||||||
}
|
}
|
||||||
|
|
||||||
$users = User::whereIn('role', ['admin', 'super_admin'])
|
$users = User::whereIn('role', ['admin', 'super_admin', 'gestionnaire_rh'])
|
||||||
->with('tenant')
|
->with('tenant')
|
||||||
->orderBy('name')
|
->orderBy('name')
|
||||||
->get();
|
->get();
|
||||||
@@ -40,7 +40,7 @@ class UserController extends Controller
|
|||||||
$request->validate([
|
$request->validate([
|
||||||
'name' => 'required|string|max:255',
|
'name' => 'required|string|max:255',
|
||||||
'email' => 'required|string|email|max:255|unique:users',
|
'email' => 'required|string|email|max:255|unique:users',
|
||||||
'role' => ['required', Rule::in(['admin', 'super_admin'])],
|
'role' => ['required', Rule::in(['admin', 'super_admin', 'gestionnaire_rh'])],
|
||||||
'tenant_id' => 'nullable|exists:tenants,id',
|
'tenant_id' => 'nullable|exists:tenants,id',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
@@ -51,7 +51,7 @@ class UserController extends Controller
|
|||||||
'email' => $request->email,
|
'email' => $request->email,
|
||||||
'password' => Hash::make($password),
|
'password' => Hash::make($password),
|
||||||
'role' => $request->role,
|
'role' => $request->role,
|
||||||
'tenant_id' => $request->role === 'super_admin' ? null : $request->tenant_id,
|
'tenant_id' => ($request->role === 'super_admin' || $request->role === 'gestionnaire_rh') ? null : $request->tenant_id,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
return back()->with('success', 'Administrateur créé avec succès. Mot de passe généré : ' . $password);
|
return back()->with('success', 'Administrateur créé avec succès. Mot de passe généré : ' . $password);
|
||||||
@@ -66,7 +66,7 @@ class UserController extends Controller
|
|||||||
$request->validate([
|
$request->validate([
|
||||||
'name' => 'required|string|max:255',
|
'name' => 'required|string|max:255',
|
||||||
'email' => 'required|string|email|max:255|unique:users,email,' . $user->id,
|
'email' => 'required|string|email|max:255|unique:users,email,' . $user->id,
|
||||||
'role' => ['required', Rule::in(['admin', 'super_admin'])],
|
'role' => ['required', Rule::in(['admin', 'super_admin', 'gestionnaire_rh'])],
|
||||||
'tenant_id' => 'nullable|exists:tenants,id',
|
'tenant_id' => 'nullable|exists:tenants,id',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
@@ -74,7 +74,7 @@ class UserController extends Controller
|
|||||||
'name' => $request->name,
|
'name' => $request->name,
|
||||||
'email' => $request->email,
|
'email' => $request->email,
|
||||||
'role' => $request->role,
|
'role' => $request->role,
|
||||||
'tenant_id' => $request->role === 'super_admin' ? null : $request->tenant_id,
|
'tenant_id' => ($request->role === 'super_admin' || $request->role === 'gestionnaire_rh') ? null : $request->tenant_id,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
return back()->with('success', 'Administrateur mis à jour.');
|
return back()->with('success', 'Administrateur mis à jour.');
|
||||||
|
|||||||
24
app/Http/Middleware/RestrictHrManager.php
Normal file
24
app/Http/Middleware/RestrictHrManager.php
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Http\Middleware;
|
||||||
|
|
||||||
|
use Closure;
|
||||||
|
use Illuminate\Http\Request;
|
||||||
|
use Symfony\Component\HttpFoundation\Response;
|
||||||
|
|
||||||
|
class RestrictHrManager
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Handle an incoming request.
|
||||||
|
*
|
||||||
|
* @param Closure(Request): (Response) $next
|
||||||
|
*/
|
||||||
|
public function handle(Request $request, Closure $next): Response
|
||||||
|
{
|
||||||
|
if (auth()->check() && auth()->user()->isGestionnaireRH()) {
|
||||||
|
abort(403);
|
||||||
|
}
|
||||||
|
|
||||||
|
return $next($request);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -11,7 +11,7 @@ use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|||||||
|
|
||||||
use App\Traits\BelongsToTenant;
|
use App\Traits\BelongsToTenant;
|
||||||
|
|
||||||
#[Fillable(['user_id', 'job_position_id', 'phone', 'linkedin_url', 'city', 'status', 'is_selected', 'sort_order', 'notes', 'cv_score', 'motivation_score', 'interview_score', 'interview_details', 'ai_analysis', 'tenant_id'])]
|
#[Fillable(['user_id', 'job_position_id', 'birth_name', 'usage_name', 'first_name', 'address', 'zip_code', 'phone', 'linkedin_url', 'city', 'birth_date', 'birth_place', 'nationality', 'current_situation', 'education_level', 'has_driving_license', 'status', 'is_selected', 'sort_order', 'notes', 'cv_score', 'motivation_score', 'interview_score', 'interview_details', 'ai_analysis', 'tenant_id'])]
|
||||||
class Candidate extends Model
|
class Candidate extends Model
|
||||||
{
|
{
|
||||||
use HasFactory, BelongsToTenant;
|
use HasFactory, BelongsToTenant;
|
||||||
@@ -31,6 +31,7 @@ class Candidate extends Model
|
|||||||
protected $casts = [
|
protected $casts = [
|
||||||
'ai_analysis' => 'array',
|
'ai_analysis' => 'array',
|
||||||
'is_selected' => 'boolean',
|
'is_selected' => 'boolean',
|
||||||
|
'has_driving_license' => 'boolean',
|
||||||
'interview_details' => 'array',
|
'interview_details' => 'array',
|
||||||
];
|
];
|
||||||
|
|
||||||
@@ -53,7 +54,7 @@ class Candidate extends Model
|
|||||||
})->max() ?? 0;
|
})->max() ?? 0;
|
||||||
|
|
||||||
$totalPoints = $cv + $motivation + $interview + $bestAttempt;
|
$totalPoints = $cv + $motivation + $interview + $bestAttempt;
|
||||||
$maxPoints = 20 + 10 + 30 + 20; // Total potentiel = 80
|
$maxPoints = 20 + 10 + 25 + 20; // Total potentiel = 75
|
||||||
|
|
||||||
return round(($totalPoints / $maxPoints) * 20, 2);
|
return round(($totalPoints / $maxPoints) * 20, 2);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|||||||
|
|
||||||
use App\Traits\BelongsToTenant;
|
use App\Traits\BelongsToTenant;
|
||||||
|
|
||||||
#[Fillable(['title', 'description', 'requirements', 'ai_prompt', 'ai_bypass_base_prompt', 'gemini_cache_id', 'gemini_cache_expires_at', 'tenant_id'])]
|
#[Fillable(['title', 'description', 'requirements', 'ai_prompt', 'ai_bypass_base_prompt', 'gemini_cache_id', 'gemini_cache_expires_at', 'tenant_id', 'fpt_metadata', 'expires_at'])]
|
||||||
class JobPosition extends Model
|
class JobPosition extends Model
|
||||||
{
|
{
|
||||||
use HasFactory, BelongsToTenant;
|
use HasFactory, BelongsToTenant;
|
||||||
@@ -18,6 +18,8 @@ class JobPosition extends Model
|
|||||||
'requirements' => 'array',
|
'requirements' => 'array',
|
||||||
'ai_bypass_base_prompt' => 'boolean',
|
'ai_bypass_base_prompt' => 'boolean',
|
||||||
'gemini_cache_expires_at' => 'datetime',
|
'gemini_cache_expires_at' => 'datetime',
|
||||||
|
'fpt_metadata' => 'array',
|
||||||
|
'expires_at' => 'datetime',
|
||||||
];
|
];
|
||||||
|
|
||||||
public function candidates(): HasMany
|
public function candidates(): HasMany
|
||||||
|
|||||||
26
app/Models/SecurityAlert.php
Normal file
26
app/Models/SecurityAlert.php
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Models;
|
||||||
|
|
||||||
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
|
||||||
|
class SecurityAlert extends Model
|
||||||
|
{
|
||||||
|
protected $fillable = [
|
||||||
|
'user_id',
|
||||||
|
'type',
|
||||||
|
'endpoint',
|
||||||
|
'payload',
|
||||||
|
'ip_address',
|
||||||
|
'user_agent',
|
||||||
|
];
|
||||||
|
|
||||||
|
protected $casts = [
|
||||||
|
'payload' => 'array',
|
||||||
|
];
|
||||||
|
|
||||||
|
public function user()
|
||||||
|
{
|
||||||
|
return $this->belongsTo(User::class);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -19,7 +19,7 @@ class User extends Authenticatable
|
|||||||
|
|
||||||
public function isAdmin(): bool
|
public function isAdmin(): bool
|
||||||
{
|
{
|
||||||
return in_array($this->role, ['admin', 'super_admin']);
|
return in_array($this->role, ['admin', 'super_admin', 'gestionnaire_rh']);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function isSuperAdmin(): bool
|
public function isSuperAdmin(): bool
|
||||||
@@ -27,6 +27,11 @@ class User extends Authenticatable
|
|||||||
return $this->role === 'super_admin';
|
return $this->role === 'super_admin';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function isGestionnaireRH(): bool
|
||||||
|
{
|
||||||
|
return $this->role === 'gestionnaire_rh';
|
||||||
|
}
|
||||||
|
|
||||||
public function isCandidate(): bool
|
public function isCandidate(): bool
|
||||||
{
|
{
|
||||||
return $this->role === 'candidate';
|
return $this->role === 'candidate';
|
||||||
@@ -42,6 +47,11 @@ class User extends Authenticatable
|
|||||||
return $this->belongsTo(Tenant::class);
|
return $this->belongsTo(Tenant::class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function securityAlerts()
|
||||||
|
{
|
||||||
|
return $this->hasMany(SecurityAlert::class);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the attributes that should be cast.
|
* Get the attributes that should be cast.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ return Application::configure(basePath: dirname(__DIR__))
|
|||||||
|
|
||||||
$middleware->alias([
|
$middleware->alias([
|
||||||
'admin' => \App\Http\Middleware\AdminMiddleware::class,
|
'admin' => \App\Http\Middleware\AdminMiddleware::class,
|
||||||
|
'restrict_hr' => \App\Http\Middleware\RestrictHrManager::class,
|
||||||
]);
|
]);
|
||||||
})
|
})
|
||||||
->withExceptions(function (Exceptions $exceptions): void {
|
->withExceptions(function (Exceptions $exceptions): void {
|
||||||
|
|||||||
@@ -20,6 +20,7 @@
|
|||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"fakerphp/faker": "^1.23",
|
"fakerphp/faker": "^1.23",
|
||||||
|
"laravel-lang/common": "^6.8",
|
||||||
"laravel/breeze": "^2.4",
|
"laravel/breeze": "^2.4",
|
||||||
"laravel/pail": "^1.2.5",
|
"laravel/pail": "^1.2.5",
|
||||||
"laravel/pint": "^1.27",
|
"laravel/pint": "^1.27",
|
||||||
|
|||||||
1939
composer.lock
generated
1939
composer.lock
generated
File diff suppressed because it is too large
Load Diff
@@ -78,7 +78,7 @@ return [
|
|||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'locale' => env('APP_LOCALE', 'en'),
|
'locale' => 'fr',
|
||||||
|
|
||||||
'fallback_locale' => env('APP_FALLBACK_LOCALE', 'en'),
|
'fallback_locale' => env('APP_FALLBACK_LOCALE', 'en'),
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,33 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
return new class extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*/
|
||||||
|
public function up(): void
|
||||||
|
{
|
||||||
|
Schema::create('security_alerts', function (Blueprint $table) {
|
||||||
|
$table->id();
|
||||||
|
$table->foreignId('user_id')->nullable()->constrained()->onDelete('set null');
|
||||||
|
$table->string('type'); // 'mass_assignment', 'directory_traversal', etc.
|
||||||
|
$table->string('endpoint')->nullable();
|
||||||
|
$table->json('payload')->nullable();
|
||||||
|
$table->string('ip_address')->nullable();
|
||||||
|
$table->text('user_agent')->nullable();
|
||||||
|
$table->timestamps();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*/
|
||||||
|
public function down(): void
|
||||||
|
{
|
||||||
|
Schema::dropIfExists('security_alerts');
|
||||||
|
}
|
||||||
|
};
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
return new class extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*/
|
||||||
|
public function up(): void
|
||||||
|
{
|
||||||
|
Schema::table('job_positions', function (Blueprint $table) {
|
||||||
|
$table->json('fpt_metadata')->nullable()->after('ai_bypass_base_prompt');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*/
|
||||||
|
public function down(): void
|
||||||
|
{
|
||||||
|
Schema::table('job_positions', function (Blueprint $table) {
|
||||||
|
$table->dropColumn('fpt_metadata');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
return new class extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*/
|
||||||
|
public function up(): void
|
||||||
|
{
|
||||||
|
Schema::table('job_positions', function (Blueprint $table) {
|
||||||
|
$table->timestamp('expires_at')->nullable()->after('description');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*/
|
||||||
|
public function down(): void
|
||||||
|
{
|
||||||
|
Schema::table('job_positions', function (Blueprint $table) {
|
||||||
|
$table->dropColumn('expires_at');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
@@ -0,0 +1,50 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
return new class extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*/
|
||||||
|
public function up(): void
|
||||||
|
{
|
||||||
|
Schema::table('candidates', function (Blueprint $table) {
|
||||||
|
$table->string('birth_name')->nullable()->after('user_id');
|
||||||
|
$table->string('usage_name')->nullable()->after('birth_name');
|
||||||
|
$table->string('first_name')->nullable()->after('usage_name');
|
||||||
|
$table->string('address')->nullable()->after('first_name');
|
||||||
|
$table->string('zip_code')->nullable()->after('address');
|
||||||
|
$table->date('birth_date')->nullable()->after('city');
|
||||||
|
$table->string('birth_place')->nullable()->after('birth_date');
|
||||||
|
$table->string('nationality')->nullable()->after('birth_place');
|
||||||
|
$table->string('current_situation')->nullable()->after('nationality');
|
||||||
|
$table->string('education_level')->nullable()->after('current_situation');
|
||||||
|
$table->boolean('has_driving_license')->default(false)->after('education_level');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*/
|
||||||
|
public function down(): void
|
||||||
|
{
|
||||||
|
Schema::table('candidates', function (Blueprint $table) {
|
||||||
|
$table->dropColumn([
|
||||||
|
'birth_name',
|
||||||
|
'usage_name',
|
||||||
|
'first_name',
|
||||||
|
'address',
|
||||||
|
'zip_code',
|
||||||
|
'birth_date',
|
||||||
|
'birth_place',
|
||||||
|
'nationality',
|
||||||
|
'current_situation',
|
||||||
|
'education_level',
|
||||||
|
'has_driving_license'
|
||||||
|
]);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
264
lang/en.json
Normal file
264
lang/en.json
Normal file
@@ -0,0 +1,264 @@
|
|||||||
|
{
|
||||||
|
"(and :count more error)": "(and :count more error)",
|
||||||
|
"(and :count more errors)": "(and :count more error)|(and :count more errors)|(and :count more errors)",
|
||||||
|
"A decryption key is required.": "A decryption key is required.",
|
||||||
|
"A new verification link has been sent to the email address you provided during registration.": "A new verification link has been sent to the email address you provided during registration.",
|
||||||
|
"A new verification link has been sent to your email address.": "A new verification link has been sent to your email address.",
|
||||||
|
"A Timeout Occurred": "A Timeout Occurred",
|
||||||
|
"Accept": "Accept",
|
||||||
|
"Accepted": "Accepted",
|
||||||
|
"Action": "Action",
|
||||||
|
"Actions": "Actions",
|
||||||
|
"Add": "Add",
|
||||||
|
"Add :name": "Add :name",
|
||||||
|
"Admin": "Admin",
|
||||||
|
"Agree": "Agree",
|
||||||
|
"All rights reserved.": "All rights reserved.",
|
||||||
|
"Already registered?": "Already registered?",
|
||||||
|
"Already Reported": "Already Reported",
|
||||||
|
"Archive": "Archive",
|
||||||
|
"Are you sure you want to delete your account?": "Are you sure you want to delete your account?",
|
||||||
|
"Assign": "Assign",
|
||||||
|
"Associate": "Associate",
|
||||||
|
"Attach": "Attach",
|
||||||
|
"Bad Gateway": "Bad Gateway",
|
||||||
|
"Bad Request": "Bad Request",
|
||||||
|
"Bandwidth Limit Exceeded": "Bandwidth Limit Exceeded",
|
||||||
|
"Browse": "Browse",
|
||||||
|
"Cancel": "Cancel",
|
||||||
|
"Choose": "Choose",
|
||||||
|
"Choose :name": "Choose :name",
|
||||||
|
"Choose File": "Choose File",
|
||||||
|
"Choose Image": "Choose Image",
|
||||||
|
"Click here to re-send the verification email.": "Click here to re-send the verification email.",
|
||||||
|
"Click to copy": "Click to copy",
|
||||||
|
"Client Closed Request": "Client Closed Request",
|
||||||
|
"Close": "Close",
|
||||||
|
"Collapse": "Collapse",
|
||||||
|
"Collapse All": "Collapse All",
|
||||||
|
"Comment": "Comment",
|
||||||
|
"Confirm": "Confirm",
|
||||||
|
"Confirm Password": "Confirm Password",
|
||||||
|
"Conflict": "Conflict",
|
||||||
|
"Connect": "Connect",
|
||||||
|
"Connection Closed Without Response": "Connection Closed Without Response",
|
||||||
|
"Connection Timed Out": "Connection Timed Out",
|
||||||
|
"Continue": "Continue",
|
||||||
|
"Create": "Create",
|
||||||
|
"Create :name": "Create :name",
|
||||||
|
"Created": "Created",
|
||||||
|
"Current Password": "Current Password",
|
||||||
|
"Dashboard": "Dashboard",
|
||||||
|
"Delete": "Delete",
|
||||||
|
"Delete :name": "Delete :name",
|
||||||
|
"Delete Account": "Delete Account",
|
||||||
|
"Detach": "Detach",
|
||||||
|
"Details": "Details",
|
||||||
|
"Disable": "Disable",
|
||||||
|
"Discard": "Discard",
|
||||||
|
"Done": "Done",
|
||||||
|
"Down": "Down",
|
||||||
|
"Duplicate": "Duplicate",
|
||||||
|
"Duplicate :name": "Duplicate :name",
|
||||||
|
"Edit": "Edit",
|
||||||
|
"Edit :name": "Edit :name",
|
||||||
|
"Email": "Email",
|
||||||
|
"email": "The :attribute field must be a valid email address.",
|
||||||
|
"Email Password Reset Link": "Email Password Reset Link",
|
||||||
|
"Enable": "Enable",
|
||||||
|
"Encrypted environment file already exists.": "Encrypted environment file already exists.",
|
||||||
|
"Encrypted environment file not found.": "Encrypted environment file not found.",
|
||||||
|
"Ensure your account is using a long, random password to stay secure.": "Ensure your account is using a long, random password to stay secure.",
|
||||||
|
"Environment file already exists.": "Environment file already exists.",
|
||||||
|
"Environment file not found.": "Environment file not found.",
|
||||||
|
"errors": "errors",
|
||||||
|
"Expand": "Expand",
|
||||||
|
"Expand All": "Expand All",
|
||||||
|
"Expectation Failed": "Expectation Failed",
|
||||||
|
"Explanation": "Explanation",
|
||||||
|
"Export": "Export",
|
||||||
|
"Export :name": "Export :name",
|
||||||
|
"Failed Dependency": "Failed Dependency",
|
||||||
|
"File": "File",
|
||||||
|
"Files": "Files",
|
||||||
|
"Forbidden": "Forbidden",
|
||||||
|
"Forgot your password?": "Forgot your password?",
|
||||||
|
"Forgot your password? No problem. Just let us know your email address and we will email you a password reset link that will allow you to choose a new one.": "Forgot your password? No problem. Just let us know your email address and we will email you a password reset link that will allow you to choose a new one.",
|
||||||
|
"Found": "Found",
|
||||||
|
"Gateway Timeout": "Gateway Timeout",
|
||||||
|
"Go Home": "Go Home",
|
||||||
|
"Go to page :page": "Go to page :page",
|
||||||
|
"Gone": "Gone",
|
||||||
|
"Hello!": "Hello!",
|
||||||
|
"Hide": "Hide",
|
||||||
|
"Hide :name": "Hide :name",
|
||||||
|
"Home": "Home",
|
||||||
|
"HTTP Version Not Supported": "HTTP Version Not Supported",
|
||||||
|
"I'm a teapot": "I'm a teapot",
|
||||||
|
"If you did not create an account, no further action is required.": "If you did not create an account, no further action is required.",
|
||||||
|
"If you did not request a password reset, no further action is required.": "If you did not request a password reset, no further action is required.",
|
||||||
|
"If you're having trouble clicking the \":actionText\" button, copy and paste the URL below\ninto your web browser:": "If you're having trouble clicking the \":actionText\" button, copy and paste the URL below\ninto your web browser:",
|
||||||
|
"IM Used": "IM Used",
|
||||||
|
"Image": "Image",
|
||||||
|
"Impersonate": "Impersonate",
|
||||||
|
"Impersonation": "Impersonation",
|
||||||
|
"Import": "Import",
|
||||||
|
"Import :name": "Import :name",
|
||||||
|
"Insufficient Storage": "Insufficient Storage",
|
||||||
|
"Internal Server Error": "Internal Server Error",
|
||||||
|
"Introduction": "Introduction",
|
||||||
|
"Invalid filename.": "Invalid filename.",
|
||||||
|
"Invalid JSON was returned from the route.": "Invalid JSON was returned from the route.",
|
||||||
|
"Invalid SSL Certificate": "Invalid SSL Certificate",
|
||||||
|
"length": "length",
|
||||||
|
"Length Required": "Length Required",
|
||||||
|
"Like": "Like",
|
||||||
|
"Load": "Load",
|
||||||
|
"Localize": "Localize",
|
||||||
|
"Location": "Location",
|
||||||
|
"Locked": "Locked",
|
||||||
|
"Log In": "Log In",
|
||||||
|
"Log in": "Log in",
|
||||||
|
"Log Out": "Log Out",
|
||||||
|
"Login": "Login",
|
||||||
|
"Logout": "Logout",
|
||||||
|
"Loop Detected": "Loop Detected",
|
||||||
|
"Maintenance Mode": "Maintenance Mode",
|
||||||
|
"Method Not Allowed": "Method Not Allowed",
|
||||||
|
"Misdirected Request": "Misdirected Request",
|
||||||
|
"Moved Permanently": "Moved Permanently",
|
||||||
|
"Multi-Status": "Multi-Status",
|
||||||
|
"Multiple Choices": "Multiple Choices",
|
||||||
|
"Name": "Name",
|
||||||
|
"name": "name",
|
||||||
|
"Network Authentication Required": "Network Authentication Required",
|
||||||
|
"Network Connect Timeout Error": "Network Connect Timeout Error",
|
||||||
|
"Network Read Timeout Error": "Network Read Timeout Error",
|
||||||
|
"New": "New",
|
||||||
|
"New :name": "New :name",
|
||||||
|
"New Password": "New Password",
|
||||||
|
"No": "No",
|
||||||
|
"No Content": "No Content",
|
||||||
|
"Non-Authoritative Information": "Non-Authoritative Information",
|
||||||
|
"Not Acceptable": "Not Acceptable",
|
||||||
|
"Not Extended": "Not Extended",
|
||||||
|
"Not Found": "Not Found",
|
||||||
|
"Not Implemented": "Not Implemented",
|
||||||
|
"Not Modified": "Not Modified",
|
||||||
|
"of": "of",
|
||||||
|
"OK": "OK",
|
||||||
|
"Once your account is deleted, all of its resources and data will be permanently deleted. Before deleting your account, please download any data or information that you wish to retain.": "Once your account is deleted, all of its resources and data will be permanently deleted. Before deleting your account, please download any data or information that you wish to retain.",
|
||||||
|
"Once your account is deleted, all of its resources and data will be permanently deleted. Please enter your password to confirm you would like to permanently delete your account.": "Once your account is deleted, all of its resources and data will be permanently deleted. Please enter your password to confirm you would like to permanently delete your account.",
|
||||||
|
"Open": "Open",
|
||||||
|
"Open in a current window": "Open in a current window",
|
||||||
|
"Open in a new window": "Open in a new window",
|
||||||
|
"Open in a parent frame": "Open in a parent frame",
|
||||||
|
"Open in the topmost frame": "Open in the topmost frame",
|
||||||
|
"Open on the website": "Open on the website",
|
||||||
|
"Origin Is Unreachable": "Origin Is Unreachable",
|
||||||
|
"Page Expired": "Page Expired",
|
||||||
|
"Pagination Navigation": "Pagination Navigation",
|
||||||
|
"Partial Content": "Partial Content",
|
||||||
|
"Password": "Password",
|
||||||
|
"password": "The provided password is incorrect.",
|
||||||
|
"Payload Too Large": "Payload Too Large",
|
||||||
|
"Payment Required": "Payment Required",
|
||||||
|
"Permanent Redirect": "Permanent Redirect",
|
||||||
|
"Please click the button below to verify your email address.": "Please click the button below to verify your email address.",
|
||||||
|
"Precondition Failed": "Precondition Failed",
|
||||||
|
"Precondition Required": "Precondition Required",
|
||||||
|
"Preview": "Preview",
|
||||||
|
"Price": "Price",
|
||||||
|
"Processing": "Processing",
|
||||||
|
"Profile": "Profile",
|
||||||
|
"Profile Information": "Profile Information",
|
||||||
|
"Proxy Authentication Required": "Proxy Authentication Required",
|
||||||
|
"Railgun Error": "Railgun Error",
|
||||||
|
"Range Not Satisfiable": "Range Not Satisfiable",
|
||||||
|
"Record": "Record",
|
||||||
|
"Regards,": "Regards,",
|
||||||
|
"Register": "Register",
|
||||||
|
"Remember me": "Remember me",
|
||||||
|
"Request Header Fields Too Large": "Request Header Fields Too Large",
|
||||||
|
"Request Timeout": "Request Timeout",
|
||||||
|
"Resend Verification Email": "Resend Verification Email",
|
||||||
|
"Reset Content": "Reset Content",
|
||||||
|
"Reset Password": "Reset Password",
|
||||||
|
"Reset your password": "Reset your password",
|
||||||
|
"Restore": "Restore",
|
||||||
|
"Restore :name": "Restore :name",
|
||||||
|
"results": "results",
|
||||||
|
"Retry With": "Retry With",
|
||||||
|
"Save": "Save",
|
||||||
|
"Save & Close": "Save & Close",
|
||||||
|
"Save & Return": "Save & Return",
|
||||||
|
"Save :name": "Save :name",
|
||||||
|
"Saved.": "Saved.",
|
||||||
|
"Search": "Search",
|
||||||
|
"Search :name": "Search :name",
|
||||||
|
"See Other": "See Other",
|
||||||
|
"Select": "Select",
|
||||||
|
"Select All": "Select All",
|
||||||
|
"Send": "Send",
|
||||||
|
"Server Error": "Server Error",
|
||||||
|
"Service Unavailable": "Service Unavailable",
|
||||||
|
"Session Has Expired": "Session Has Expired",
|
||||||
|
"Settings": "Settings",
|
||||||
|
"Show": "Show",
|
||||||
|
"Show :name": "Show :name",
|
||||||
|
"Show All": "Show All",
|
||||||
|
"Showing": "Showing",
|
||||||
|
"Sign In": "Sign In",
|
||||||
|
"Solve": "Solve",
|
||||||
|
"SSL Handshake Failed": "SSL Handshake Failed",
|
||||||
|
"Start": "Start",
|
||||||
|
"Stop": "Stop",
|
||||||
|
"Submit": "Submit",
|
||||||
|
"Subscribe": "Subscribe",
|
||||||
|
"Switch": "Switch",
|
||||||
|
"Switch To Role": "Switch To Role",
|
||||||
|
"Switching Protocols": "Switching Protocols",
|
||||||
|
"Tag": "Tag",
|
||||||
|
"Tags": "Tags",
|
||||||
|
"Temporary Redirect": "Temporary Redirect",
|
||||||
|
"Thanks for signing up! Before getting started, could you verify your email address by clicking on the link we just emailed to you? If you didn't receive the email, we will gladly send you another.": "Thanks for signing up! Before getting started, could you verify your email address by clicking on the link we just emailed to you? If you didn't receive the email, we will gladly send you another.",
|
||||||
|
"The given data was invalid.": "The given data was invalid.",
|
||||||
|
"The response is not a streamed response.": "The response is not a streamed response.",
|
||||||
|
"The response is not a view.": "The response is not a view.",
|
||||||
|
"This action is unauthorized.": "This action is unauthorized.",
|
||||||
|
"This is a secure area of the application. Please confirm your password before continuing.": "This is a secure area of the application. Please confirm your password before continuing.",
|
||||||
|
"This password reset link will expire in :count minutes.": "This password reset link will expire in :count minutes.",
|
||||||
|
"to": "to",
|
||||||
|
"Toggle navigation": "Toggle navigation",
|
||||||
|
"Too Early": "Too Early",
|
||||||
|
"Too Many Requests": "Too Many Requests",
|
||||||
|
"Translate": "Translate",
|
||||||
|
"Translate It": "Translate It",
|
||||||
|
"Unauthorized": "Unauthorized",
|
||||||
|
"Unavailable For Legal Reasons": "Unavailable For Legal Reasons",
|
||||||
|
"Unknown Error": "Unknown Error",
|
||||||
|
"Unpack": "Unpack",
|
||||||
|
"Unprocessable Entity": "Unprocessable Entity",
|
||||||
|
"Unsubscribe": "Unsubscribe",
|
||||||
|
"Unsupported Media Type": "Unsupported Media Type",
|
||||||
|
"Up": "Up",
|
||||||
|
"Update": "Update",
|
||||||
|
"Update :name": "Update :name",
|
||||||
|
"Update Password": "Update Password",
|
||||||
|
"Update your account's profile information and email address.": "Update your account's profile information and email address.",
|
||||||
|
"Upgrade Required": "Upgrade Required",
|
||||||
|
"URI Too Long": "URI Too Long",
|
||||||
|
"Use Proxy": "Use Proxy",
|
||||||
|
"User": "User",
|
||||||
|
"Variant Also Negotiates": "Variant Also Negotiates",
|
||||||
|
"Verify Email Address": "Verify Email Address",
|
||||||
|
"Verify your email address": "Verify your email address",
|
||||||
|
"View": "View",
|
||||||
|
"View :name": "View :name",
|
||||||
|
"Web Server is Down": "Web Server is Down",
|
||||||
|
"Whoops!": "Whoops!",
|
||||||
|
"Yes": "Yes",
|
||||||
|
"You are receiving this email because we received a password reset request for your account.": "You are receiving this email because we received a password reset request for your account.",
|
||||||
|
"You're logged in!": "You're logged in!",
|
||||||
|
"Your email address is unverified.": "Your email address is unverified."
|
||||||
|
}
|
||||||
119
lang/en/actions.php
Normal file
119
lang/en/actions.php
Normal file
@@ -0,0 +1,119 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
return [
|
||||||
|
'accept' => 'Accept',
|
||||||
|
'action' => 'Action',
|
||||||
|
'actions' => 'Actions',
|
||||||
|
'add' => 'Add',
|
||||||
|
'admin' => 'Admin',
|
||||||
|
'agree' => 'Agree',
|
||||||
|
'archive' => 'Archive',
|
||||||
|
'assign' => 'Assign',
|
||||||
|
'associate' => 'Associate',
|
||||||
|
'attach' => 'Attach',
|
||||||
|
'browse' => 'Browse',
|
||||||
|
'cancel' => 'Cancel',
|
||||||
|
'choose' => 'Choose',
|
||||||
|
'choose_file' => 'Choose File',
|
||||||
|
'choose_image' => 'Choose Image',
|
||||||
|
'click_to_copy' => 'Click to copy',
|
||||||
|
'close' => 'Close',
|
||||||
|
'collapse' => 'Collapse',
|
||||||
|
'collapse_all' => 'Collapse All',
|
||||||
|
'comment' => 'Comment',
|
||||||
|
'confirm' => 'Confirm',
|
||||||
|
'connect' => 'Connect',
|
||||||
|
'create' => 'Create',
|
||||||
|
'delete' => 'Delete',
|
||||||
|
'detach' => 'Detach',
|
||||||
|
'details' => 'Details',
|
||||||
|
'disable' => 'Disable',
|
||||||
|
'discard' => 'Discard',
|
||||||
|
'done' => 'Done',
|
||||||
|
'down' => 'Down',
|
||||||
|
'duplicate' => 'Duplicate',
|
||||||
|
'edit' => 'Edit',
|
||||||
|
'enable' => 'Enable',
|
||||||
|
'expand' => 'Expand',
|
||||||
|
'expand_all' => 'Expand All',
|
||||||
|
'explanation' => 'Explanation',
|
||||||
|
'export' => 'Export',
|
||||||
|
'file' => 'File',
|
||||||
|
'files' => 'Files',
|
||||||
|
'go_home' => 'Go Home',
|
||||||
|
'hide' => 'Hide',
|
||||||
|
'home' => 'Home',
|
||||||
|
'image' => 'Image',
|
||||||
|
'impersonate' => 'Impersonate',
|
||||||
|
'impersonation' => 'Impersonation',
|
||||||
|
'import' => 'Import',
|
||||||
|
'introduction' => 'Introduction',
|
||||||
|
'like' => 'Like',
|
||||||
|
'load' => 'Load',
|
||||||
|
'localize' => 'Localize',
|
||||||
|
'log_in' => 'Log In',
|
||||||
|
'log_out' => 'Log Out',
|
||||||
|
'named' => [
|
||||||
|
'add' => 'Add :name',
|
||||||
|
'choose' => 'Choose :name',
|
||||||
|
'create' => 'Create :name',
|
||||||
|
'delete' => 'Delete :name',
|
||||||
|
'duplicate' => 'Duplicate :name',
|
||||||
|
'edit' => 'Edit :name',
|
||||||
|
'export' => 'Export :name',
|
||||||
|
'hide' => 'Hide :name',
|
||||||
|
'import' => 'Import :name',
|
||||||
|
'new' => 'New :name',
|
||||||
|
'restore' => 'Restore :name',
|
||||||
|
'save' => 'Save :name',
|
||||||
|
'search' => 'Search :name',
|
||||||
|
'show' => 'Show :name',
|
||||||
|
'update' => 'Update :name',
|
||||||
|
'view' => 'View :name',
|
||||||
|
],
|
||||||
|
'new' => 'New',
|
||||||
|
'no' => 'No',
|
||||||
|
'open' => 'Open',
|
||||||
|
'open_website' => 'Open on the website',
|
||||||
|
'preview' => 'Preview',
|
||||||
|
'price' => 'Price',
|
||||||
|
'record' => 'Record',
|
||||||
|
'restore' => 'Restore',
|
||||||
|
'save' => 'Save',
|
||||||
|
'save_and_close' => 'Save & Close',
|
||||||
|
'save_and_return' => 'Save & Return',
|
||||||
|
'search' => 'Search',
|
||||||
|
'select' => 'Select',
|
||||||
|
'select_all' => 'Select All',
|
||||||
|
'send' => 'Send',
|
||||||
|
'settings' => 'Settings',
|
||||||
|
'show' => 'Show',
|
||||||
|
'show_all' => 'Show All',
|
||||||
|
'sign_in' => 'Sign In',
|
||||||
|
'solve' => 'Solve',
|
||||||
|
'start' => 'Start',
|
||||||
|
'stop' => 'Stop',
|
||||||
|
'submit' => 'Submit',
|
||||||
|
'subscribe' => 'Subscribe',
|
||||||
|
'switch' => 'Switch',
|
||||||
|
'switch_to_role' => 'Switch To Role',
|
||||||
|
'tag' => 'Tag',
|
||||||
|
'tags' => 'Tags',
|
||||||
|
'target_link' => [
|
||||||
|
'blank' => 'Open in a new window',
|
||||||
|
'parent' => 'Open in a parent frame',
|
||||||
|
'self' => 'Open in a current window',
|
||||||
|
'top' => 'Open in the topmost frame',
|
||||||
|
],
|
||||||
|
'translate' => 'Translate',
|
||||||
|
'translate_it' => 'Translate It',
|
||||||
|
'unpack' => 'Unpack',
|
||||||
|
'unsubscribe' => 'Unsubscribe',
|
||||||
|
'up' => 'Up',
|
||||||
|
'update' => 'Update',
|
||||||
|
'user' => 'User',
|
||||||
|
'view' => 'View',
|
||||||
|
'yes' => 'Yes',
|
||||||
|
];
|
||||||
9
lang/en/auth.php
Normal file
9
lang/en/auth.php
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
return [
|
||||||
|
'failed' => 'These credentials do not match our records.',
|
||||||
|
'password' => 'The provided password is incorrect.',
|
||||||
|
'throttle' => 'Too many login attempts. Please try again in :seconds seconds.',
|
||||||
|
];
|
||||||
84
lang/en/http-statuses.php
Normal file
84
lang/en/http-statuses.php
Normal file
@@ -0,0 +1,84 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
return [
|
||||||
|
'0' => 'Unknown Error',
|
||||||
|
'100' => 'Continue',
|
||||||
|
'101' => 'Switching Protocols',
|
||||||
|
'102' => 'Processing',
|
||||||
|
'200' => 'OK',
|
||||||
|
'201' => 'Created',
|
||||||
|
'202' => 'Accepted',
|
||||||
|
'203' => 'Non-Authoritative Information',
|
||||||
|
'204' => 'No Content',
|
||||||
|
'205' => 'Reset Content',
|
||||||
|
'206' => 'Partial Content',
|
||||||
|
'207' => 'Multi-Status',
|
||||||
|
'208' => 'Already Reported',
|
||||||
|
'226' => 'IM Used',
|
||||||
|
'300' => 'Multiple Choices',
|
||||||
|
'301' => 'Moved Permanently',
|
||||||
|
'302' => 'Found',
|
||||||
|
'303' => 'See Other',
|
||||||
|
'304' => 'Not Modified',
|
||||||
|
'305' => 'Use Proxy',
|
||||||
|
'307' => 'Temporary Redirect',
|
||||||
|
'308' => 'Permanent Redirect',
|
||||||
|
'400' => 'Bad Request',
|
||||||
|
'401' => 'Unauthorized',
|
||||||
|
'402' => 'Payment Required',
|
||||||
|
'403' => 'Forbidden',
|
||||||
|
'404' => 'Not Found',
|
||||||
|
'405' => 'Method Not Allowed',
|
||||||
|
'406' => 'Not Acceptable',
|
||||||
|
'407' => 'Proxy Authentication Required',
|
||||||
|
'408' => 'Request Timeout',
|
||||||
|
'409' => 'Conflict',
|
||||||
|
'410' => 'Gone',
|
||||||
|
'411' => 'Length Required',
|
||||||
|
'412' => 'Precondition Failed',
|
||||||
|
'413' => 'Payload Too Large',
|
||||||
|
'414' => 'URI Too Long',
|
||||||
|
'415' => 'Unsupported Media Type',
|
||||||
|
'416' => 'Range Not Satisfiable',
|
||||||
|
'417' => 'Expectation Failed',
|
||||||
|
'418' => 'I\'m a teapot',
|
||||||
|
'419' => 'Session Has Expired',
|
||||||
|
'421' => 'Misdirected Request',
|
||||||
|
'422' => 'Unprocessable Entity',
|
||||||
|
'423' => 'Locked',
|
||||||
|
'424' => 'Failed Dependency',
|
||||||
|
'425' => 'Too Early',
|
||||||
|
'426' => 'Upgrade Required',
|
||||||
|
'428' => 'Precondition Required',
|
||||||
|
'429' => 'Too Many Requests',
|
||||||
|
'431' => 'Request Header Fields Too Large',
|
||||||
|
'444' => 'Connection Closed Without Response',
|
||||||
|
'449' => 'Retry With',
|
||||||
|
'451' => 'Unavailable For Legal Reasons',
|
||||||
|
'499' => 'Client Closed Request',
|
||||||
|
'500' => 'Internal Server Error',
|
||||||
|
'501' => 'Not Implemented',
|
||||||
|
'502' => 'Bad Gateway',
|
||||||
|
'503' => 'Maintenance Mode',
|
||||||
|
'504' => 'Gateway Timeout',
|
||||||
|
'505' => 'HTTP Version Not Supported',
|
||||||
|
'506' => 'Variant Also Negotiates',
|
||||||
|
'507' => 'Insufficient Storage',
|
||||||
|
'508' => 'Loop Detected',
|
||||||
|
'509' => 'Bandwidth Limit Exceeded',
|
||||||
|
'510' => 'Not Extended',
|
||||||
|
'511' => 'Network Authentication Required',
|
||||||
|
'520' => 'Unknown Error',
|
||||||
|
'521' => 'Web Server is Down',
|
||||||
|
'522' => 'Connection Timed Out',
|
||||||
|
'523' => 'Origin Is Unreachable',
|
||||||
|
'524' => 'A Timeout Occurred',
|
||||||
|
'525' => 'SSL Handshake Failed',
|
||||||
|
'526' => 'Invalid SSL Certificate',
|
||||||
|
'527' => 'Railgun Error',
|
||||||
|
'598' => 'Network Read Timeout Error',
|
||||||
|
'599' => 'Network Connect Timeout Error',
|
||||||
|
'unknownError' => 'Unknown Error',
|
||||||
|
];
|
||||||
8
lang/en/pagination.php
Normal file
8
lang/en/pagination.php
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
return [
|
||||||
|
'next' => 'Next »',
|
||||||
|
'previous' => '« Previous',
|
||||||
|
];
|
||||||
11
lang/en/passwords.php
Normal file
11
lang/en/passwords.php
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
return [
|
||||||
|
'reset' => 'Your password has been reset.',
|
||||||
|
'sent' => 'We have emailed your password reset link.',
|
||||||
|
'throttled' => 'Please wait before retrying.',
|
||||||
|
'token' => 'This password reset token is invalid.',
|
||||||
|
'user' => 'We can\'t find a user with that email address.',
|
||||||
|
];
|
||||||
288
lang/en/validation.php
Normal file
288
lang/en/validation.php
Normal file
@@ -0,0 +1,288 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
return [
|
||||||
|
'accepted' => 'The :attribute field must be accepted.',
|
||||||
|
'accepted_if' => 'The :attribute field must be accepted when :other is :value.',
|
||||||
|
'active_url' => 'The :attribute field must be a valid URL.',
|
||||||
|
'after' => 'The :attribute field must be a date after :date.',
|
||||||
|
'after_or_equal' => 'The :attribute field must be a date after or equal to :date.',
|
||||||
|
'alpha' => 'The :attribute field must only contain letters.',
|
||||||
|
'alpha_dash' => 'The :attribute field must only contain letters, numbers, dashes, and underscores.',
|
||||||
|
'alpha_num' => 'The :attribute field must only contain letters and numbers.',
|
||||||
|
'any_of' => 'The :attribute field is invalid.',
|
||||||
|
'array' => 'The :attribute field must be an array.',
|
||||||
|
'ascii' => 'The :attribute field must only contain single-byte alphanumeric characters and symbols.',
|
||||||
|
'before' => 'The :attribute field must be a date before :date.',
|
||||||
|
'before_or_equal' => 'The :attribute field must be a date before or equal to :date.',
|
||||||
|
'between' => [
|
||||||
|
'array' => 'The :attribute field must have between :min and :max items.',
|
||||||
|
'file' => 'The :attribute field must be between :min and :max kilobytes.',
|
||||||
|
'numeric' => 'The :attribute field must be between :min and :max.',
|
||||||
|
'string' => 'The :attribute field must be between :min and :max characters.',
|
||||||
|
],
|
||||||
|
'boolean' => 'The :attribute field must be true or false.',
|
||||||
|
'can' => 'The :attribute field contains an unauthorized value.',
|
||||||
|
'confirmed' => 'The :attribute field confirmation does not match.',
|
||||||
|
'contains' => 'The :attribute field is missing a required value.',
|
||||||
|
'current_password' => 'The password is incorrect.',
|
||||||
|
'date' => 'The :attribute field must be a valid date.',
|
||||||
|
'date_equals' => 'The :attribute field must be a date equal to :date.',
|
||||||
|
'date_format' => 'The :attribute field must match the format :format.',
|
||||||
|
'decimal' => 'The :attribute field must have :decimal decimal places.',
|
||||||
|
'declined' => 'The :attribute field must be declined.',
|
||||||
|
'declined_if' => 'The :attribute field must be declined when :other is :value.',
|
||||||
|
'different' => 'The :attribute field and :other must be different.',
|
||||||
|
'digits' => 'The :attribute field must be :digits digits.',
|
||||||
|
'digits_between' => 'The :attribute field must be between :min and :max digits.',
|
||||||
|
'dimensions' => 'The :attribute field has invalid image dimensions.',
|
||||||
|
'distinct' => 'The :attribute field has a duplicate value.',
|
||||||
|
'doesnt_contain' => 'The :attribute field must not contain any of the following: :values.',
|
||||||
|
'doesnt_end_with' => 'The :attribute field must not end with one of the following: :values.',
|
||||||
|
'doesnt_start_with' => 'The :attribute field must not start with one of the following: :values.',
|
||||||
|
'email' => 'The :attribute field must be a valid email address.',
|
||||||
|
'encoding' => 'The :attribute field must be encoded in :encoding.',
|
||||||
|
'ends_with' => 'The :attribute field must end with one of the following: :values.',
|
||||||
|
'enum' => 'The selected :attribute is invalid.',
|
||||||
|
'exists' => 'The selected :attribute is invalid.',
|
||||||
|
'extensions' => 'The :attribute field must have one of the following extensions: :values.',
|
||||||
|
'file' => 'The :attribute field must be a file.',
|
||||||
|
'filled' => 'The :attribute field must have a value.',
|
||||||
|
'gt' => [
|
||||||
|
'array' => 'The :attribute field must have more than :value items.',
|
||||||
|
'file' => 'The :attribute field must be greater than :value kilobytes.',
|
||||||
|
'numeric' => 'The :attribute field must be greater than :value.',
|
||||||
|
'string' => 'The :attribute field must be greater than :value characters.',
|
||||||
|
],
|
||||||
|
'gte' => [
|
||||||
|
'array' => 'The :attribute field must have :value items or more.',
|
||||||
|
'file' => 'The :attribute field must be greater than or equal to :value kilobytes.',
|
||||||
|
'numeric' => 'The :attribute field must be greater than or equal to :value.',
|
||||||
|
'string' => 'The :attribute field must be greater than or equal to :value characters.',
|
||||||
|
],
|
||||||
|
'hex_color' => 'The :attribute field must be a valid hexadecimal color.',
|
||||||
|
'image' => 'The :attribute field must be an image.',
|
||||||
|
'in' => 'The selected :attribute is invalid.',
|
||||||
|
'in_array' => 'The :attribute field must exist in :other.',
|
||||||
|
'in_array_keys' => 'The :attribute field must contain at least one of the following keys: :values.',
|
||||||
|
'integer' => 'The :attribute field must be an integer.',
|
||||||
|
'ip' => 'The :attribute field must be a valid IP address.',
|
||||||
|
'ipv4' => 'The :attribute field must be a valid IPv4 address.',
|
||||||
|
'ipv6' => 'The :attribute field must be a valid IPv6 address.',
|
||||||
|
'json' => 'The :attribute field must be a valid JSON string.',
|
||||||
|
'list' => 'The :attribute field must be a list.',
|
||||||
|
'lowercase' => 'The :attribute field must be lowercase.',
|
||||||
|
'lt' => [
|
||||||
|
'array' => 'The :attribute field must have less than :value items.',
|
||||||
|
'file' => 'The :attribute field must be less than :value kilobytes.',
|
||||||
|
'numeric' => 'The :attribute field must be less than :value.',
|
||||||
|
'string' => 'The :attribute field must be less than :value characters.',
|
||||||
|
],
|
||||||
|
'lte' => [
|
||||||
|
'array' => 'The :attribute field must not have more than :value items.',
|
||||||
|
'file' => 'The :attribute field must be less than or equal to :value kilobytes.',
|
||||||
|
'numeric' => 'The :attribute field must be less than or equal to :value.',
|
||||||
|
'string' => 'The :attribute field must be less than or equal to :value characters.',
|
||||||
|
],
|
||||||
|
'mac_address' => 'The :attribute field must be a valid MAC address.',
|
||||||
|
'max' => [
|
||||||
|
'array' => 'The :attribute field must not have more than :max items.',
|
||||||
|
'file' => 'The :attribute field must not be greater than :max kilobytes.',
|
||||||
|
'numeric' => 'The :attribute field must not be greater than :max.',
|
||||||
|
'string' => 'The :attribute field must not be greater than :max characters.',
|
||||||
|
],
|
||||||
|
'max_digits' => 'The :attribute field must not have more than :max digits.',
|
||||||
|
'mimes' => 'The :attribute field must be a file of type: :values.',
|
||||||
|
'mimetypes' => 'The :attribute field must be a file of type: :values.',
|
||||||
|
'min' => [
|
||||||
|
'array' => 'The :attribute field must have at least :min items.',
|
||||||
|
'file' => 'The :attribute field must be at least :min kilobytes.',
|
||||||
|
'numeric' => 'The :attribute field must be at least :min.',
|
||||||
|
'string' => 'The :attribute field must be at least :min characters.',
|
||||||
|
],
|
||||||
|
'min_digits' => 'The :attribute field must have at least :min digits.',
|
||||||
|
'missing' => 'The :attribute field must be missing.',
|
||||||
|
'missing_if' => 'The :attribute field must be missing when :other is :value.',
|
||||||
|
'missing_unless' => 'The :attribute field must be missing unless :other is :value.',
|
||||||
|
'missing_with' => 'The :attribute field must be missing when :values is present.',
|
||||||
|
'missing_with_all' => 'The :attribute field must be missing when :values are present.',
|
||||||
|
'multiple_of' => 'The :attribute field must be a multiple of :value.',
|
||||||
|
'not_in' => 'The selected :attribute is invalid.',
|
||||||
|
'not_regex' => 'The :attribute field format is invalid.',
|
||||||
|
'numeric' => 'The :attribute field must be a number.',
|
||||||
|
'password' => [
|
||||||
|
'letters' => 'The :attribute field must contain at least one letter.',
|
||||||
|
'mixed' => 'The :attribute field must contain at least one uppercase and one lowercase letter.',
|
||||||
|
'numbers' => 'The :attribute field must contain at least one number.',
|
||||||
|
'symbols' => 'The :attribute field must contain at least one symbol.',
|
||||||
|
'uncompromised' => 'The given :attribute has appeared in a data leak. Please choose a different :attribute.',
|
||||||
|
],
|
||||||
|
'present' => 'The :attribute field must be present.',
|
||||||
|
'present_if' => 'The :attribute field must be present when :other is :value.',
|
||||||
|
'present_unless' => 'The :attribute field must be present unless :other is :value.',
|
||||||
|
'present_with' => 'The :attribute field must be present when :values is present.',
|
||||||
|
'present_with_all' => 'The :attribute field must be present when :values are present.',
|
||||||
|
'prohibited' => 'The :attribute field is prohibited.',
|
||||||
|
'prohibited_if' => 'The :attribute field is prohibited when :other is :value.',
|
||||||
|
'prohibited_if_accepted' => 'The :attribute field is prohibited when :other is accepted.',
|
||||||
|
'prohibited_if_declined' => 'The :attribute field is prohibited when :other is declined.',
|
||||||
|
'prohibited_unless' => 'The :attribute field is prohibited unless :other is in :values.',
|
||||||
|
'prohibits' => 'The :attribute field prohibits :other from being present.',
|
||||||
|
'regex' => 'The :attribute field format is invalid.',
|
||||||
|
'required' => 'The :attribute field is required.',
|
||||||
|
'required_array_keys' => 'The :attribute field must contain entries for: :values.',
|
||||||
|
'required_if' => 'The :attribute field is required when :other is :value.',
|
||||||
|
'required_if_accepted' => 'The :attribute field is required when :other is accepted.',
|
||||||
|
'required_if_declined' => 'The :attribute field is required when :other is declined.',
|
||||||
|
'required_unless' => 'The :attribute field is required unless :other is in :values.',
|
||||||
|
'required_with' => 'The :attribute field is required when :values is present.',
|
||||||
|
'required_with_all' => 'The :attribute field is required when :values are present.',
|
||||||
|
'required_without' => 'The :attribute field is required when :values is not present.',
|
||||||
|
'required_without_all' => 'The :attribute field is required when none of :values are present.',
|
||||||
|
'same' => 'The :attribute field must match :other.',
|
||||||
|
'size' => [
|
||||||
|
'array' => 'The :attribute field must contain :size items.',
|
||||||
|
'file' => 'The :attribute field must be :size kilobytes.',
|
||||||
|
'numeric' => 'The :attribute field must be :size.',
|
||||||
|
'string' => 'The :attribute field must be :size characters.',
|
||||||
|
],
|
||||||
|
'starts_with' => 'The :attribute field must start with one of the following: :values.',
|
||||||
|
'string' => 'The :attribute field must be a string.',
|
||||||
|
'timezone' => 'The :attribute field must be a valid timezone.',
|
||||||
|
'ulid' => 'The :attribute field must be a valid ULID.',
|
||||||
|
'unique' => 'The :attribute has already been taken.',
|
||||||
|
'uploaded' => 'The :attribute failed to upload.',
|
||||||
|
'uppercase' => 'The :attribute field must be uppercase.',
|
||||||
|
'url' => 'The :attribute field must be a valid URL.',
|
||||||
|
'uuid' => 'The :attribute field must be a valid UUID.',
|
||||||
|
'attributes' => [
|
||||||
|
'address' => 'address',
|
||||||
|
'affiliate_url' => 'affiliate URL',
|
||||||
|
'age' => 'age',
|
||||||
|
'amount' => 'amount',
|
||||||
|
'announcement' => 'announcement',
|
||||||
|
'area' => 'area',
|
||||||
|
'audience_prize' => 'audience prize',
|
||||||
|
'audience_winner' => 'audience winner',
|
||||||
|
'available' => 'available',
|
||||||
|
'birthday' => 'birthday',
|
||||||
|
'body' => 'body',
|
||||||
|
'city' => 'city',
|
||||||
|
'color' => 'color',
|
||||||
|
'company' => 'company',
|
||||||
|
'compilation' => 'compilation',
|
||||||
|
'concept' => 'concept',
|
||||||
|
'conditions' => 'conditions',
|
||||||
|
'content' => 'content',
|
||||||
|
'contest' => 'contest',
|
||||||
|
'country' => 'country',
|
||||||
|
'cover' => 'cover',
|
||||||
|
'created_at' => 'created at',
|
||||||
|
'creator' => 'creator',
|
||||||
|
'currency' => 'currency',
|
||||||
|
'current_password' => 'current password',
|
||||||
|
'customer' => 'customer',
|
||||||
|
'date' => 'date',
|
||||||
|
'date_of_birth' => 'date of birth',
|
||||||
|
'dates' => 'dates',
|
||||||
|
'day' => 'day',
|
||||||
|
'deleted_at' => 'deleted at',
|
||||||
|
'description' => 'description',
|
||||||
|
'display_type' => 'display type',
|
||||||
|
'district' => 'district',
|
||||||
|
'duration' => 'duration',
|
||||||
|
'email' => 'email',
|
||||||
|
'excerpt' => 'excerpt',
|
||||||
|
'filter' => 'filter',
|
||||||
|
'finished_at' => 'finished at',
|
||||||
|
'first_name' => 'first name',
|
||||||
|
'gender' => 'gender',
|
||||||
|
'grand_prize' => 'grand prize',
|
||||||
|
'group' => 'group',
|
||||||
|
'hour' => 'hour',
|
||||||
|
'image' => 'image',
|
||||||
|
'image_desktop' => 'desktop image',
|
||||||
|
'image_main' => 'main image',
|
||||||
|
'image_mobile' => 'mobile image',
|
||||||
|
'images' => 'images',
|
||||||
|
'is_audience_winner' => 'is audience winner',
|
||||||
|
'is_hidden' => 'is hidden',
|
||||||
|
'is_subscribed' => 'is subscribed',
|
||||||
|
'is_visible' => 'is visible',
|
||||||
|
'is_winner' => 'is winner',
|
||||||
|
'items' => 'items',
|
||||||
|
'key' => 'key',
|
||||||
|
'last_name' => 'last name',
|
||||||
|
'lesson' => 'lesson',
|
||||||
|
'line_address_1' => 'line address 1',
|
||||||
|
'line_address_2' => 'line address 2',
|
||||||
|
'login' => 'login',
|
||||||
|
'message' => 'message',
|
||||||
|
'middle_name' => 'middle name',
|
||||||
|
'minute' => 'minute',
|
||||||
|
'mobile' => 'mobile',
|
||||||
|
'month' => 'month',
|
||||||
|
'name' => 'name',
|
||||||
|
'national_code' => 'national code',
|
||||||
|
'number' => 'number',
|
||||||
|
'password' => 'password',
|
||||||
|
'password_confirmation' => 'password confirmation',
|
||||||
|
'phone' => 'phone',
|
||||||
|
'photo' => 'photo',
|
||||||
|
'portfolio' => 'portfolio',
|
||||||
|
'postal_code' => 'postal code',
|
||||||
|
'preview' => 'preview',
|
||||||
|
'price' => 'price',
|
||||||
|
'product_id' => 'product ID',
|
||||||
|
'product_uid' => 'product UID',
|
||||||
|
'product_uuid' => 'product UUID',
|
||||||
|
'promo_code' => 'promo code',
|
||||||
|
'province' => 'province',
|
||||||
|
'quantity' => 'quantity',
|
||||||
|
'reason' => 'reason',
|
||||||
|
'recaptcha_response_field' => 'recaptcha response field',
|
||||||
|
'referee' => 'referee',
|
||||||
|
'referees' => 'referees',
|
||||||
|
'region' => 'region',
|
||||||
|
'reject_reason' => 'reject reason',
|
||||||
|
'remember' => 'remember',
|
||||||
|
'restored_at' => 'restored at',
|
||||||
|
'result_text_under_image' => 'result text under image',
|
||||||
|
'role' => 'role',
|
||||||
|
'rule' => 'rule',
|
||||||
|
'rules' => 'rules',
|
||||||
|
'second' => 'second',
|
||||||
|
'sex' => 'sex',
|
||||||
|
'shipment' => 'shipment',
|
||||||
|
'short_text' => 'short text',
|
||||||
|
'size' => 'size',
|
||||||
|
'skills' => 'skills',
|
||||||
|
'slug' => 'slug',
|
||||||
|
'specialization' => 'specialization',
|
||||||
|
'started_at' => 'started at',
|
||||||
|
'state' => 'state',
|
||||||
|
'status' => 'status',
|
||||||
|
'street' => 'street',
|
||||||
|
'student' => 'student',
|
||||||
|
'subject' => 'subject',
|
||||||
|
'tag' => 'tag',
|
||||||
|
'tags' => 'tags',
|
||||||
|
'teacher' => 'teacher',
|
||||||
|
'terms' => 'terms',
|
||||||
|
'test_description' => 'test description',
|
||||||
|
'test_locale' => 'test locale',
|
||||||
|
'test_name' => 'test name',
|
||||||
|
'text' => 'text',
|
||||||
|
'time' => 'time',
|
||||||
|
'title' => 'title',
|
||||||
|
'type' => 'type',
|
||||||
|
'updated_at' => 'updated at',
|
||||||
|
'user' => 'user',
|
||||||
|
'username' => 'username',
|
||||||
|
'value' => 'value',
|
||||||
|
'winner' => 'winner',
|
||||||
|
'work' => 'work',
|
||||||
|
'year' => 'year',
|
||||||
|
],
|
||||||
|
];
|
||||||
264
lang/fr.json
Normal file
264
lang/fr.json
Normal file
@@ -0,0 +1,264 @@
|
|||||||
|
{
|
||||||
|
"(and :count more error)": "(et :count erreur en plus)",
|
||||||
|
"(and :count more errors)": "(et :count erreur en plus)|(et :count erreurs en plus)|(et :count erreurs en plus)",
|
||||||
|
"A decryption key is required.": "Une clé de déchiffrement est requise.",
|
||||||
|
"A new verification link has been sent to the email address you provided during registration.": "Un nouveau lien de vérification a été envoyé à l'adresse e-mail que vous avez indiquée lors de votre inscription.",
|
||||||
|
"A new verification link has been sent to your email address.": "Un nouveau lien de vérification a été envoyé à votre adresse e-mail.",
|
||||||
|
"A Timeout Occurred": "Temps d'attente dépassé",
|
||||||
|
"Accept": "Accepter",
|
||||||
|
"Accepted": "Accepté",
|
||||||
|
"Action": "Action",
|
||||||
|
"Actions": "Actions",
|
||||||
|
"Add": "Ajouter",
|
||||||
|
"Add :name": "Ajouter :name",
|
||||||
|
"Admin": "Administrateur",
|
||||||
|
"Agree": "Accepter",
|
||||||
|
"All rights reserved.": "Tous droits réservés.",
|
||||||
|
"Already registered?": "Déjà inscrit ?",
|
||||||
|
"Already Reported": "Déjà rapporté",
|
||||||
|
"Archive": "Archive",
|
||||||
|
"Are you sure you want to delete your account?": "Êtes-vous sûr de vouloir supprimer votre compte ?",
|
||||||
|
"Assign": "Attribuer",
|
||||||
|
"Associate": "Associé",
|
||||||
|
"Attach": "Attacher",
|
||||||
|
"Bad Gateway": "Passerelle invalide",
|
||||||
|
"Bad Request": "Requête erronée",
|
||||||
|
"Bandwidth Limit Exceeded": "Limite de bande passante dépassée",
|
||||||
|
"Browse": "Parcourir",
|
||||||
|
"Cancel": "Annuler",
|
||||||
|
"Choose": "Choisir",
|
||||||
|
"Choose :name": "Choisir :name",
|
||||||
|
"Choose File": "Choisir le fichier",
|
||||||
|
"Choose Image": "Choisir une image",
|
||||||
|
"Click here to re-send the verification email.": "Cliquez ici pour renvoyer l'e-mail de vérification.",
|
||||||
|
"Click to copy": "Cliquer pour copier",
|
||||||
|
"Client Closed Request": "Demande fermée par le client",
|
||||||
|
"Close": "Fermer",
|
||||||
|
"Collapse": "Réduire",
|
||||||
|
"Collapse All": "Réduire tout",
|
||||||
|
"Comment": "Commentaire",
|
||||||
|
"Confirm": "Confirmer",
|
||||||
|
"Confirm Password": "Confirmer le mot de passe",
|
||||||
|
"Conflict": "Conflit",
|
||||||
|
"Connect": "Connecter",
|
||||||
|
"Connection Closed Without Response": "Connexion fermée sans réponse",
|
||||||
|
"Connection Timed Out": "La connexion a expiré",
|
||||||
|
"Continue": "Continuer",
|
||||||
|
"Create": "Créer",
|
||||||
|
"Create :name": "Créer :name",
|
||||||
|
"Created": "Créé",
|
||||||
|
"Current Password": "Mot de passe actuel",
|
||||||
|
"Dashboard": "Tableau de bord",
|
||||||
|
"Delete": "Supprimer",
|
||||||
|
"Delete :name": "Supprimer :name",
|
||||||
|
"Delete Account": "Supprimer le compte",
|
||||||
|
"Detach": "Détacher",
|
||||||
|
"Details": "Détails",
|
||||||
|
"Disable": "Désactiver",
|
||||||
|
"Discard": "Jeter",
|
||||||
|
"Done": "Fait",
|
||||||
|
"Down": "Descendre",
|
||||||
|
"Duplicate": "Dupliquer",
|
||||||
|
"Duplicate :name": "Dupliquer :name",
|
||||||
|
"Edit": "Éditer",
|
||||||
|
"Edit :name": "Modifier :name",
|
||||||
|
"Email": "E-mail",
|
||||||
|
"email": "Le champ :attribute doit être une adresse e-mail valide.",
|
||||||
|
"Email Password Reset Link": "Lien de réinitialisation du mot de passe",
|
||||||
|
"Enable": "Activer",
|
||||||
|
"Encrypted environment file already exists.": "Le fichier d'environnement chiffré existe déjà.",
|
||||||
|
"Encrypted environment file not found.": "Fichier d'environnement chiffré introuvable.",
|
||||||
|
"Ensure your account is using a long, random password to stay secure.": "Assurez-vous d'utiliser un mot de passe long et aléatoire pour sécuriser votre compte.",
|
||||||
|
"Environment file already exists.": "Le fichier d'environnement existe déjà.",
|
||||||
|
"Environment file not found.": "Fichier d'environnement introuvable.",
|
||||||
|
"errors": "les erreurs",
|
||||||
|
"Expand": "Développer",
|
||||||
|
"Expand All": "Développer tout",
|
||||||
|
"Expectation Failed": "Comportement attendu insatisfaisant",
|
||||||
|
"Explanation": "Explication",
|
||||||
|
"Export": "Exporter",
|
||||||
|
"Export :name": "Exporter :name",
|
||||||
|
"Failed Dependency": "Dépendance échouée",
|
||||||
|
"File": "Déposer",
|
||||||
|
"Files": "Des dossiers",
|
||||||
|
"Forbidden": "Interdit",
|
||||||
|
"Forgot your password?": "Mot de passe oublié ?",
|
||||||
|
"Forgot your password? No problem. Just let us know your email address and we will email you a password reset link that will allow you to choose a new one.": "Mot de passe oublié ? Pas de soucis. Veuillez nous indiquer votre adresse e-mail et nous vous enverrons un lien de réinitialisation du mot de passe.",
|
||||||
|
"Found": "Trouvé",
|
||||||
|
"Gateway Timeout": "Temps d'attente de la passerelle dépassé",
|
||||||
|
"Go Home": "Aller à l'accueil",
|
||||||
|
"Go to page :page": "Aller à la page :page",
|
||||||
|
"Gone": "Disparu",
|
||||||
|
"Hello!": "Bonjour !",
|
||||||
|
"Hide": "Cacher",
|
||||||
|
"Hide :name": "Cacher :name",
|
||||||
|
"Home": "Accueil",
|
||||||
|
"HTTP Version Not Supported": "Version HTTP non prise en charge",
|
||||||
|
"I'm a teapot": "Je suis une théière",
|
||||||
|
"If you did not create an account, no further action is required.": "Si vous n'avez pas créé de compte, vous pouvez ignorer ce message.",
|
||||||
|
"If you did not request a password reset, no further action is required.": "Si vous n'avez pas demandé de réinitialisation de mot de passe, vous pouvez ignorer ce message.",
|
||||||
|
"If you're having trouble clicking the \":actionText\" button, copy and paste the URL below\ninto your web browser:": "Si vous avez des difficultés à cliquer sur le bouton \":actionText\", copiez et collez l'URL ci-dessous\ndans votre navigateur Web :",
|
||||||
|
"IM Used": "IM utilisé",
|
||||||
|
"Image": "Image",
|
||||||
|
"Impersonate": "Utiliser un autre compte",
|
||||||
|
"Impersonation": "Imitation",
|
||||||
|
"Import": "Importer",
|
||||||
|
"Import :name": "Importer :name",
|
||||||
|
"Insufficient Storage": "Espace insuffisant",
|
||||||
|
"Internal Server Error": "Erreur interne du serveur",
|
||||||
|
"Introduction": "Introduction",
|
||||||
|
"Invalid filename.": "Nom de fichier incorrect.",
|
||||||
|
"Invalid JSON was returned from the route.": "Un JSON non valide a été renvoyé par la route.",
|
||||||
|
"Invalid SSL Certificate": "Certificat SSL invalide",
|
||||||
|
"length": "longueur",
|
||||||
|
"Length Required": "Longueur requise",
|
||||||
|
"Like": "Aimer",
|
||||||
|
"Load": "Charger",
|
||||||
|
"Localize": "Localiser",
|
||||||
|
"Location": "Emplacement",
|
||||||
|
"Locked": "Verrouillé",
|
||||||
|
"Log In": "Se connecter",
|
||||||
|
"Log in": "Se connecter",
|
||||||
|
"Log Out": "Se déconnecter",
|
||||||
|
"Login": "Connexion",
|
||||||
|
"Logout": "Déconnexion",
|
||||||
|
"Loop Detected": "Boucle détectée",
|
||||||
|
"Maintenance Mode": "Mode de maintenance",
|
||||||
|
"Method Not Allowed": "Méthode non autorisée",
|
||||||
|
"Misdirected Request": "Demande mal dirigée",
|
||||||
|
"Moved Permanently": "Déplacé de façon permanente",
|
||||||
|
"Multi-Status": "Statut multiple",
|
||||||
|
"Multiple Choices": "Choix multiples",
|
||||||
|
"Name": "Nom",
|
||||||
|
"name": "nom",
|
||||||
|
"Network Authentication Required": "Authentification réseau requise",
|
||||||
|
"Network Connect Timeout Error": "Temps d'attente de la connexion réseau dépassé",
|
||||||
|
"Network Read Timeout Error": "Temps d'attente de la lecture réseau dépassé",
|
||||||
|
"New": "Nouveau",
|
||||||
|
"New :name": "Nouveau :name",
|
||||||
|
"New Password": "Nouveau mot de passe",
|
||||||
|
"No": "Non",
|
||||||
|
"No Content": "Pas de contenu",
|
||||||
|
"Non-Authoritative Information": "Informations non certifiées",
|
||||||
|
"Not Acceptable": "Pas acceptable",
|
||||||
|
"Not Extended": "Non prolongé",
|
||||||
|
"Not Found": "Non trouvé",
|
||||||
|
"Not Implemented": "Non implémenté",
|
||||||
|
"Not Modified": "Non modifié",
|
||||||
|
"of": "de",
|
||||||
|
"OK": "OK",
|
||||||
|
"Once your account is deleted, all of its resources and data will be permanently deleted. Before deleting your account, please download any data or information that you wish to retain.": "Une fois que votre compte est supprimé, toutes vos données sont supprimées définitivement. Avant de supprimer votre compte, veuillez télécharger vos données.",
|
||||||
|
"Once your account is deleted, all of its resources and data will be permanently deleted. Please enter your password to confirm you would like to permanently delete your account.": "Une fois que votre compte est supprimé, toutes les données associées seront supprimées définitivement. Pour confirmer que vous voulez supprimer définitivement votre compte, renseignez votre mot de passe.",
|
||||||
|
"Open": "Ouvrir",
|
||||||
|
"Open in a current window": "Ouvrir dans une fenêtre actuelle",
|
||||||
|
"Open in a new window": "Ouvrir dans une nouvelle fenêtre",
|
||||||
|
"Open in a parent frame": "Ouvrir dans un cadre parent",
|
||||||
|
"Open in the topmost frame": "Ouvrir dans le cadre le plus haut",
|
||||||
|
"Open on the website": "Ouvrir sur le site",
|
||||||
|
"Origin Is Unreachable": "L'origine est inaccessible",
|
||||||
|
"Page Expired": "Page expirée",
|
||||||
|
"Pagination Navigation": "Pagination",
|
||||||
|
"Partial Content": "Contenu partiel",
|
||||||
|
"Password": "Mot de passe",
|
||||||
|
"password": "Le mot de passe est incorrect",
|
||||||
|
"Payload Too Large": "Charge utile trop grande",
|
||||||
|
"Payment Required": "Paiement requis",
|
||||||
|
"Permanent Redirect": "Redirection permanente",
|
||||||
|
"Please click the button below to verify your email address.": "Veuillez cliquer sur le bouton ci-dessous pour vérifier votre adresse e-mail :",
|
||||||
|
"Precondition Failed": "La précondition a échoué",
|
||||||
|
"Precondition Required": "Condition préalable requise",
|
||||||
|
"Preview": "Aperçu",
|
||||||
|
"Price": "Prix",
|
||||||
|
"Processing": "En traitement",
|
||||||
|
"Profile": "Profil",
|
||||||
|
"Profile Information": "Informations du profil",
|
||||||
|
"Proxy Authentication Required": "Authentification proxy requise",
|
||||||
|
"Railgun Error": "Erreur de Railgun",
|
||||||
|
"Range Not Satisfiable": "Plage non satisfaisante",
|
||||||
|
"Record": "Enregistrer",
|
||||||
|
"Regards,": "Cordialement,",
|
||||||
|
"Register": "Inscription",
|
||||||
|
"Remember me": "Se souvenir de moi",
|
||||||
|
"Request Header Fields Too Large": "Champs d'en-tête de requête trop grands",
|
||||||
|
"Request Timeout": "Temps d'attente de la requête dépassé",
|
||||||
|
"Resend Verification Email": "Renvoyer l'e-mail de vérification",
|
||||||
|
"Reset Content": "Réinitialiser le contenu",
|
||||||
|
"Reset Password": "Réinitialisation du mot de passe",
|
||||||
|
"Reset your password": "Reset your password",
|
||||||
|
"Restore": "Restaurer",
|
||||||
|
"Restore :name": "Restaurer :name",
|
||||||
|
"results": "résultats",
|
||||||
|
"Retry With": "Réessayer avec",
|
||||||
|
"Save": "Sauvegarder",
|
||||||
|
"Save & Close": "Sauvegarder et fermer",
|
||||||
|
"Save & Return": "Sauvegarder et retourner",
|
||||||
|
"Save :name": "Sauvegarder :name",
|
||||||
|
"Saved.": "Sauvegardé.",
|
||||||
|
"Search": "Rechercher",
|
||||||
|
"Search :name": "Chercher :name",
|
||||||
|
"See Other": "Voir autre",
|
||||||
|
"Select": "Sélectionner",
|
||||||
|
"Select All": "Tout sélectionner",
|
||||||
|
"Send": "Envoyer",
|
||||||
|
"Server Error": "Erreur serveur",
|
||||||
|
"Service Unavailable": "Service indisponible",
|
||||||
|
"Session Has Expired": "La session a expiré",
|
||||||
|
"Settings": "Paramètres",
|
||||||
|
"Show": "Afficher",
|
||||||
|
"Show :name": "Afficher :name",
|
||||||
|
"Show All": "Afficher tout",
|
||||||
|
"Showing": "Montrant",
|
||||||
|
"Sign In": "Se connecter",
|
||||||
|
"Solve": "Résoudre",
|
||||||
|
"SSL Handshake Failed": "Échec de la prise de contact SSL",
|
||||||
|
"Start": "Commencer",
|
||||||
|
"Stop": "Arrêter",
|
||||||
|
"Submit": "Soumettre",
|
||||||
|
"Subscribe": "S'abonner",
|
||||||
|
"Switch": "Changer",
|
||||||
|
"Switch To Role": "Passer au rôle",
|
||||||
|
"Switching Protocols": "Protocoles de commutation",
|
||||||
|
"Tag": "Mot clé",
|
||||||
|
"Tags": "Mots clés",
|
||||||
|
"Temporary Redirect": "Redirection temporaire",
|
||||||
|
"Thanks for signing up! Before getting started, could you verify your email address by clicking on the link we just emailed to you? If you didn't receive the email, we will gladly send you another.": "Merci de vous être inscrit(e) ! Avant de commencer, veuillez vérifier votre adresse e-mail en cliquant sur le lien que nous venons de vous envoyer. Si vous n'avez pas reçu cet e-mail, nous vous en enverrons un nouveau avec plaisir.",
|
||||||
|
"The given data was invalid.": "La donnée renseignée est incorrecte.",
|
||||||
|
"The response is not a streamed response.": "La réponse n'est pas une réponse diffusée.",
|
||||||
|
"The response is not a view.": "La réponse n'est pas une vue.",
|
||||||
|
"This action is unauthorized.": "Cette action n'est pas autorisée.",
|
||||||
|
"This is a secure area of the application. Please confirm your password before continuing.": "Ceci est une zone sécurisée de l'application. Veuillez confirmer votre mot de passe avant de continuer.",
|
||||||
|
"This password reset link will expire in :count minutes.": "Ce lien de réinitialisation du mot de passe expirera dans :count minutes.",
|
||||||
|
"to": "à",
|
||||||
|
"Toggle navigation": "Afficher / masquer le menu de navigation",
|
||||||
|
"Too Early": "Trop tôt",
|
||||||
|
"Too Many Requests": "Trop de requêtes",
|
||||||
|
"Translate": "Traduire",
|
||||||
|
"Translate It": "Traduis le",
|
||||||
|
"Unauthorized": "Non autorisé",
|
||||||
|
"Unavailable For Legal Reasons": "Indisponible pour des raisons légales",
|
||||||
|
"Unknown Error": "Erreur inconnue",
|
||||||
|
"Unpack": "Déballer",
|
||||||
|
"Unprocessable Entity": "Entité non traitable",
|
||||||
|
"Unsubscribe": "Se désabonner",
|
||||||
|
"Unsupported Media Type": "Type de média non supporté",
|
||||||
|
"Up": "Monter",
|
||||||
|
"Update": "Mettre à jour",
|
||||||
|
"Update :name": "Mettre à jour :name",
|
||||||
|
"Update Password": "Mettre à jour le mot de passe",
|
||||||
|
"Update your account's profile information and email address.": "Modifier le profil associé à votre compte ainsi que votre adresse e-mail.",
|
||||||
|
"Upgrade Required": "Mise à niveau requise",
|
||||||
|
"URI Too Long": "URI trop long",
|
||||||
|
"Use Proxy": "Utiliser un proxy",
|
||||||
|
"User": "Utilisateur",
|
||||||
|
"Variant Also Negotiates": "La variante négocie également",
|
||||||
|
"Verify Email Address": "Vérifier l'adresse e-mail",
|
||||||
|
"Verify your email address": "Verify your email address",
|
||||||
|
"View": "Vue",
|
||||||
|
"View :name": "Voir :name",
|
||||||
|
"Web Server is Down": "Le serveur Web est en panne",
|
||||||
|
"Whoops!": "Oups !",
|
||||||
|
"Yes": "Oui",
|
||||||
|
"You are receiving this email because we received a password reset request for your account.": "Vous recevez cet e-mail car nous avons reçu une demande de réinitialisation de mot de passe pour votre compte.",
|
||||||
|
"You're logged in!": "Vous êtes connecté !",
|
||||||
|
"Your email address is unverified.": "Votre adresse e-mail n'est pas vérifiée."
|
||||||
|
}
|
||||||
119
lang/fr/actions.php
Normal file
119
lang/fr/actions.php
Normal file
@@ -0,0 +1,119 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
return [
|
||||||
|
'accept' => 'Accepter',
|
||||||
|
'action' => 'Action',
|
||||||
|
'actions' => 'Actions',
|
||||||
|
'add' => 'Ajouter',
|
||||||
|
'admin' => 'Administrateur',
|
||||||
|
'agree' => 'Approuver',
|
||||||
|
'archive' => 'Archiver',
|
||||||
|
'assign' => 'Attribuer',
|
||||||
|
'associate' => 'Associer',
|
||||||
|
'attach' => 'Attacher',
|
||||||
|
'browse' => 'Parcourir',
|
||||||
|
'cancel' => 'Annuler',
|
||||||
|
'choose' => 'Choisir',
|
||||||
|
'choose_file' => 'Choisir le fichier',
|
||||||
|
'choose_image' => 'Choisir une image',
|
||||||
|
'click_to_copy' => 'Cliquer pour copier',
|
||||||
|
'close' => 'Fermer',
|
||||||
|
'collapse' => 'Réduire',
|
||||||
|
'collapse_all' => 'Réduire tout',
|
||||||
|
'comment' => 'Commentaire',
|
||||||
|
'confirm' => 'Confirmer',
|
||||||
|
'connect' => 'Connecter',
|
||||||
|
'create' => 'Créer',
|
||||||
|
'delete' => 'Supprimer',
|
||||||
|
'detach' => 'Détacher',
|
||||||
|
'details' => 'Détails',
|
||||||
|
'disable' => 'Désactiver',
|
||||||
|
'discard' => 'Jeter',
|
||||||
|
'done' => 'Fait',
|
||||||
|
'down' => 'Descendre',
|
||||||
|
'duplicate' => 'Dupliquer',
|
||||||
|
'edit' => 'Editer',
|
||||||
|
'enable' => 'Activer',
|
||||||
|
'expand' => 'Développer',
|
||||||
|
'expand_all' => 'Développer tout',
|
||||||
|
'explanation' => 'Explication',
|
||||||
|
'export' => 'Exporter',
|
||||||
|
'file' => 'Déposer',
|
||||||
|
'files' => 'Fichiers',
|
||||||
|
'go_home' => 'Aller à l\'accueil',
|
||||||
|
'hide' => 'Cacher',
|
||||||
|
'home' => 'Accueil',
|
||||||
|
'image' => 'Image',
|
||||||
|
'impersonate' => 'Imiter',
|
||||||
|
'impersonation' => 'Imitation',
|
||||||
|
'import' => 'Importer',
|
||||||
|
'introduction' => 'Introduction',
|
||||||
|
'like' => 'Aimer',
|
||||||
|
'load' => 'Charger',
|
||||||
|
'localize' => 'Localiser',
|
||||||
|
'log_in' => 'Se connecter',
|
||||||
|
'log_out' => 'Se déconnecter',
|
||||||
|
'named' => [
|
||||||
|
'add' => 'Ajouter :name',
|
||||||
|
'choose' => 'Choisir :name',
|
||||||
|
'create' => 'Créer :name',
|
||||||
|
'delete' => 'Supprimer :name',
|
||||||
|
'duplicate' => 'Dupliquer :name',
|
||||||
|
'edit' => 'Editer :name',
|
||||||
|
'export' => 'Exporter :name',
|
||||||
|
'hide' => 'Cacher :name',
|
||||||
|
'import' => 'Importer :name',
|
||||||
|
'new' => 'Nouveau :name',
|
||||||
|
'restore' => 'Restaurer :name',
|
||||||
|
'save' => 'Sauvegarder :name',
|
||||||
|
'search' => 'Chercher :name',
|
||||||
|
'show' => 'Afficher :name',
|
||||||
|
'update' => 'Mettre à jour :name',
|
||||||
|
'view' => 'Voir :name',
|
||||||
|
],
|
||||||
|
'new' => 'Nouveau',
|
||||||
|
'no' => 'Non',
|
||||||
|
'open' => 'Ouvrir',
|
||||||
|
'open_website' => 'Ouvrir sur le site',
|
||||||
|
'preview' => 'Aperçu',
|
||||||
|
'price' => 'Prix',
|
||||||
|
'record' => 'Enregistrer',
|
||||||
|
'restore' => 'Restaurer',
|
||||||
|
'save' => 'Sauvegarder',
|
||||||
|
'save_and_close' => 'Sauvegarder et fermer',
|
||||||
|
'save_and_return' => 'Sauvegarder et retourner',
|
||||||
|
'search' => 'Chercher',
|
||||||
|
'select' => 'Sélectionner',
|
||||||
|
'select_all' => 'Tout sélectionner',
|
||||||
|
'send' => 'Envoyer',
|
||||||
|
'settings' => 'Paramètres',
|
||||||
|
'show' => 'Montrer',
|
||||||
|
'show_all' => 'Afficher tout',
|
||||||
|
'sign_in' => 'Se connecter',
|
||||||
|
'solve' => 'Résoudre',
|
||||||
|
'start' => 'Commencer',
|
||||||
|
'stop' => 'Arrêter',
|
||||||
|
'submit' => 'Soumettre',
|
||||||
|
'subscribe' => 'S\'abonner',
|
||||||
|
'switch' => 'Changer',
|
||||||
|
'switch_to_role' => 'Passer au rôle',
|
||||||
|
'tag' => 'Mot clé',
|
||||||
|
'tags' => 'Mots clés',
|
||||||
|
'target_link' => [
|
||||||
|
'blank' => 'Ouvrir dans une nouvelle fenêtre',
|
||||||
|
'parent' => 'Ouvrir dans la fenêtre parente',
|
||||||
|
'self' => 'Ouvrir dans la fenêtre actuelle',
|
||||||
|
'top' => 'Ouvrir dans le cadre le plus haut',
|
||||||
|
],
|
||||||
|
'translate' => 'Traduire',
|
||||||
|
'translate_it' => 'Traduis le',
|
||||||
|
'unpack' => 'Déballer',
|
||||||
|
'unsubscribe' => 'Se désabonner',
|
||||||
|
'up' => 'Monter',
|
||||||
|
'update' => 'Mettre à jour',
|
||||||
|
'user' => 'Utilisateur',
|
||||||
|
'view' => 'Voir',
|
||||||
|
'yes' => 'Oui',
|
||||||
|
];
|
||||||
9
lang/fr/auth.php
Normal file
9
lang/fr/auth.php
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
return [
|
||||||
|
'failed' => 'Ces identifiants ne correspondent pas à nos enregistrements.',
|
||||||
|
'password' => 'Le mot de passe est incorrect',
|
||||||
|
'throttle' => 'Tentatives de connexion trop nombreuses. Veuillez essayer de nouveau dans :seconds secondes.',
|
||||||
|
];
|
||||||
84
lang/fr/http-statuses.php
Normal file
84
lang/fr/http-statuses.php
Normal file
@@ -0,0 +1,84 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
return [
|
||||||
|
'0' => 'Erreur inconnue',
|
||||||
|
'100' => 'Continuer',
|
||||||
|
'101' => 'Protocoles de commutation',
|
||||||
|
'102' => 'En traitement',
|
||||||
|
'200' => 'OK',
|
||||||
|
'201' => 'Créé',
|
||||||
|
'202' => 'Accepté',
|
||||||
|
'203' => 'Informations non certifiées',
|
||||||
|
'204' => 'Pas de contenu',
|
||||||
|
'205' => 'Réinitialiser le contenu',
|
||||||
|
'206' => 'Contenu partiel',
|
||||||
|
'207' => 'Statut multiple',
|
||||||
|
'208' => 'Déjà rapporté',
|
||||||
|
'226' => 'IM utilisé',
|
||||||
|
'300' => 'Choix multiples',
|
||||||
|
'301' => 'Déplacé de façon permanente',
|
||||||
|
'302' => 'A trouvé',
|
||||||
|
'303' => 'Voir autre',
|
||||||
|
'304' => 'Non modifié',
|
||||||
|
'305' => 'Utiliser un proxy',
|
||||||
|
'307' => 'Redirection temporaire',
|
||||||
|
'308' => 'Redirection permanente',
|
||||||
|
'400' => 'Requête invalide',
|
||||||
|
'401' => 'Non authentifié',
|
||||||
|
'402' => 'Paiement requis',
|
||||||
|
'403' => 'Interdit',
|
||||||
|
'404' => 'Page non trouvée',
|
||||||
|
'405' => 'Méthode non autorisée',
|
||||||
|
'406' => 'Non acceptable',
|
||||||
|
'407' => 'Authentification proxy requise',
|
||||||
|
'408' => 'Requête expirée',
|
||||||
|
'409' => 'Conflit',
|
||||||
|
'410' => 'Disparu',
|
||||||
|
'411' => 'Longueur requise',
|
||||||
|
'412' => 'La précondition a échoué',
|
||||||
|
'413' => 'Charge utile trop grande',
|
||||||
|
'414' => 'URI trop long',
|
||||||
|
'415' => 'Type de média non supporté',
|
||||||
|
'416' => 'Plage non satisfaisante',
|
||||||
|
'417' => 'Comportement attendu insatisfaisant',
|
||||||
|
'418' => 'Je suis une théière',
|
||||||
|
'419' => 'La session a expiré',
|
||||||
|
'421' => 'Demande mal dirigée',
|
||||||
|
'422' => 'Contenu non traitable',
|
||||||
|
'423' => 'Verrouillé',
|
||||||
|
'424' => 'Dépendance échouée',
|
||||||
|
'425' => 'Trop tôt',
|
||||||
|
'426' => 'Mise à niveau requise',
|
||||||
|
'428' => 'Condition préalable requise',
|
||||||
|
'429' => 'Trop de demandes',
|
||||||
|
'431' => 'Champs d\'en-tête de requête trop grands',
|
||||||
|
'444' => 'Connexion fermée sans réponse',
|
||||||
|
'449' => 'Réessayer avec',
|
||||||
|
'451' => 'Indisponible pour des raisons légales',
|
||||||
|
'499' => 'Demande fermée par le client',
|
||||||
|
'500' => 'Erreur interne du serveur',
|
||||||
|
'501' => 'Non implémenté',
|
||||||
|
'502' => 'Mauvaise passerelle',
|
||||||
|
'503' => 'Service non disponible',
|
||||||
|
'504' => 'Temps d\'attente de la passerelle dépassé',
|
||||||
|
'505' => 'Version HTTP non prise en charge',
|
||||||
|
'506' => 'La variante négocie également',
|
||||||
|
'507' => 'Espace insuffisant',
|
||||||
|
'508' => 'Boucle détectée',
|
||||||
|
'509' => 'Limite de bande passante dépassée',
|
||||||
|
'510' => 'Non prolongé',
|
||||||
|
'511' => 'Authentification réseau requise',
|
||||||
|
'520' => 'Erreur inconnue',
|
||||||
|
'521' => 'Le serveur Web est en panne',
|
||||||
|
'522' => 'La connexion a expiré',
|
||||||
|
'523' => 'L\'origine est inaccessible',
|
||||||
|
'524' => 'Un dépassement de délai s\'est produit',
|
||||||
|
'525' => 'Échec de la prise de contact SSL',
|
||||||
|
'526' => 'Certificat SSL invalide',
|
||||||
|
'527' => 'Erreur de Railgun',
|
||||||
|
'598' => 'Temps d\'attente de la lecture réseau dépassé',
|
||||||
|
'599' => 'Temps d\'attente de la connexion réseau dépassé',
|
||||||
|
'unknownError' => 'Erreur inconnue',
|
||||||
|
];
|
||||||
8
lang/fr/pagination.php
Normal file
8
lang/fr/pagination.php
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
return [
|
||||||
|
'next' => 'Suivant »',
|
||||||
|
'previous' => '« Précédent',
|
||||||
|
];
|
||||||
11
lang/fr/passwords.php
Normal file
11
lang/fr/passwords.php
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
return [
|
||||||
|
'reset' => 'Votre mot de passe a été réinitialisé !',
|
||||||
|
'sent' => 'Nous vous avons envoyé par email le lien de réinitialisation du mot de passe !',
|
||||||
|
'throttled' => 'Veuillez patienter avant de réessayer.',
|
||||||
|
'token' => 'Ce jeton de réinitialisation du mot de passe n\'est pas valide.',
|
||||||
|
'user' => 'Aucun utilisateur n\'a été trouvé avec cette adresse email.',
|
||||||
|
];
|
||||||
288
lang/fr/validation.php
Normal file
288
lang/fr/validation.php
Normal file
@@ -0,0 +1,288 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
return [
|
||||||
|
'accepted' => 'Le champ :attribute doit être accepté.',
|
||||||
|
'accepted_if' => 'Le champ :attribute doit être accepté quand :other a la valeur :value.',
|
||||||
|
'active_url' => 'Le champ :attribute n\'est pas une URL valide.',
|
||||||
|
'after' => 'Le champ :attribute doit être une date postérieure au :date.',
|
||||||
|
'after_or_equal' => 'Le champ :attribute doit être une date postérieure ou égale au :date.',
|
||||||
|
'alpha' => 'Le champ :attribute doit contenir uniquement des lettres.',
|
||||||
|
'alpha_dash' => 'Le champ :attribute doit contenir uniquement des lettres, des chiffres et des tirets.',
|
||||||
|
'alpha_num' => 'Le champ :attribute doit contenir uniquement des chiffres et des lettres.',
|
||||||
|
'any_of' => 'Le champ :attribute est invalide.',
|
||||||
|
'array' => 'Le champ :attribute doit être un tableau.',
|
||||||
|
'ascii' => 'Le champ :attribute ne doit contenir que des caractères alphanumériques et des symboles codés sur un octet.',
|
||||||
|
'before' => 'Le champ :attribute doit être une date antérieure au :date.',
|
||||||
|
'before_or_equal' => 'Le champ :attribute doit être une date antérieure ou égale au :date.',
|
||||||
|
'between' => [
|
||||||
|
'array' => 'Le tableau :attribute doit contenir entre :min et :max éléments.',
|
||||||
|
'file' => 'La taille du fichier de :attribute doit être comprise entre :min et :max kilo-octets.',
|
||||||
|
'numeric' => 'La valeur de :attribute doit être comprise entre :min et :max.',
|
||||||
|
'string' => 'Le texte :attribute doit contenir entre :min et :max caractères.',
|
||||||
|
],
|
||||||
|
'boolean' => 'Le champ :attribute doit être vrai ou faux.',
|
||||||
|
'can' => 'Le champ :attribute contient une valeur non autorisée.',
|
||||||
|
'confirmed' => 'Le champ de confirmation :attribute ne correspond pas.',
|
||||||
|
'contains' => 'Le champ :attribute manque une valeur requise.',
|
||||||
|
'current_password' => 'Le mot de passe est incorrect.',
|
||||||
|
'date' => 'Le champ :attribute n\'est pas une date valide.',
|
||||||
|
'date_equals' => 'Le champ :attribute doit être une date égale à :date.',
|
||||||
|
'date_format' => 'Le champ :attribute ne correspond pas au format :format.',
|
||||||
|
'decimal' => 'Le champ :attribute doit comporter :decimal décimales.',
|
||||||
|
'declined' => 'Le champ :attribute doit être décliné.',
|
||||||
|
'declined_if' => 'Le champ :attribute doit être décliné quand :other a la valeur :value.',
|
||||||
|
'different' => 'Les champs :attribute et :other doivent être différents.',
|
||||||
|
'digits' => 'Le champ :attribute doit contenir :digits chiffres.',
|
||||||
|
'digits_between' => 'Le champ :attribute doit contenir entre :min et :max chiffres.',
|
||||||
|
'dimensions' => 'La taille de l\'image :attribute n\'est pas conforme.',
|
||||||
|
'distinct' => 'Le champ :attribute a une valeur en double.',
|
||||||
|
'doesnt_contain' => 'Le champ :attribute ne doit contenir aucun des éléments suivants : :values.',
|
||||||
|
'doesnt_end_with' => 'Le champ :attribute ne doit pas finir avec une des valeurs suivantes : :values.',
|
||||||
|
'doesnt_start_with' => 'Le champ :attribute ne doit pas commencer avec une des valeurs suivantes : :values.',
|
||||||
|
'email' => 'Le champ :attribute doit être une adresse e-mail valide.',
|
||||||
|
'encoding' => 'The :attribute field must be encoded in :encoding.',
|
||||||
|
'ends_with' => 'Le champ :attribute doit se terminer par une des valeurs suivantes : :values',
|
||||||
|
'enum' => 'Le champ :attribute sélectionné est invalide.',
|
||||||
|
'exists' => 'Le champ :attribute sélectionné est invalide.',
|
||||||
|
'extensions' => 'Le champ :attribute doit avoir l\'une des extensions suivantes : :values.',
|
||||||
|
'file' => 'Le champ :attribute doit être un fichier.',
|
||||||
|
'filled' => 'Le champ :attribute doit avoir une valeur.',
|
||||||
|
'gt' => [
|
||||||
|
'array' => 'Le tableau :attribute doit contenir plus de :value éléments.',
|
||||||
|
'file' => 'La taille du fichier de :attribute doit être supérieure à :value kilo-octets.',
|
||||||
|
'numeric' => 'La valeur de :attribute doit être supérieure à :value.',
|
||||||
|
'string' => 'Le texte :attribute doit contenir plus de :value caractères.',
|
||||||
|
],
|
||||||
|
'gte' => [
|
||||||
|
'array' => 'Le tableau :attribute doit contenir au moins :value éléments.',
|
||||||
|
'file' => 'La taille du fichier de :attribute doit être supérieure ou égale à :value kilo-octets.',
|
||||||
|
'numeric' => 'La valeur de :attribute doit être supérieure ou égale à :value.',
|
||||||
|
'string' => 'Le texte :attribute doit contenir au moins :value caractères.',
|
||||||
|
],
|
||||||
|
'hex_color' => 'Le champ :attribute doit être une couleur hexadécimale valide.',
|
||||||
|
'image' => 'Le champ :attribute doit être une image.',
|
||||||
|
'in' => 'Le champ :attribute est invalide.',
|
||||||
|
'in_array' => 'Le champ :attribute n\'existe pas dans :other.',
|
||||||
|
'in_array_keys' => 'Le champ :attribute doit contenir au moins l\'une des clés suivantes : :values.',
|
||||||
|
'integer' => 'Le champ :attribute doit être un entier.',
|
||||||
|
'ip' => 'Le champ :attribute doit être une adresse IP valide.',
|
||||||
|
'ipv4' => 'Le champ :attribute doit être une adresse IPv4 valide.',
|
||||||
|
'ipv6' => 'Le champ :attribute doit être une adresse IPv6 valide.',
|
||||||
|
'json' => 'Le champ :attribute doit être un document JSON valide.',
|
||||||
|
'list' => 'Le champ :attribute doit être une liste.',
|
||||||
|
'lowercase' => 'Le champ :attribute doit être en minuscules.',
|
||||||
|
'lt' => [
|
||||||
|
'array' => 'Le tableau :attribute doit contenir moins de :value éléments.',
|
||||||
|
'file' => 'La taille du fichier de :attribute doit être inférieure à :value kilo-octets.',
|
||||||
|
'numeric' => 'La valeur de :attribute doit être inférieure à :value.',
|
||||||
|
'string' => 'Le texte :attribute doit contenir moins de :value caractères.',
|
||||||
|
],
|
||||||
|
'lte' => [
|
||||||
|
'array' => 'Le tableau :attribute doit contenir au plus :value éléments.',
|
||||||
|
'file' => 'La taille du fichier de :attribute doit être inférieure ou égale à :value kilo-octets.',
|
||||||
|
'numeric' => 'La valeur de :attribute doit être inférieure ou égale à :value.',
|
||||||
|
'string' => 'Le texte :attribute doit contenir au plus :value caractères.',
|
||||||
|
],
|
||||||
|
'mac_address' => 'Le champ :attribute doit être une adresse MAC valide.',
|
||||||
|
'max' => [
|
||||||
|
'array' => 'Le tableau :attribute ne peut pas contenir plus que :max éléments.',
|
||||||
|
'file' => 'La taille du fichier de :attribute ne peut pas dépasser :max kilo-octets.',
|
||||||
|
'numeric' => 'La valeur de :attribute ne peut pas être supérieure à :max.',
|
||||||
|
'string' => 'Le texte de :attribute ne peut pas contenir plus de :max caractères.',
|
||||||
|
],
|
||||||
|
'max_digits' => 'Le champ :attribute ne doit pas avoir plus de :max chiffres.',
|
||||||
|
'mimes' => 'Le champ :attribute doit être un fichier de type : :values.',
|
||||||
|
'mimetypes' => 'Le champ :attribute doit être un fichier de type : :values.',
|
||||||
|
'min' => [
|
||||||
|
'array' => 'Le tableau :attribute doit contenir au moins :min éléments.',
|
||||||
|
'file' => 'La taille du fichier de :attribute doit être supérieure ou égale à :min kilo-octets.',
|
||||||
|
'numeric' => 'La valeur de :attribute doit être supérieure ou égale à :min.',
|
||||||
|
'string' => 'Le texte de :attribute doit contenir au moins :min caractères.',
|
||||||
|
],
|
||||||
|
'min_digits' => 'Le champ :attribute doit avoir au moins :min chiffres.',
|
||||||
|
'missing' => 'Le champ :attribute doit être manquant.',
|
||||||
|
'missing_if' => 'Le champ :attribute doit être manquant quand :other a la valeur :value.',
|
||||||
|
'missing_unless' => 'Le champ :attribute doit être manquant sauf si :other a la valeur :value.',
|
||||||
|
'missing_with' => 'Le champ :attribute doit être manquant quand :values est présent.',
|
||||||
|
'missing_with_all' => 'Le champ :attribute doit être manquant quand :values sont présents.',
|
||||||
|
'multiple_of' => 'La valeur de :attribute doit être un multiple de :value',
|
||||||
|
'not_in' => 'Le champ :attribute sélectionné n\'est pas valide.',
|
||||||
|
'not_regex' => 'Le format du champ :attribute n\'est pas valide.',
|
||||||
|
'numeric' => 'Le champ :attribute doit contenir un nombre.',
|
||||||
|
'password' => [
|
||||||
|
'letters' => 'Le champ :attribute doit contenir au moins une lettre.',
|
||||||
|
'mixed' => 'Le champ :attribute doit contenir au moins une majuscule et une minuscule.',
|
||||||
|
'numbers' => 'Le champ :attribute doit contenir au moins un chiffre.',
|
||||||
|
'symbols' => 'Le champ :attribute doit contenir au moins un symbole.',
|
||||||
|
'uncompromised' => 'La valeur du champ :attribute est apparue dans une fuite de données. Veuillez choisir une valeur différente.',
|
||||||
|
],
|
||||||
|
'present' => 'Le champ :attribute doit être présent.',
|
||||||
|
'present_if' => 'Le champ :attribute doit être présent lorsque :other est :value.',
|
||||||
|
'present_unless' => 'Le champ :attribute doit être présent sauf si :other vaut :value.',
|
||||||
|
'present_with' => 'Le champ :attribute doit être présent lorsque :values est présent.',
|
||||||
|
'present_with_all' => 'Le champ :attribute doit être présent lorsque :values sont présents.',
|
||||||
|
'prohibited' => 'Le champ :attribute est interdit.',
|
||||||
|
'prohibited_if' => 'Le champ :attribute est interdit quand :other a la valeur :value.',
|
||||||
|
'prohibited_if_accepted' => 'Le champ :attribute est interdit quand :other a été accepté.',
|
||||||
|
'prohibited_if_declined' => 'Le champ :attribute est interdit quand :other a été refusé.',
|
||||||
|
'prohibited_unless' => 'Le champ :attribute est interdit à moins que :other est l\'une des valeurs :values.',
|
||||||
|
'prohibits' => 'Le champ :attribute interdit :other d\'être présent.',
|
||||||
|
'regex' => 'Le format du champ :attribute est invalide.',
|
||||||
|
'required' => 'Le champ :attribute est obligatoire.',
|
||||||
|
'required_array_keys' => 'Le champ :attribute doit contenir des entrées pour : :values.',
|
||||||
|
'required_if' => 'Le champ :attribute est obligatoire quand la valeur de :other est :value.',
|
||||||
|
'required_if_accepted' => 'Le champ :attribute est obligatoire quand le champ :other a été accepté.',
|
||||||
|
'required_if_declined' => 'Le champ :attribute est obligatoire quand le champ :other a été refusé.',
|
||||||
|
'required_unless' => 'Le champ :attribute est obligatoire sauf si :other est :values.',
|
||||||
|
'required_with' => 'Le champ :attribute est obligatoire quand :values est présent.',
|
||||||
|
'required_with_all' => 'Le champ :attribute est obligatoire quand :values sont présents.',
|
||||||
|
'required_without' => 'Le champ :attribute est obligatoire quand :values n\'est pas présent.',
|
||||||
|
'required_without_all' => 'Le champ :attribute est requis quand aucun de :values n\'est présent.',
|
||||||
|
'same' => 'Les champs :attribute et :other doivent être identiques.',
|
||||||
|
'size' => [
|
||||||
|
'array' => 'Le tableau :attribute doit contenir :size éléments.',
|
||||||
|
'file' => 'La taille du fichier de :attribute doit être de :size kilo-octets.',
|
||||||
|
'numeric' => 'La valeur de :attribute doit être :size.',
|
||||||
|
'string' => 'Le texte de :attribute doit contenir :size caractères.',
|
||||||
|
],
|
||||||
|
'starts_with' => 'Le champ :attribute doit commencer avec une des valeurs suivantes : :values',
|
||||||
|
'string' => 'Le champ :attribute doit être une chaîne de caractères.',
|
||||||
|
'timezone' => 'Le champ :attribute doit être un fuseau horaire valide.',
|
||||||
|
'ulid' => 'Le champ :attribute doit être un ULID valide.',
|
||||||
|
'unique' => 'La valeur du champ :attribute est déjà utilisée.',
|
||||||
|
'uploaded' => 'Le fichier du champ :attribute n\'a pu être téléversé.',
|
||||||
|
'uppercase' => 'Le champ :attribute doit être en majuscules.',
|
||||||
|
'url' => 'Le format de l\'URL de :attribute n\'est pas valide.',
|
||||||
|
'uuid' => 'Le champ :attribute doit être un UUID valide',
|
||||||
|
'attributes' => [
|
||||||
|
'address' => 'adresse',
|
||||||
|
'affiliate_url' => 'URL d\'affiliation',
|
||||||
|
'age' => 'âge',
|
||||||
|
'amount' => 'montant',
|
||||||
|
'announcement' => 'annonce',
|
||||||
|
'area' => 'zone',
|
||||||
|
'audience_prize' => 'prix du public',
|
||||||
|
'audience_winner' => 'gagnant du public',
|
||||||
|
'available' => 'disponible',
|
||||||
|
'birthday' => 'anniversaire',
|
||||||
|
'body' => 'corps',
|
||||||
|
'city' => 'ville',
|
||||||
|
'color' => 'color',
|
||||||
|
'company' => 'entreprise',
|
||||||
|
'compilation' => 'compilation',
|
||||||
|
'concept' => 'concept',
|
||||||
|
'conditions' => 'conditions',
|
||||||
|
'content' => 'contenu',
|
||||||
|
'contest' => 'contest',
|
||||||
|
'country' => 'pays',
|
||||||
|
'cover' => 'couverture',
|
||||||
|
'created_at' => 'date de création',
|
||||||
|
'creator' => 'créateur',
|
||||||
|
'currency' => 'devise',
|
||||||
|
'current_password' => 'mot de passe actuel',
|
||||||
|
'customer' => 'client',
|
||||||
|
'date' => 'date',
|
||||||
|
'date_of_birth' => 'date de naissance',
|
||||||
|
'dates' => 'rendez-vous',
|
||||||
|
'day' => 'jour',
|
||||||
|
'deleted_at' => 'date de suppression',
|
||||||
|
'description' => 'description',
|
||||||
|
'display_type' => 'type d\'affichage',
|
||||||
|
'district' => 'quartier',
|
||||||
|
'duration' => 'durée',
|
||||||
|
'email' => 'adresse e-mail',
|
||||||
|
'excerpt' => 'extrait',
|
||||||
|
'filter' => 'filtre',
|
||||||
|
'finished_at' => 'date de fin',
|
||||||
|
'first_name' => 'prénom',
|
||||||
|
'gender' => 'genre',
|
||||||
|
'grand_prize' => 'grand prix',
|
||||||
|
'group' => 'groupe',
|
||||||
|
'hour' => 'heure',
|
||||||
|
'image' => 'image',
|
||||||
|
'image_desktop' => 'image de bureau',
|
||||||
|
'image_main' => 'image principale',
|
||||||
|
'image_mobile' => 'image mobile',
|
||||||
|
'images' => 'images',
|
||||||
|
'is_audience_winner' => 'est le gagnant du public',
|
||||||
|
'is_hidden' => 'est caché',
|
||||||
|
'is_subscribed' => 'est abonné',
|
||||||
|
'is_visible' => 'est visible',
|
||||||
|
'is_winner' => 'est gagnant',
|
||||||
|
'items' => 'articles',
|
||||||
|
'key' => 'clé',
|
||||||
|
'last_name' => 'nom de famille',
|
||||||
|
'lesson' => 'leçon',
|
||||||
|
'line_address_1' => 'ligne d\'adresse 1',
|
||||||
|
'line_address_2' => 'ligne d\'adresse 2',
|
||||||
|
'login' => 'identifiant',
|
||||||
|
'message' => 'message',
|
||||||
|
'middle_name' => 'deuxième prénom',
|
||||||
|
'minute' => 'minute',
|
||||||
|
'mobile' => 'portable',
|
||||||
|
'month' => 'mois',
|
||||||
|
'name' => 'nom',
|
||||||
|
'national_code' => 'code national',
|
||||||
|
'number' => 'numéro',
|
||||||
|
'password' => 'mot de passe',
|
||||||
|
'password_confirmation' => 'confirmation du mot de passe',
|
||||||
|
'phone' => 'téléphone',
|
||||||
|
'photo' => 'photo',
|
||||||
|
'portfolio' => 'portefeuille',
|
||||||
|
'postal_code' => 'code postal',
|
||||||
|
'preview' => 'aperçu',
|
||||||
|
'price' => 'prix',
|
||||||
|
'product_id' => 'identifiant du produit',
|
||||||
|
'product_uid' => 'UID du produit',
|
||||||
|
'product_uuid' => 'UUID du produit',
|
||||||
|
'promo_code' => 'code promo',
|
||||||
|
'province' => 'région',
|
||||||
|
'quantity' => 'quantité',
|
||||||
|
'reason' => 'raison',
|
||||||
|
'recaptcha_response_field' => 'champ de réponse reCAPTCHA',
|
||||||
|
'referee' => 'arbitre',
|
||||||
|
'referees' => 'arbitres',
|
||||||
|
'region' => 'region',
|
||||||
|
'reject_reason' => 'motif de rejet',
|
||||||
|
'remember' => 'se souvenir',
|
||||||
|
'restored_at' => 'date de restauration',
|
||||||
|
'result_text_under_image' => 'texte de résultat sous l\'image',
|
||||||
|
'role' => 'rôle',
|
||||||
|
'rule' => 'règle',
|
||||||
|
'rules' => 'règles',
|
||||||
|
'second' => 'seconde',
|
||||||
|
'sex' => 'sexe',
|
||||||
|
'shipment' => 'expédition',
|
||||||
|
'short_text' => 'texte court',
|
||||||
|
'size' => 'taille',
|
||||||
|
'skills' => 'compétences',
|
||||||
|
'slug' => 'slug',
|
||||||
|
'specialization' => 'spécialisation',
|
||||||
|
'started_at' => 'date de début',
|
||||||
|
'state' => 'état',
|
||||||
|
'status' => 'statut',
|
||||||
|
'street' => 'rue',
|
||||||
|
'student' => 'étudiant',
|
||||||
|
'subject' => 'sujet',
|
||||||
|
'tag' => 'mot clé',
|
||||||
|
'tags' => 'mots clés',
|
||||||
|
'teacher' => 'professeur',
|
||||||
|
'terms' => 'conditions',
|
||||||
|
'test_description' => 'description du test',
|
||||||
|
'test_locale' => 'localisation du test',
|
||||||
|
'test_name' => 'nom du test',
|
||||||
|
'text' => 'texte',
|
||||||
|
'time' => 'heure',
|
||||||
|
'title' => 'titre',
|
||||||
|
'type' => 'type',
|
||||||
|
'updated_at' => 'date de mise à jour',
|
||||||
|
'user' => 'utilisateur',
|
||||||
|
'username' => 'nom d\'utilisateur',
|
||||||
|
'value' => 'valeur',
|
||||||
|
'winner' => 'gagnant',
|
||||||
|
'work' => 'travail',
|
||||||
|
'year' => 'année',
|
||||||
|
],
|
||||||
|
];
|
||||||
BIN
public/images/logo.png
Normal file
BIN
public/images/logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 12 KiB |
@@ -69,13 +69,13 @@ const open = ref(false);
|
|||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
v-show="open"
|
v-show="open"
|
||||||
class="absolute z-50 mt-2 rounded-md shadow-lg"
|
class="absolute z-50 mt-2 rounded-xl shadow-md border border-anthracite/5"
|
||||||
:class="[widthClass, alignmentClasses]"
|
:class="[widthClass, alignmentClasses]"
|
||||||
style="display: none"
|
style="display: none"
|
||||||
@click="open = false"
|
@click="open = false"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
class="rounded-md ring-1 ring-black ring-opacity-5"
|
class="rounded-xl overflow-hidden"
|
||||||
:class="contentClasses"
|
:class="contentClasses"
|
||||||
>
|
>
|
||||||
<slot name="content" />
|
<slot name="content" />
|
||||||
|
|||||||
@@ -12,8 +12,7 @@ defineProps({
|
|||||||
<template>
|
<template>
|
||||||
<Link
|
<Link
|
||||||
:href="href"
|
:href="href"
|
||||||
class="block w-full px-4 py-2 text-start text-sm font-semibold leading-5 transition duration-150 ease-in-out focus:outline-none"
|
class="block w-full px-4 py-2 text-start text-sm font-subtitle font-bold leading-5 text-anthracite hover:bg-sand/30 hover:text-primary transition duration-150 ease-in-out focus:outline-none"
|
||||||
style="color:#1e293b;"
|
|
||||||
>
|
>
|
||||||
<slot />
|
<slot />
|
||||||
</Link>
|
</Link>
|
||||||
|
|||||||
@@ -14,8 +14,8 @@ const props = defineProps({
|
|||||||
|
|
||||||
const classes = computed(() =>
|
const classes = computed(() =>
|
||||||
props.active
|
props.active
|
||||||
? 'inline-flex items-center px-1 pt-1 border-b-2 border-indigo-600 text-sm font-bold leading-5 text-indigo-700 focus:outline-none transition duration-150 ease-in-out'
|
? 'inline-flex items-center px-1 pt-1 border-b-2 border-primary text-sm font-subtitle font-bold leading-5 text-primary focus:outline-none transition duration-150 ease-in-out'
|
||||||
: 'inline-flex items-center px-1 pt-1 border-b-2 border-transparent text-sm font-bold leading-5 text-slate-700 hover:text-indigo-600 hover:border-indigo-400 focus:outline-none transition duration-150 ease-in-out',
|
: 'inline-flex items-center px-1 pt-1 border-b-2 border-transparent text-sm font-subtitle font-bold leading-5 text-anthracite/60 hover:text-primary hover:border-primary/30 focus:outline-none transition duration-150 ease-in-out',
|
||||||
);
|
);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -14,8 +14,8 @@ const props = defineProps({
|
|||||||
|
|
||||||
const classes = computed(() =>
|
const classes = computed(() =>
|
||||||
props.active
|
props.active
|
||||||
? 'block w-full ps-3 pe-4 py-2 border-l-4 border-indigo-400 text-start text-base font-medium text-indigo-700 bg-indigo-50 focus:outline-none focus:text-indigo-800 focus:bg-indigo-100 focus:border-indigo-700 transition duration-150 ease-in-out'
|
? 'block w-full ps-3 pe-4 py-2 border-l-4 border-primary text-start text-base font-subtitle font-bold text-primary bg-primary/5 focus:outline-none focus:text-primary focus:bg-primary/10 focus:border-primary transition duration-150 ease-in-out'
|
||||||
: 'block w-full ps-3 pe-4 py-2 border-l-4 border-transparent text-start text-base font-medium text-gray-600 hover:text-gray-800 hover:bg-gray-50 hover:border-gray-300 focus:outline-none focus:text-gray-800 focus:bg-gray-50 focus:border-gray-300 transition duration-150 ease-in-out',
|
: 'block w-full ps-3 pe-4 py-2 border-l-4 border-transparent text-start text-base font-subtitle font-medium text-anthracite/60 hover:text-primary hover:bg-sand/30 hover:border-anthracite/20 focus:outline-none focus:text-primary focus:bg-sand/30 focus:border-anthracite/20 transition duration-150 ease-in-out',
|
||||||
);
|
);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
* - Items nav : rounded-xl, active bg-highlight text-highlight-dark
|
* - Items nav : rounded-xl, active bg-highlight text-highlight-dark
|
||||||
* - Footer sidebar : avatar + nom + version + logout
|
* - Footer sidebar : avatar + nom + version + logout
|
||||||
*/
|
*/
|
||||||
import { ref } from 'vue';
|
import { ref, computed } from 'vue';
|
||||||
import { Link, usePage } from '@inertiajs/vue3';
|
import { Link, usePage } from '@inertiajs/vue3';
|
||||||
import Dropdown from '@/Components/Dropdown.vue';
|
import Dropdown from '@/Components/Dropdown.vue';
|
||||||
import DropdownLink from '@/Components/DropdownLink.vue';
|
import DropdownLink from '@/Components/DropdownLink.vue';
|
||||||
@@ -42,7 +42,7 @@ const navItems = [
|
|||||||
{
|
{
|
||||||
route: 'admin.job-positions.index',
|
route: 'admin.job-positions.index',
|
||||||
match: 'admin.job-positions.*',
|
match: 'admin.job-positions.*',
|
||||||
label: 'Fiches de Poste',
|
label: 'Offres d\'emploi',
|
||||||
icon: 'M21 16V8a2 2 0 00-1-1.73l-7-4a2 2 0 00-2 0l-7 4A2 2 0 003 8v8a2 2 0 001 1.73l7 4a2 2 0 002 0l7-4A2 2 0 0021 16z',
|
icon: 'M21 16V8a2 2 0 00-1-1.73l-7-4a2 2 0 00-2 0l-7 4A2 2 0 003 8v8a2 2 0 001 1.73l7 4a2 2 0 002 0l7-4A2 2 0 0021 16z',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -62,6 +62,15 @@ const navItems = [
|
|||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
const filteredNavItems = computed(() => {
|
||||||
|
const role = page.props.auth.user.role;
|
||||||
|
if (role === 'gestionnaire_rh') {
|
||||||
|
// HR Managers cannot see evaluation/selection related tabs
|
||||||
|
return navItems.filter(item => !['admin.quizzes.index', 'admin.comparative', 'admin.candidates.selected'].includes(item.route));
|
||||||
|
}
|
||||||
|
return navItems;
|
||||||
|
});
|
||||||
|
|
||||||
const superAdminItems = [
|
const superAdminItems = [
|
||||||
{
|
{
|
||||||
route: 'admin.tenants.index',
|
route: 'admin.tenants.index',
|
||||||
@@ -109,17 +118,9 @@ const isActive = (item) => {
|
|||||||
<!-- Logo -->
|
<!-- Logo -->
|
||||||
<div class="h-[60px] flex items-center border-b border-white/[0.07] px-4 shrink-0">
|
<div class="h-[60px] flex items-center border-b border-white/[0.07] px-4 shrink-0">
|
||||||
<Link :href="route('dashboard')" class="flex items-center gap-3 overflow-hidden">
|
<Link :href="route('dashboard')" class="flex items-center gap-3 overflow-hidden">
|
||||||
<!-- Icône -->
|
|
||||||
<div class="w-[30px] h-[30px] bg-highlight rounded-lg flex items-center justify-center shrink-0 shadow-gold">
|
|
||||||
<svg class="w-4 h-4 text-highlight-dark" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
|
|
||||||
<path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"/>
|
|
||||||
</svg>
|
|
||||||
</div>
|
|
||||||
<!-- Wordmark -->
|
|
||||||
<Transition name="fade">
|
<Transition name="fade">
|
||||||
<span v-if="isSidebarOpen" class="font-serif font-black text-[17px] text-white tracking-tight whitespace-nowrap">
|
<img v-if="isSidebarOpen" src="/images/logo.png" alt="Logo" class="h-8 object-contain" />
|
||||||
RECRU<span class="text-highlight italic">IT</span>
|
<img v-else src="/images/logo.png" alt="Logo" class="h-6 object-contain" />
|
||||||
</span>
|
|
||||||
</Transition>
|
</Transition>
|
||||||
</Link>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
@@ -127,7 +128,7 @@ const isActive = (item) => {
|
|||||||
<!-- Nav principale -->
|
<!-- Nav principale -->
|
||||||
<nav class="flex-1 px-2.5 py-4 space-y-0.5 overflow-y-auto scrollbar-thin scrollbar-thumb-white/10 scrollbar-track-transparent">
|
<nav class="flex-1 px-2.5 py-4 space-y-0.5 overflow-y-auto scrollbar-thin scrollbar-thumb-white/10 scrollbar-track-transparent">
|
||||||
<!-- Items principaux -->
|
<!-- Items principaux -->
|
||||||
<template v-for="item in navItems" :key="item.route">
|
<template v-for="item in filteredNavItems" :key="item.route">
|
||||||
<Link
|
<Link
|
||||||
:href="route(item.route)"
|
:href="route(item.route)"
|
||||||
:title="!isSidebarOpen ? item.label : undefined"
|
:title="!isSidebarOpen ? item.label : undefined"
|
||||||
@@ -146,17 +147,18 @@ const isActive = (item) => {
|
|||||||
</Link>
|
</Link>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<!-- Section super admin -->
|
<!-- Section Administration (Structures) pour Super Admin et RH -->
|
||||||
<template v-if="$page.props.auth.user.role === 'super_admin'">
|
<template v-if="['super_admin', 'gestionnaire_rh'].includes($page.props.auth.user.role)">
|
||||||
<div class="pt-4 pb-2">
|
<div class="pt-4 pb-2">
|
||||||
<div
|
<div
|
||||||
v-if="isSidebarOpen"
|
v-if="isSidebarOpen"
|
||||||
class="px-3 text-[9px] font-black uppercase tracking-[0.18em] text-white/25"
|
class="px-3 text-[9px] font-black uppercase tracking-[0.18em] text-white/25"
|
||||||
>Configuration</div>
|
>Administration</div>
|
||||||
<div v-else class="h-px w-8 mx-auto bg-white/10" />
|
<div v-else class="h-px w-8 mx-auto bg-white/10" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<template v-for="item in superAdminItems" :key="item.route">
|
<!-- Structures Link (Visible for Super Admin and HR) -->
|
||||||
|
<template v-for="item in superAdminItems.filter(i => i.route === 'admin.tenants.index' || $page.props.auth.user.role === 'super_admin')" :key="item.route">
|
||||||
<Link
|
<Link
|
||||||
:href="route(item.route)"
|
:href="route(item.route)"
|
||||||
:title="!isSidebarOpen ? item.label : undefined"
|
:title="!isSidebarOpen ? item.label : undefined"
|
||||||
|
|||||||
@@ -1,202 +1,134 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
import { ref } from 'vue';
|
import { ref } from 'vue';
|
||||||
import ApplicationLogo from '@/Components/ApplicationLogo.vue';
|
import { Link, usePage } from '@inertiajs/vue3';
|
||||||
import Dropdown from '@/Components/Dropdown.vue';
|
import Dropdown from '@/Components/Dropdown.vue';
|
||||||
import DropdownLink from '@/Components/DropdownLink.vue';
|
import DropdownLink from '@/Components/DropdownLink.vue';
|
||||||
import NavLink from '@/Components/NavLink.vue';
|
|
||||||
import ResponsiveNavLink from '@/Components/ResponsiveNavLink.vue';
|
|
||||||
import { Link } from '@inertiajs/vue3';
|
|
||||||
import EnvironmentBanner from '@/Components/EnvironmentBanner.vue';
|
import EnvironmentBanner from '@/Components/EnvironmentBanner.vue';
|
||||||
|
|
||||||
const showingNavigationDropdown = ref(false);
|
const showingNavigationDropdown = ref(false);
|
||||||
|
const page = usePage();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<EnvironmentBanner />
|
<EnvironmentBanner />
|
||||||
<div>
|
|
||||||
<div class="min-h-screen" style="background:#f8fafc;">
|
|
||||||
<nav style="border-bottom:1px solid #e2e8f0; background:white; box-shadow:0 1px 3px rgba(0,0,0,0.04);">
|
|
||||||
<!-- Primary Navigation Menu -->
|
|
||||||
<div class="mx-auto max-w-7xl px-4 sm:px-6 lg:px-8">
|
|
||||||
<div class="flex h-16 justify-between">
|
|
||||||
<div class="flex">
|
|
||||||
<!-- Logo -->
|
|
||||||
<div class="flex shrink-0 items-center">
|
|
||||||
<Link :href="route('dashboard')">
|
|
||||||
<ApplicationLogo
|
|
||||||
class="block h-9 w-auto fill-indigo-600"
|
|
||||||
/>
|
|
||||||
</Link>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Navigation Links -->
|
<div class="min-h-screen bg-neutral font-sans text-ink selection:bg-highlight selection:text-highlight-dark flex flex-col">
|
||||||
<div
|
<!-- Top Navigation -->
|
||||||
class="hidden space-x-8 sm:-my-px sm:ms-10 sm:flex"
|
<nav class="h-[70px] bg-surface border-b border-ink/[0.05] shadow-xs z-20 shrink-0">
|
||||||
>
|
<div class="mx-auto max-w-7xl px-4 sm:px-6 lg:px-8 h-full">
|
||||||
<NavLink
|
<div class="flex items-center justify-between h-full">
|
||||||
:href="route('dashboard')"
|
|
||||||
:active="route().current('dashboard')"
|
|
||||||
>
|
|
||||||
Dashboard
|
|
||||||
</NavLink>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="hidden sm:ms-6 sm:flex sm:items-center">
|
<!-- Left side: Logo -->
|
||||||
<!-- Settings Dropdown -->
|
<div class="flex items-center">
|
||||||
<div class="relative ms-3">
|
<Link :href="route('dashboard')" class="flex items-center gap-3">
|
||||||
<Dropdown align="right" width="48">
|
<img src="/images/logo.png" alt="Logo" class="h-8 object-contain" />
|
||||||
<template #trigger>
|
</Link>
|
||||||
<span class="inline-flex rounded-md">
|
|
||||||
<button
|
|
||||||
type="button"
|
|
||||||
style="display:inline-flex; align-items:center; border-radius:0.75rem; border:1.5px solid #e2e8f0; background:#f1f5f9; padding:0.5rem 1rem; font-size:0.875rem; font-weight:700; color:#0f172a; transition:all 0.15s ease;"
|
|
||||||
>
|
|
||||||
{{ $page.props.auth.user.name }}
|
|
||||||
|
|
||||||
<svg
|
|
||||||
class="-me-0.5 ms-2 h-4 w-4"
|
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
|
||||||
viewBox="0 0 20 20"
|
|
||||||
fill="currentColor"
|
|
||||||
>
|
|
||||||
<path
|
|
||||||
fill-rule="evenodd"
|
|
||||||
d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z"
|
|
||||||
clip-rule="evenodd"
|
|
||||||
/>
|
|
||||||
</svg>
|
|
||||||
</button>
|
|
||||||
</span>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<template #content>
|
|
||||||
<DropdownLink
|
|
||||||
:href="route('profile.edit')"
|
|
||||||
>
|
|
||||||
Profile
|
|
||||||
</DropdownLink>
|
|
||||||
<DropdownLink
|
|
||||||
:href="route('logout')"
|
|
||||||
method="post"
|
|
||||||
as="button"
|
|
||||||
>
|
|
||||||
Log Out
|
|
||||||
</DropdownLink>
|
|
||||||
</template>
|
|
||||||
</Dropdown>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Hamburger -->
|
|
||||||
<div class="-me-2 flex items-center sm:hidden">
|
|
||||||
<button
|
|
||||||
@click="
|
|
||||||
showingNavigationDropdown =
|
|
||||||
!showingNavigationDropdown
|
|
||||||
"
|
|
||||||
class="inline-flex items-center justify-center rounded-md p-2 text-gray-400 transition duration-150 ease-in-out hover:bg-gray-100 hover:text-gray-500 focus:bg-gray-100 focus:text-gray-500 focus:outline-none"
|
|
||||||
>
|
|
||||||
<svg
|
|
||||||
class="h-6 w-6"
|
|
||||||
stroke="currentColor"
|
|
||||||
fill="none"
|
|
||||||
viewBox="0 0 24 24"
|
|
||||||
>
|
|
||||||
<path
|
|
||||||
:class="{
|
|
||||||
hidden: showingNavigationDropdown,
|
|
||||||
'inline-flex':
|
|
||||||
!showingNavigationDropdown,
|
|
||||||
}"
|
|
||||||
stroke-linecap="round"
|
|
||||||
stroke-linejoin="round"
|
|
||||||
stroke-width="2"
|
|
||||||
d="M4 6h16M4 12h16M4 18h16"
|
|
||||||
/>
|
|
||||||
<path
|
|
||||||
:class="{
|
|
||||||
hidden: !showingNavigationDropdown,
|
|
||||||
'inline-flex':
|
|
||||||
showingNavigationDropdown,
|
|
||||||
}"
|
|
||||||
stroke-linecap="round"
|
|
||||||
stroke-linejoin="round"
|
|
||||||
stroke-width="2"
|
|
||||||
d="M6 18L18 6M6 6l12 12"
|
|
||||||
/>
|
|
||||||
</svg>
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Responsive Navigation Menu -->
|
<!-- Right side: Profile Dropdown -->
|
||||||
<div
|
<div class="hidden sm:flex items-center gap-4">
|
||||||
:class="{
|
<Dropdown align="right" width="48">
|
||||||
block: showingNavigationDropdown,
|
<template #trigger>
|
||||||
hidden: !showingNavigationDropdown,
|
<button class="flex items-center gap-3 p-1.5 pr-3 rounded-2xl border border-ink/[0.05] hover:bg-ink/[0.02] hover:border-ink/[0.1] transition-all duration-200">
|
||||||
}"
|
<div class="w-[34px] h-[34px] rounded-xl bg-highlight flex items-center justify-center text-[13px] font-black text-highlight-dark shrink-0 shadow-sm">
|
||||||
class="sm:hidden"
|
{{ $page.props.auth.user.name.charAt(0) }}
|
||||||
>
|
</div>
|
||||||
<div class="space-y-1 pb-3 pt-2">
|
<div class="text-left flex-1 min-w-0">
|
||||||
<ResponsiveNavLink
|
<div class="text-[13px] font-bold text-primary truncate leading-tight">{{ $page.props.auth.user.name }}</div>
|
||||||
:href="route('dashboard')"
|
<div class="text-[11px] text-ink/40 font-subtitle truncate">{{ $page.props.auth.user.email }}</div>
|
||||||
:active="route().current('dashboard')"
|
</div>
|
||||||
|
<div class="text-ink/30 ml-1">
|
||||||
|
<svg class="w-4 h-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
||||||
|
<path d="M6 9l6 6 6-6"/>
|
||||||
|
</svg>
|
||||||
|
</div>
|
||||||
|
</button>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<template #content>
|
||||||
|
<div class="px-4 py-2 border-b border-ink/5">
|
||||||
|
<div class="text-[10px] font-black uppercase tracking-[0.1em] text-ink/30">Candidat</div>
|
||||||
|
</div>
|
||||||
|
<DropdownLink :href="route('profile.edit')" class="!text-[13px]">
|
||||||
|
Paramètres du profil
|
||||||
|
</DropdownLink>
|
||||||
|
<div class="border-t border-ink/5 my-1" />
|
||||||
|
<DropdownLink :href="route('logout')" method="post" as="button" class="!text-accent font-bold !text-[13px]">
|
||||||
|
Se déconnecter
|
||||||
|
</DropdownLink>
|
||||||
|
</template>
|
||||||
|
</Dropdown>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Mobile Menu Button -->
|
||||||
|
<div class="-mr-2 flex items-center sm:hidden">
|
||||||
|
<button
|
||||||
|
@click="showingNavigationDropdown = !showingNavigationDropdown"
|
||||||
|
class="inline-flex items-center justify-center p-2 rounded-xl text-primary hover:bg-ink/5 transition duration-150 ease-in-out focus:outline-none focus:bg-ink/5"
|
||||||
>
|
>
|
||||||
Dashboard
|
<svg class="h-6 w-6" stroke="currentColor" fill="none" viewBox="0 0 24 24">
|
||||||
</ResponsiveNavLink>
|
<path
|
||||||
</div>
|
:class="{'hidden': showingNavigationDropdown, 'inline-flex': !showingNavigationDropdown }"
|
||||||
|
stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16"
|
||||||
<!-- Responsive Settings Options -->
|
/>
|
||||||
<div
|
<path
|
||||||
class="border-t border-gray-200 pb-1 pt-4"
|
:class="{'hidden': !showingNavigationDropdown, 'inline-flex': showingNavigationDropdown }"
|
||||||
>
|
stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"
|
||||||
<div class="px-4">
|
/>
|
||||||
<div
|
</svg>
|
||||||
class="text-base font-medium text-gray-800"
|
</button>
|
||||||
>
|
|
||||||
{{ $page.props.auth.user.name }}
|
|
||||||
</div>
|
|
||||||
<div class="text-sm font-medium text-gray-500">
|
|
||||||
{{ $page.props.auth.user.email }}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="mt-3 space-y-1">
|
|
||||||
<ResponsiveNavLink :href="route('profile.edit')">
|
|
||||||
Profile
|
|
||||||
</ResponsiveNavLink>
|
|
||||||
<ResponsiveNavLink
|
|
||||||
:href="route('logout')"
|
|
||||||
method="post"
|
|
||||||
as="button"
|
|
||||||
>
|
|
||||||
Log Out
|
|
||||||
</ResponsiveNavLink>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</div>
|
||||||
|
|
||||||
<!-- Page Heading -->
|
<!-- Mobile Navigation Menu -->
|
||||||
<header
|
<div :class="{'block': showingNavigationDropdown, 'hidden': !showingNavigationDropdown}" class="sm:hidden bg-surface border-b border-ink/10 shadow-lg absolute w-full z-50">
|
||||||
style="background:white; border-bottom:1px solid #f1f5f9; box-shadow:none;"
|
<div class="pt-4 pb-3 border-t border-ink/5">
|
||||||
v-if="$slots.header"
|
<div class="px-4 flex items-center gap-3">
|
||||||
>
|
<div class="w-10 h-10 rounded-xl bg-highlight flex items-center justify-center text-sm font-black text-highlight-dark shrink-0">
|
||||||
<div class="mx-auto max-w-7xl px-4 py-6 sm:px-6 lg:px-8">
|
{{ $page.props.auth.user.name.charAt(0) }}
|
||||||
<slot name="header" />
|
</div>
|
||||||
|
<div>
|
||||||
|
<div class="text-sm font-bold text-primary">{{ $page.props.auth.user.name }}</div>
|
||||||
|
<div class="text-[11px] font-subtitle text-ink/50">{{ $page.props.auth.user.email }}</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="mt-4 space-y-1">
|
||||||
|
<Link :href="route('profile.edit')" class="block w-full px-4 py-2.5 text-left text-[13px] font-bold text-primary hover:bg-ink/5 transition-colors">
|
||||||
|
Paramètres du profil
|
||||||
|
</Link>
|
||||||
|
<Link :href="route('logout')" method="post" as="button" class="block w-full px-4 py-2.5 text-left text-[13px] font-bold text-accent hover:bg-ink/5 transition-colors">
|
||||||
|
Se déconnecter
|
||||||
|
</Link>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</div>
|
||||||
|
</nav>
|
||||||
|
|
||||||
<!-- Page Content -->
|
<!-- Page Heading -->
|
||||||
<main>
|
<header v-if="$slots.header" class="bg-surface border-b border-ink/[0.05] shadow-xs shrink-0 relative z-10">
|
||||||
<slot />
|
<div class="mx-auto max-w-7xl px-4 py-5 sm:px-6 lg:px-8">
|
||||||
</main>
|
<div class="flex items-center gap-3">
|
||||||
|
<div class="w-[3px] h-5 bg-highlight rounded-full hidden md:block"></div>
|
||||||
|
<div class="font-serif font-black text-lg text-primary tracking-tight">
|
||||||
|
<slot name="header" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
<footer class="pb-8 pt-4 text-center" style="background:#f8fafc;">
|
<!-- Page Content -->
|
||||||
<span class="text-[10px] font-mono" style="color:#9ca3af;">v{{ $page.props.app_version }}</span>
|
<main class="flex-1 flex flex-col relative">
|
||||||
</footer>
|
<slot />
|
||||||
</div>
|
</main>
|
||||||
|
|
||||||
|
<footer class="pb-6 pt-6 text-center shrink-0">
|
||||||
|
<span class="text-[10px] font-mono font-bold uppercase tracking-[0.1em] text-ink/20">v{{ $page.props.app_version }}</span>
|
||||||
|
</footer>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
/* Any required scoped styling here */
|
||||||
|
</style>
|
||||||
|
|||||||
@@ -12,12 +12,7 @@ import EnvironmentBanner from '@/Components/EnvironmentBanner.vue';
|
|||||||
<!-- Header and Logo -->
|
<!-- Header and Logo -->
|
||||||
<div class="mb-8 flex flex-col justify-center items-center gap-4">
|
<div class="mb-8 flex flex-col justify-center items-center gap-4">
|
||||||
<Link href="/" class="flex flex-col items-center gap-3 group">
|
<Link href="/" class="flex flex-col items-center gap-3 group">
|
||||||
<div class="w-16 h-16 bg-primary rounded-xl flex items-center justify-center shadow-lg shadow-primary/30 group-hover:-translate-y-1 transition-all duration-300">
|
<img src="/images/logo.png" alt="Logo" class="h-16 object-contain group-hover:-translate-y-1 transition-all duration-300" />
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" class="h-8 w-8 text-white" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
||||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5" d="M9.663 17h4.673M12 3v1m6.364 1.636l-.707.707M21 12h-1M4 12H3m3.343-5.657l-.707-.707m2.828 9.9l-.707.707M12 18v3m4.95-4.95l.707.707M12 3c-4.418 0-8 3.582-8 8 0 2.209.895 4.209 2.343 5.657L12 21l5.657-5.343A7.994 7.994 0 0020 11c0-4.418-3.582-8-8-8z" />
|
|
||||||
</svg>
|
|
||||||
</div>
|
|
||||||
<span class="text-3xl font-serif font-black tracking-tight text-primary">RECRU<span class="text-accent italic px-1">IT</span></span>
|
|
||||||
<span class="text-xs font-subtitle uppercase tracking-[0.2em] text-anthracite/50 font-bold mt-1">Espace sécurisé</span>
|
<span class="text-xs font-subtitle uppercase tracking-[0.2em] text-anthracite/50 font-bold mt-1">Espace sécurisé</span>
|
||||||
</Link>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -74,7 +74,9 @@ const getNestedValue = (obj, path) => {
|
|||||||
return path.split('.').reduce((o, i) => (o ? o[i] : null), obj);
|
return path.split('.').reduce((o, i) => (o ? o[i] : null), obj);
|
||||||
};
|
};
|
||||||
|
|
||||||
const selectedJobPosition = ref('');
|
const urlParams = new URLSearchParams(window.location.search);
|
||||||
|
const initialJobPositionParam = urlParams.get('job_position');
|
||||||
|
const selectedJobPosition = ref(initialJobPositionParam === 'none' ? 'none' : (initialJobPositionParam ? parseInt(initialJobPositionParam) : ''));
|
||||||
const showOnlySelected = ref(false);
|
const showOnlySelected = ref(false);
|
||||||
|
|
||||||
const filteredCandidates = computed(() => {
|
const filteredCandidates = computed(() => {
|
||||||
@@ -181,7 +183,7 @@ const batchAnalyze = async () => {
|
|||||||
Liste des Candidats
|
Liste des Candidats
|
||||||
</h3>
|
</h3>
|
||||||
<div class="flex flex-col sm:flex-row items-center gap-4">
|
<div class="flex flex-col sm:flex-row items-center gap-4">
|
||||||
<div class="flex items-center gap-3 bg-white p-2 rounded-xl border border-anthracite/5 shadow-sm min-w-max">
|
<div v-if="$page.props.auth.user.role !== 'gestionnaire_rh'" class="flex items-center gap-3 bg-white p-2 rounded-xl border border-anthracite/5 shadow-sm min-w-max">
|
||||||
<label class="flex items-center gap-2 cursor-pointer px-2">
|
<label class="flex items-center gap-2 cursor-pointer px-2">
|
||||||
<input type="checkbox" v-model="showOnlySelected" class="rounded border-highlight/50 text-highlight focus:ring-highlight/20 cursor-pointer">
|
<input type="checkbox" v-model="showOnlySelected" class="rounded border-highlight/50 text-highlight focus:ring-highlight/20 cursor-pointer">
|
||||||
<span class="text-xs font-bold text-primary uppercase tracking-widest">Retenus uniquement</span>
|
<span class="text-xs font-bold text-primary uppercase tracking-widest">Retenus uniquement</span>
|
||||||
@@ -202,7 +204,7 @@ const batchAnalyze = async () => {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex items-center gap-4 w-full md:w-auto justify-end">
|
<div class="flex items-center gap-4 w-full md:w-auto justify-end">
|
||||||
<div v-if="selectedIds.length > 0" class="flex items-center gap-3 animate-in fade-in slide-in-from-right-4 duration-300">
|
<div v-if="selectedIds.length > 0 && $page.props.auth.user.role !== 'gestionnaire_rh'" class="flex items-center gap-3 animate-in fade-in slide-in-from-right-4 duration-300">
|
||||||
<span class="text-xs font-black uppercase tracking-widest text-primary/50">{{ selectedIds.length }} sélectionné(s)</span>
|
<span class="text-xs font-black uppercase tracking-widest text-primary/50">{{ selectedIds.length }} sélectionné(s)</span>
|
||||||
<PrimaryButton
|
<PrimaryButton
|
||||||
@click="batchAnalyze"
|
@click="batchAnalyze"
|
||||||
@@ -246,7 +248,7 @@ const batchAnalyze = async () => {
|
|||||||
<table class="w-full text-left border-collapse">
|
<table class="w-full text-left border-collapse">
|
||||||
<thead class="bg-neutral/50 border-b border-anthracite/5">
|
<thead class="bg-neutral/50 border-b border-anthracite/5">
|
||||||
<tr>
|
<tr>
|
||||||
<th class="w-12 px-8 py-5">
|
<th v-if="$page.props.auth.user.role !== 'gestionnaire_rh'" class="w-12 px-8 py-5">
|
||||||
<input
|
<input
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
:checked="selectedIds.length === sortedCandidates.length && sortedCandidates.length > 0"
|
:checked="selectedIds.length === sortedCandidates.length && sortedCandidates.length > 0"
|
||||||
@@ -254,7 +256,7 @@ const batchAnalyze = async () => {
|
|||||||
class="rounded border-anthracite/20 text-primary focus:ring-primary/20 cursor-pointer"
|
class="rounded border-anthracite/20 text-primary focus:ring-primary/20 cursor-pointer"
|
||||||
>
|
>
|
||||||
</th>
|
</th>
|
||||||
<th class="w-12 px-4 py-5"></th>
|
<th v-if="$page.props.auth.user.role !== 'gestionnaire_rh'" class="w-12 px-4 py-5"></th>
|
||||||
<th @click="sortBy('user.name')" class="px-8 py-5 text-[10px] font-subtitle font-black uppercase tracking-[0.2em] text-anthracite/40 cursor-pointer hover:text-primary transition-colors">
|
<th @click="sortBy('user.name')" class="px-8 py-5 text-[10px] font-subtitle font-black uppercase tracking-[0.2em] text-anthracite/40 cursor-pointer hover:text-primary transition-colors">
|
||||||
<div class="flex items-center gap-2">
|
<div class="flex items-center gap-2">
|
||||||
Nom
|
Nom
|
||||||
@@ -291,13 +293,13 @@ const batchAnalyze = async () => {
|
|||||||
<svg v-show="sortKey === 'status'" xmlns="http://www.w3.org/2000/svg" class="h-3 w-3" :class="{ 'rotate-180': sortOrder === -1 }" viewBox="0 0 20 20" fill="currentColor"><path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd" /></svg>
|
<svg v-show="sortKey === 'status'" xmlns="http://www.w3.org/2000/svg" class="h-3 w-3" :class="{ 'rotate-180': sortOrder === -1 }" viewBox="0 0 20 20" fill="currentColor"><path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd" /></svg>
|
||||||
</div>
|
</div>
|
||||||
</th>
|
</th>
|
||||||
<th @click="sortBy('weighted_score')" class="px-8 py-5 text-[10px] font-subtitle font-black uppercase tracking-[0.2em] text-anthracite/40 cursor-pointer hover:text-primary transition-colors">
|
<th v-if="$page.props.auth.user.role !== 'gestionnaire_rh'" @click="sortBy('weighted_score')" class="px-8 py-5 text-[10px] font-subtitle font-black uppercase tracking-[0.2em] text-anthracite/40 cursor-pointer hover:text-primary transition-colors">
|
||||||
<div class="flex items-center gap-2">
|
<div class="flex items-center gap-2">
|
||||||
Score
|
Score
|
||||||
<svg v-show="sortKey === 'weighted_score'" xmlns="http://www.w3.org/2000/svg" class="h-3 w-3" :class="{ 'rotate-180': sortOrder === -1 }" viewBox="0 0 20 20" fill="currentColor"><path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd" /></svg>
|
<svg v-show="sortKey === 'weighted_score'" xmlns="http://www.w3.org/2000/svg" class="h-3 w-3" :class="{ 'rotate-180': sortOrder === -1 }" viewBox="0 0 20 20" fill="currentColor"><path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd" /></svg>
|
||||||
</div>
|
</div>
|
||||||
</th>
|
</th>
|
||||||
<th @click="sortBy('ai_analysis.match_score')" class="px-8 py-5 text-[10px] font-subtitle font-black uppercase tracking-[0.2em] text-anthracite/40 cursor-pointer hover:text-primary transition-colors">
|
<th v-if="$page.props.auth.user.role !== 'gestionnaire_rh'" @click="sortBy('ai_analysis.match_score')" class="px-8 py-5 text-[10px] font-subtitle font-black uppercase tracking-[0.2em] text-anthracite/40 cursor-pointer hover:text-primary transition-colors">
|
||||||
<div class="flex items-center gap-2">
|
<div class="flex items-center gap-2">
|
||||||
IA Match
|
IA Match
|
||||||
<svg v-show="sortKey === 'ai_analysis.match_score'" xmlns="http://www.w3.org/2000/svg" class="h-3 w-3" :class="{ 'rotate-180': sortOrder === -1 }" viewBox="0 0 20 20" fill="currentColor"><path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd" /></svg>
|
<svg v-show="sortKey === 'ai_analysis.match_score'" xmlns="http://www.w3.org/2000/svg" class="h-3 w-3" :class="{ 'rotate-180': sortOrder === -1 }" viewBox="0 0 20 20" fill="currentColor"><path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd" /></svg>
|
||||||
@@ -309,7 +311,7 @@ const batchAnalyze = async () => {
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody class="divide-y divide-anthracite/5">
|
<tbody class="divide-y divide-anthracite/5">
|
||||||
<tr v-for="candidate in sortedCandidates" :key="candidate.id" class="hover:bg-sand/30 transition-colors group" :class="{ 'bg-primary/5': selectedIds.includes(candidate.id) }">
|
<tr v-for="candidate in sortedCandidates" :key="candidate.id" class="hover:bg-sand/30 transition-colors group" :class="{ 'bg-primary/5': selectedIds.includes(candidate.id) }">
|
||||||
<td class="px-8 py-5">
|
<td v-if="$page.props.auth.user.role !== 'gestionnaire_rh'" class="px-8 py-5">
|
||||||
<input
|
<input
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
:value="candidate.id"
|
:value="candidate.id"
|
||||||
@@ -317,7 +319,7 @@ const batchAnalyze = async () => {
|
|||||||
class="rounded border-anthracite/20 text-primary focus:ring-primary/20 cursor-pointer"
|
class="rounded border-anthracite/20 text-primary focus:ring-primary/20 cursor-pointer"
|
||||||
>
|
>
|
||||||
</td>
|
</td>
|
||||||
<td class="px-4 py-5 text-center">
|
<td v-if="$page.props.auth.user.role !== 'gestionnaire_rh'" class="px-4 py-5 text-center">
|
||||||
<button @click="toggleSelection(candidate.id)" class="text-anthracite/20 hover:text-highlight hover:-translate-y-0.5 transition-all focus:outline-none" :class="{ '!text-highlight drop-shadow-sm scale-110': candidate.is_selected }" :title="candidate.is_selected ? 'Retirer des retenus' : 'Marquer comme retenu'">
|
<button @click="toggleSelection(candidate.id)" class="text-anthracite/20 hover:text-highlight hover:-translate-y-0.5 transition-all focus:outline-none" :class="{ '!text-highlight drop-shadow-sm scale-110': candidate.is_selected }" :title="candidate.is_selected ? 'Retirer des retenus' : 'Marquer comme retenu'">
|
||||||
<svg v-if="candidate.is_selected" xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" viewBox="0 0 20 20" fill="currentColor">
|
<svg v-if="candidate.is_selected" xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" viewBox="0 0 20 20" fill="currentColor">
|
||||||
<path d="M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z" />
|
<path d="M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z" />
|
||||||
@@ -358,12 +360,12 @@ const batchAnalyze = async () => {
|
|||||||
{{ candidate.status }}
|
{{ candidate.status }}
|
||||||
</span>
|
</span>
|
||||||
</td>
|
</td>
|
||||||
<td class="px-8 py-5">
|
<td v-if="$page.props.auth.user.role !== 'gestionnaire_rh'" class="px-8 py-5">
|
||||||
<div class="inline-flex items-center gap-2 px-3 py-1 bg-primary/5 text-primary rounded-xl font-black text-sm border border-primary/10 shadow-sm">
|
<div class="inline-flex items-center gap-2 px-3 py-1 bg-primary/5 text-primary rounded-xl font-black text-sm border border-primary/10 shadow-sm">
|
||||||
{{ candidate.weighted_score }} <span class="opacity-50 text-[10px]">/ 20</span>
|
{{ candidate.weighted_score }} <span class="opacity-50 text-[10px]">/ 20</span>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td class="px-8 py-5">
|
<td v-if="$page.props.auth.user.role !== 'gestionnaire_rh'" class="px-8 py-5">
|
||||||
<div v-if="candidate.ai_analysis" class="flex items-center gap-2">
|
<div v-if="candidate.ai_analysis" class="flex items-center gap-2">
|
||||||
<div
|
<div
|
||||||
class="px-2 py-0.5 rounded-lg text-[10px] font-black shadow-sm"
|
class="px-2 py-0.5 rounded-lg text-[10px] font-black shadow-sm"
|
||||||
@@ -458,7 +460,7 @@ const batchAnalyze = async () => {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
|
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
|
||||||
<div v-if="$page.props.auth.user.role === 'super_admin'">
|
<div v-if="$page.props.auth.user.role === 'super_admin' || $page.props.auth.user.role === 'gestionnaire_rh'">
|
||||||
<InputLabel for="tenant_id" value="Structure de rattachement" />
|
<InputLabel for="tenant_id" value="Structure de rattachement" />
|
||||||
<select id="tenant_id" v-model="form.tenant_id" class="mt-1 block w-full rounded-md border-slate-300 dark:border-slate-700 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 sm:text-sm dark:bg-slate-900">
|
<select id="tenant_id" v-model="form.tenant_id" class="mt-1 block w-full rounded-md border-slate-300 dark:border-slate-700 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 sm:text-sm dark:bg-slate-900">
|
||||||
<option value="">Aucune</option>
|
<option value="">Aucune</option>
|
||||||
|
|||||||
@@ -26,11 +26,20 @@ const positionForm = useForm({ job_position_id: props.candidate.job_position_id
|
|||||||
|
|
||||||
const showEditDetailsModal = ref(false);
|
const showEditDetailsModal = ref(false);
|
||||||
const detailsForm = useForm({
|
const detailsForm = useForm({
|
||||||
name: props.candidate.user.name,
|
birth_name: props.candidate.birth_name || '',
|
||||||
|
usage_name: props.candidate.usage_name || '',
|
||||||
|
first_name: props.candidate.first_name || '',
|
||||||
|
address: props.candidate.address || '',
|
||||||
|
zip_code: props.candidate.zip_code || '',
|
||||||
email: props.candidate.user.email,
|
email: props.candidate.user.email,
|
||||||
phone: props.candidate.phone || '',
|
phone: props.candidate.phone || '',
|
||||||
linkedin_url: props.candidate.linkedin_url || '',
|
|
||||||
city: props.candidate.city || '',
|
city: props.candidate.city || '',
|
||||||
|
birth_date: props.candidate.birth_date || '',
|
||||||
|
birth_place: props.candidate.birth_place || '',
|
||||||
|
nationality: props.candidate.nationality || '',
|
||||||
|
current_situation: props.candidate.current_situation || '',
|
||||||
|
education_level: props.candidate.education_level || '',
|
||||||
|
has_driving_license: props.candidate.has_driving_license ? 1 : 0,
|
||||||
});
|
});
|
||||||
const updateDetails = () => {
|
const updateDetails = () => {
|
||||||
detailsForm.put(route('admin.candidates.update', props.candidate.id), {
|
detailsForm.put(route('admin.candidates.update', props.candidate.id), {
|
||||||
@@ -94,7 +103,7 @@ const updateDocuments = () => docForm.post(route('admin.candidates.update', prop
|
|||||||
const saveScores = () => {
|
const saveScores = () => {
|
||||||
scoreForm.cv_score = Math.min(20, Math.max(0, scoreForm.cv_score));
|
scoreForm.cv_score = Math.min(20, Math.max(0, scoreForm.cv_score));
|
||||||
scoreForm.motivation_score = Math.min(10, Math.max(0, scoreForm.motivation_score));
|
scoreForm.motivation_score = Math.min(10, Math.max(0, scoreForm.motivation_score));
|
||||||
scoreForm.interview_score = Math.min(30, Math.max(0, scoreForm.interview_score));
|
scoreForm.interview_score = Math.min(25, Math.max(0, scoreForm.interview_score));
|
||||||
scoreForm.patch(route('admin.candidates.update-scores', props.candidate.id), { preserveScroll: true });
|
scoreForm.patch(route('admin.candidates.update-scores', props.candidate.id), { preserveScroll: true });
|
||||||
};
|
};
|
||||||
const openPreview = (doc) => { selectedDocument.value = doc; };
|
const openPreview = (doc) => { selectedDocument.value = doc; };
|
||||||
@@ -124,7 +133,7 @@ const softSkillsScore = computed(() => {
|
|||||||
const radarData = computed(() => ([
|
const radarData = computed(() => ([
|
||||||
Math.round((parseFloat(scoreForm.cv_score) / 20) * 100),
|
Math.round((parseFloat(scoreForm.cv_score) / 20) * 100),
|
||||||
Math.round((parseFloat(scoreForm.motivation_score) / 10) * 100),
|
Math.round((parseFloat(scoreForm.motivation_score) / 10) * 100),
|
||||||
Math.round((parseFloat(scoreForm.interview_score) / 30) * 100),
|
Math.round((parseFloat(scoreForm.interview_score) / 25) * 100),
|
||||||
Math.round((bestTestScore.value / 20) * 100),
|
Math.round((bestTestScore.value / 20) * 100),
|
||||||
Math.round((softSkillsScore.value / 10) * 100),
|
Math.round((softSkillsScore.value / 10) * 100),
|
||||||
]));
|
]));
|
||||||
@@ -184,7 +193,7 @@ const forceAnalysis = ref(false);
|
|||||||
|
|
||||||
const calculatedInterviewScore = computed(() => {
|
const calculatedInterviewScore = computed(() => {
|
||||||
const qScore = (notesForm.interview_details.questions || []).reduce((a, q) => a + (parseFloat(q.score) || 0), 0);
|
const qScore = (notesForm.interview_details.questions || []).reduce((a, q) => a + (parseFloat(q.score) || 0), 0);
|
||||||
return Math.min(30, qScore + (parseFloat(notesForm.interview_details.appreciation) || 0));
|
return Math.min(25, qScore + (parseFloat(notesForm.interview_details.appreciation) || 0));
|
||||||
});
|
});
|
||||||
|
|
||||||
watch(aiAnalysis, (val) => {
|
watch(aiAnalysis, (val) => {
|
||||||
@@ -264,7 +273,7 @@ const barColor = (pct) => pct >= 80 ? 'bg-success' : pct >= 60 ? 'bg-highlight'
|
|||||||
<div class="h-16 bg-primary relative rounded-t-2xl overflow-hidden">
|
<div class="h-16 bg-primary relative rounded-t-2xl overflow-hidden">
|
||||||
<div class="absolute inset-0 opacity-10" style="background: radial-gradient(circle at top right, #f5a800, transparent 70%)"></div>
|
<div class="absolute inset-0 opacity-10" style="background: radial-gradient(circle at top right, #f5a800, transparent 70%)"></div>
|
||||||
<!-- Selection star -->
|
<!-- Selection star -->
|
||||||
<button @click="toggleSelection" :title="candidate.is_selected ? 'Retirer la sélection' : 'Retenir ce candidat'"
|
<button v-if="$page.props.auth.user.role !== 'gestionnaire_rh'" @click="toggleSelection" :title="candidate.is_selected ? 'Retirer la sélection' : 'Retenir ce candidat'"
|
||||||
class="absolute top-3 right-3 p-1.5 rounded-lg transition-all"
|
class="absolute top-3 right-3 p-1.5 rounded-lg transition-all"
|
||||||
:class="candidate.is_selected ? 'text-highlight bg-highlight/20' : 'text-white/30 hover:text-highlight hover:bg-white/10'">
|
:class="candidate.is_selected ? 'text-highlight bg-highlight/20' : 'text-white/30 hover:text-highlight hover:bg-white/10'">
|
||||||
<svg class="w-4 h-4" viewBox="0 0 24 24" fill="currentColor" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"/></svg>
|
<svg class="w-4 h-4" viewBox="0 0 24 24" fill="currentColor" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"/></svg>
|
||||||
@@ -318,7 +327,7 @@ const barColor = (pct) => pct >= 80 ? 'bg-success' : pct >= 60 ? 'bg-highlight'
|
|||||||
Exporter
|
Exporter
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<button @click="toggleSelection"
|
<button v-if="$page.props.auth.user.role !== 'gestionnaire_rh'" @click="toggleSelection"
|
||||||
:class="['mt-2 w-full flex items-center justify-center gap-2 py-2.5 rounded-[10px] border-none text-xs font-extrabold uppercase tracking-[0.08em] transition-all duration-150',
|
:class="['mt-2 w-full flex items-center justify-center gap-2 py-2.5 rounded-[10px] border-none text-xs font-extrabold uppercase tracking-[0.08em] transition-all duration-150',
|
||||||
candidate.is_selected
|
candidate.is_selected
|
||||||
? 'bg-highlight/15 text-highlight border border-highlight/30 hover:bg-highlight/25'
|
? 'bg-highlight/15 text-highlight border border-highlight/30 hover:bg-highlight/25'
|
||||||
@@ -330,7 +339,7 @@ const barColor = (pct) => pct >= 80 ? 'bg-success' : pct >= 60 ? 'bg-highlight'
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Score global card -->
|
<!-- Score global card -->
|
||||||
<div class="bg-primary rounded-2xl p-5 relative overflow-hidden">
|
<div v-if="$page.props.auth.user.role !== 'gestionnaire_rh'" class="bg-primary rounded-2xl p-5 relative overflow-hidden">
|
||||||
<div class="absolute inset-0 opacity-10" style="background: radial-gradient(circle at bottom right, #f5a800, transparent 60%)"></div>
|
<div class="absolute inset-0 opacity-10" style="background: radial-gradient(circle at bottom right, #f5a800, transparent 60%)"></div>
|
||||||
<div class="relative z-10">
|
<div class="relative z-10">
|
||||||
<p class="text-[9px] font-black uppercase tracking-[0.18em] text-white/40 mb-2">Score Global Pondéré</p>
|
<p class="text-[9px] font-black uppercase tracking-[0.18em] text-white/40 mb-2">Score Global Pondéré</p>
|
||||||
@@ -343,7 +352,7 @@ const barColor = (pct) => pct >= 80 ? 'bg-success' : pct >= 60 ? 'bg-highlight'
|
|||||||
<div v-for="(item, i) in [
|
<div v-for="(item, i) in [
|
||||||
{ label:'CV', val: scoreForm.cv_score, max:20 },
|
{ label:'CV', val: scoreForm.cv_score, max:20 },
|
||||||
{ label:'Lettre', val: scoreForm.motivation_score, max:10 },
|
{ label:'Lettre', val: scoreForm.motivation_score, max:10 },
|
||||||
{ label:'Entretien', val: scoreForm.interview_score, max:30 },
|
{ label:'Entretien', val: scoreForm.interview_score, max:25 },
|
||||||
{ label:'Test', val: bestTestScore, max:20 },
|
{ label:'Test', val: bestTestScore, max:20 },
|
||||||
]" :key="i" class="flex items-center gap-2">
|
]" :key="i" class="flex items-center gap-2">
|
||||||
<span class="text-[9px] font-black text-white/35 uppercase w-14 shrink-0">{{ item.label }}</span>
|
<span class="text-[9px] font-black text-white/35 uppercase w-14 shrink-0">{{ item.label }}</span>
|
||||||
@@ -356,8 +365,24 @@ const barColor = (pct) => pct >= 80 ? 'bg-success' : pct >= 60 ? 'bg-highlight'
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- Security Alert Badge -->
|
||||||
|
<div v-if="candidate.user.security_alerts?.length" class="bg-accent/10 border border-accent/20 rounded-2xl p-5 relative overflow-hidden">
|
||||||
|
<div class="absolute top-0 right-0 w-24 h-24 bg-[radial-gradient(circle_at_top_right,_var(--tw-gradient-stops))] from-accent/20 to-transparent"></div>
|
||||||
|
<div class="flex items-center gap-3 mb-2 relative z-10">
|
||||||
|
<div class="w-8 h-8 rounded-full bg-accent/20 flex items-center justify-center shrink-0">
|
||||||
|
<svg class="w-4 h-4 text-accent" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M10.29 3.86L1.82 18a2 2 0 001.71 3h16.94a2 2 0 001.71-3L13.71 3.86a2 2 0 00-3.42 0z"/><line x1="12" y1="9" x2="12" y2="13"/><line x1="12" y1="17" x2="12.01" y2="17"/></svg>
|
||||||
|
</div>
|
||||||
|
<p class="text-[11px] font-black uppercase tracking-[0.1em] text-accent leading-tight">
|
||||||
|
{{ candidate.user.security_alerts.length }} Alerte{{ candidate.user.security_alerts.length > 1 ? 's' : '' }} de sécurité
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<button @click="activeTab = 'security'" class="relative z-10 mt-1 text-[10px] font-bold uppercase tracking-widest text-accent/70 hover:text-accent transition-colors flex items-center gap-1">
|
||||||
|
Voir les détails <svg class="w-3 h-3" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
<!-- AI Summary card (if analysed) -->
|
<!-- AI Summary card (if analysed) -->
|
||||||
<div v-if="aiAnalysis" class="bg-surface rounded-2xl border border-ink/[0.07] shadow-sm p-5">
|
<div v-if="aiAnalysis && $page.props.auth.user.role !== 'gestionnaire_rh'" class="bg-surface rounded-2xl border border-ink/[0.07] shadow-sm p-5">
|
||||||
<div class="flex items-center justify-between mb-3">
|
<div class="flex items-center justify-between mb-3">
|
||||||
<span class="text-[9px] font-black uppercase tracking-[0.16em] text-ink/35">Analyse IA</span>
|
<span class="text-[9px] font-black uppercase tracking-[0.16em] text-ink/35">Analyse IA</span>
|
||||||
<div :class="['w-9 h-9 rounded-full flex items-center justify-center text-[11px] font-black',
|
<div :class="['w-9 h-9 rounded-full flex items-center justify-center text-[11px] font-black',
|
||||||
@@ -379,6 +404,16 @@ const barColor = (pct) => pct >= 80 ? 'bg-success' : pct >= 60 ? 'bg-highlight'
|
|||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- Structure -->
|
||||||
|
<div v-if="tenants" class="bg-surface rounded-2xl border border-ink/[0.07] shadow-sm p-5">
|
||||||
|
<p class="text-[9px] font-black uppercase tracking-[0.16em] text-ink/35 mb-3">Structure de rattachement</p>
|
||||||
|
<select v-model="tenantForm.tenant_id" @change="updateTenant"
|
||||||
|
class="w-full rounded-[10px] border border-ink/10 bg-neutral px-3 py-2 text-sm font-semibold text-ink focus:border-primary focus:ring-2 focus:ring-primary/15 outline-none transition-all">
|
||||||
|
<option value="">— Aucune structure —</option>
|
||||||
|
<option v-for="t in tenants" :key="t.id" :value="t.id">{{ t.name }}</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
|
||||||
<!-- Danger zone -->
|
<!-- Danger zone -->
|
||||||
<div class="bg-surface rounded-2xl border border-ink/[0.07] shadow-sm p-5">
|
<div class="bg-surface rounded-2xl border border-ink/[0.07] shadow-sm p-5">
|
||||||
<p class="text-[9px] font-black uppercase tracking-[0.16em] text-ink/35 mb-3">Actions</p>
|
<p class="text-[9px] font-black uppercase tracking-[0.16em] text-ink/35 mb-3">Actions</p>
|
||||||
@@ -410,7 +445,14 @@ const barColor = (pct) => pct >= 80 ? 'bg-success' : pct >= 60 ? 'bg-highlight'
|
|||||||
{ id:'interview', label:'Évaluation' },
|
{ id:'interview', label:'Évaluation' },
|
||||||
{ id:'documents', label:'Documents', count: candidate.documents?.length },
|
{ id:'documents', label:'Documents', count: candidate.documents?.length },
|
||||||
{ id:'tests', label:'Tests', count: candidate.attempts?.length },
|
{ id:'tests', label:'Tests', count: candidate.attempts?.length },
|
||||||
]" :key="tab.id" @click="activeTab = tab.id"
|
{ id:'security', label:'Sécurité', count: candidate.user.security_alerts?.length },
|
||||||
|
].filter(t => {
|
||||||
|
if (t.id === 'security' && t.count === 0) return false;
|
||||||
|
if ($page.props.auth.user.role === 'gestionnaire_rh') {
|
||||||
|
return !['ai_analysis', 'interview', 'tests', 'security'].includes(t.id);
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
})" :key="tab.id" @click="activeTab = tab.id"
|
||||||
class="relative flex items-center gap-2 px-5 py-4 text-[11px] font-black uppercase tracking-[0.1em] whitespace-nowrap transition-all duration-150"
|
class="relative flex items-center gap-2 px-5 py-4 text-[11px] font-black uppercase tracking-[0.1em] whitespace-nowrap transition-all duration-150"
|
||||||
:class="activeTab === tab.id ? 'text-primary' : 'text-ink/35 hover:text-ink/60'">
|
:class="activeTab === tab.id ? 'text-primary' : 'text-ink/35 hover:text-ink/60'">
|
||||||
{{ tab.label }}
|
{{ tab.label }}
|
||||||
@@ -423,7 +465,7 @@ const barColor = (pct) => pct >= 80 ? 'bg-success' : pct >= 60 ? 'bg-highlight'
|
|||||||
<div v-if="activeTab === 'overview'" class="p-6 space-y-6">
|
<div v-if="activeTab === 'overview'" class="p-6 space-y-6">
|
||||||
|
|
||||||
<!-- Save scores button -->
|
<!-- Save scores button -->
|
||||||
<div v-if="scoreForm.isDirty" class="flex justify-end">
|
<div v-if="scoreForm.isDirty && $page.props.auth.user.role !== 'gestionnaire_rh'" class="flex justify-end">
|
||||||
<button @click="saveScores"
|
<button @click="saveScores"
|
||||||
class="flex items-center gap-2 px-5 py-2.5 rounded-[10px] bg-highlight text-highlight-dark text-xs font-extrabold uppercase tracking-[0.08em] shadow-gold hover:brightness-105 transition-all">
|
class="flex items-center gap-2 px-5 py-2.5 rounded-[10px] bg-highlight text-highlight-dark text-xs font-extrabold uppercase tracking-[0.08em] shadow-gold hover:brightness-105 transition-all">
|
||||||
<svg class="w-3.5 h-3.5 animate-pulse" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M19 21H5a2 2 0 01-2-2V5a2 2 0 012-2h11l5 5v11a2 2 0 01-2 2z"/><polyline points="17 21 17 13 7 13 7 21"/><polyline points="7 3 7 8 15 8"/></svg>
|
<svg class="w-3.5 h-3.5 animate-pulse" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M19 21H5a2 2 0 01-2-2V5a2 2 0 012-2h11l5 5v11a2 2 0 01-2 2z"/><polyline points="17 21 17 13 7 13 7 21"/><polyline points="7 3 7 8 15 8"/></svg>
|
||||||
@@ -432,11 +474,11 @@ const barColor = (pct) => pct >= 80 ? 'bg-success' : pct >= 60 ? 'bg-highlight'
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Score inputs grid -->
|
<!-- Score inputs grid -->
|
||||||
<div class="grid grid-cols-2 md:grid-cols-4 gap-3">
|
<div v-if="$page.props.auth.user.role !== 'gestionnaire_rh'" class="grid grid-cols-2 md:grid-cols-4 gap-3">
|
||||||
<div v-for="(item, i) in [
|
<div v-for="(item, i) in [
|
||||||
{ label:'Analyse CV', key:'cv_score', max:20, color:'text-primary' },
|
{ label:'Analyse CV', key:'cv_score', max:20, color:'text-primary' },
|
||||||
{ label:'Lettre Motiv.', key:'motivation_score', max:10, color:'text-success' },
|
{ label:'Lettre Motiv.', key:'motivation_score', max:10, color:'text-success' },
|
||||||
{ label:'Entretien', key:'interview_score', max:30, color:'text-sky-600', readonly:true },
|
{ label:'Entretien', key:'interview_score', max:25, color:'text-sky-600', readonly:true },
|
||||||
{ label:'Test Technique', key:'_test', max:20, color:'text-highlight', readonly:true },
|
{ label:'Test Technique', key:'_test', max:20, color:'text-highlight', readonly:true },
|
||||||
]" :key="i" class="bg-neutral rounded-xl p-4">
|
]" :key="i" class="bg-neutral rounded-xl p-4">
|
||||||
<p class="text-[9px] font-black uppercase tracking-[0.14em] text-ink/35 mb-2">{{ item.label }}</p>
|
<p class="text-[9px] font-black uppercase tracking-[0.14em] text-ink/35 mb-2">{{ item.label }}</p>
|
||||||
@@ -454,8 +496,62 @@ const barColor = (pct) => pct >= 80 ? 'bg-success' : pct >= 60 ? 'bg-highlight'
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- Informations détaillées -->
|
||||||
|
<div class="p-5 rounded-2xl border border-ink/[0.07] bg-neutral/30 space-y-4">
|
||||||
|
<div class="flex items-center justify-between">
|
||||||
|
<p class="text-[9px] font-black uppercase tracking-[0.16em] text-ink/35">Identité & Situation</p>
|
||||||
|
<button @click="showEditDetailsModal = true" class="text-[10px] font-bold text-primary hover:underline uppercase tracking-widest">Modifier</button>
|
||||||
|
</div>
|
||||||
|
<div class="grid grid-cols-2 md:grid-cols-4 gap-6">
|
||||||
|
<div>
|
||||||
|
<p class="text-[10px] font-black text-ink/30 uppercase mb-1">Nom de naissance</p>
|
||||||
|
<p class="text-sm font-bold text-ink">{{ candidate.birth_name || '—' }}</p>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<p class="text-[10px] font-black text-ink/30 uppercase mb-1">Nom d'usage</p>
|
||||||
|
<p class="text-sm font-bold text-ink">{{ candidate.usage_name || '—' }}</p>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<p class="text-[10px] font-black text-ink/30 uppercase mb-1">Prénom</p>
|
||||||
|
<p class="text-sm font-bold text-ink">{{ candidate.first_name || '—' }}</p>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<p class="text-[10px] font-black text-ink/30 uppercase mb-1">Nationalité</p>
|
||||||
|
<p class="text-sm font-bold text-ink">{{ candidate.nationality || '—' }}</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="grid grid-cols-2 md:grid-cols-4 gap-6 pt-2">
|
||||||
|
<div>
|
||||||
|
<p class="text-[10px] font-black text-ink/30 uppercase mb-1">Né(e) le</p>
|
||||||
|
<p class="text-sm font-bold text-ink">{{ candidate.birth_date ? new Date(candidate.birth_date).toLocaleDateString('fr-FR') : '—' }}</p>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<p class="text-[10px] font-black text-ink/30 uppercase mb-1">Lieu de naissance</p>
|
||||||
|
<p class="text-sm font-bold text-ink">{{ candidate.birth_place || '—' }}</p>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<p class="text-[10px] font-black text-ink/30 uppercase mb-1">Adresse</p>
|
||||||
|
<p class="text-sm font-bold text-ink leading-tight">{{ candidate.address || '—' }}<br/>{{ candidate.zip_code }} {{ candidate.city }}</p>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<p class="text-[10px] font-black text-ink/30 uppercase mb-1">Permis de conduire</p>
|
||||||
|
<p class="text-sm font-bold" :class="candidate.has_driving_license ? 'text-success' : 'text-accent'">{{ candidate.has_driving_license ? 'OUI' : 'NON' }}</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="grid grid-cols-2 gap-6 pt-2 border-t border-ink/5 mt-2">
|
||||||
|
<div>
|
||||||
|
<p class="text-[10px] font-black text-ink/30 uppercase mb-1">Situation actuelle</p>
|
||||||
|
<span class="inline-block px-2 py-1 bg-primary/10 text-primary text-[10px] font-black rounded uppercase tracking-wider">{{ candidate.current_situation || '—' }}</span>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<p class="text-[10px] font-black text-ink/30 uppercase mb-1">Niveau de diplôme</p>
|
||||||
|
<span class="inline-block px-2 py-1 bg-highlight/20 text-highlight-dark text-[10px] font-black rounded uppercase tracking-wider">{{ candidate.education_level || '—' }}</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<!-- Radar chart -->
|
<!-- Radar chart -->
|
||||||
<div class="grid md:grid-cols-2 gap-6 items-center">
|
<div v-if="$page.props.auth.user.role !== 'gestionnaire_rh'" class="grid md:grid-cols-2 gap-6 items-center">
|
||||||
<div class="flex items-center justify-center">
|
<div class="flex items-center justify-center">
|
||||||
<canvas ref="radarCanvasRef" class="max-h-64 w-full" />
|
<canvas ref="radarCanvasRef" class="max-h-64 w-full" />
|
||||||
</div>
|
</div>
|
||||||
@@ -463,7 +559,7 @@ const barColor = (pct) => pct >= 80 ? 'bg-success' : pct >= 60 ? 'bg-highlight'
|
|||||||
<div v-for="(item, i) in [
|
<div v-for="(item, i) in [
|
||||||
{ label:'Analyse CV', val: scoreForm.cv_score, max:20 },
|
{ label:'Analyse CV', val: scoreForm.cv_score, max:20 },
|
||||||
{ label:'Lettre Motiv.', val: scoreForm.motivation_score, max:10 },
|
{ label:'Lettre Motiv.', val: scoreForm.motivation_score, max:10 },
|
||||||
{ label:'Entretien', val: scoreForm.interview_score, max:30 },
|
{ label:'Entretien', val: scoreForm.interview_score, max:25 },
|
||||||
{ label:'Test Technique', val: bestTestScore, max:20 },
|
{ label:'Test Technique', val: bestTestScore, max:20 },
|
||||||
{ label:'Soft Skills', val: softSkillsScore, max:10 },
|
{ label:'Soft Skills', val: softSkillsScore, max:10 },
|
||||||
]" :key="i">
|
]" :key="i">
|
||||||
@@ -773,27 +869,178 @@ const barColor = (pct) => pct >= 80 ? 'bg-success' : pct >= 60 ? 'bg-highlight'
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- ── Tab: Sécurité ── -->
|
||||||
|
<div v-if="activeTab === 'security'" class="p-6 bg-accent/[0.02]">
|
||||||
|
<div class="mb-6 flex items-center justify-between">
|
||||||
|
<div>
|
||||||
|
<h3 class="text-lg font-serif font-black text-accent flex items-center gap-2">
|
||||||
|
<svg class="w-5 h-5" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M10.29 3.86L1.82 18a2 2 0 001.71 3h16.94a2 2 0 001.71-3L13.71 3.86a2 2 0 00-3.42 0z"/><line x1="12" y1="9" x2="12" y2="13"/><line x1="12" y1="17" x2="12.01" y2="17"/></svg>
|
||||||
|
Alertes de Sécurité
|
||||||
|
</h3>
|
||||||
|
<p class="text-xs text-ink/50 mt-1 font-semibold">Le candidat a déclenché un ou plusieurs honeypots sur la plateforme.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="space-y-4">
|
||||||
|
<div v-for="alert in candidate.user.security_alerts" :key="alert.id" class="p-5 rounded-2xl border border-accent/20 bg-white shadow-sm overflow-hidden relative group">
|
||||||
|
<div class="absolute left-0 top-0 bottom-0 w-1.5 bg-accent"></div>
|
||||||
|
|
||||||
|
<div class="flex items-center justify-between mb-4 pl-3">
|
||||||
|
<div class="flex items-center gap-3">
|
||||||
|
<span class="px-2.5 py-1 rounded bg-accent/10 text-accent text-[10px] font-black uppercase tracking-widest border border-accent/20">
|
||||||
|
{{ alert.type.replace('_', ' ') }}
|
||||||
|
</span>
|
||||||
|
<span class="text-xs font-bold text-ink/70 flex items-center gap-1.5">
|
||||||
|
<svg class="w-3.5 h-3.5 text-ink/30" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10"/><polyline points="12 6 12 12 16 14"/></svg>
|
||||||
|
{{ formatDateTime(alert.created_at) }}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
<span class="text-[10px] font-black font-mono text-ink/40 bg-ink/5 px-2 py-0.5 rounded">{{ alert.ip_address }}</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="pl-3 space-y-3">
|
||||||
|
<div>
|
||||||
|
<p class="text-[9px] font-black uppercase tracking-[0.16em] text-ink/35 mb-1">Endpoint Visé</p>
|
||||||
|
<p class="text-xs font-mono font-bold text-ink/80 bg-neutral/50 px-3 py-2 rounded-lg border border-ink/5 inline-block">
|
||||||
|
{{ alert.endpoint || 'Inconnu' }}
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div v-if="alert.payload && Object.keys(alert.payload).length > 0">
|
||||||
|
<p class="text-[9px] font-black uppercase tracking-[0.16em] text-ink/35 mb-1">Payload / Paramètres</p>
|
||||||
|
<pre class="text-[10px] text-ink/70 font-mono font-semibold bg-surface border border-ink/10 p-3 rounded-lg overflow-x-auto">{{ JSON.stringify(alert.payload, null, 2) }}</pre>
|
||||||
|
</div>
|
||||||
|
<div v-if="alert.user_agent">
|
||||||
|
<p class="text-[9px] font-black uppercase tracking-[0.16em] text-ink/35 mb-1">Navigateur (User Agent)</p>
|
||||||
|
<p class="text-[10px] text-ink/50 bg-neutral/30 px-3 py-2 rounded-lg truncate" :title="alert.user_agent">{{ alert.user_agent }}</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div><!-- end tabs card -->
|
</div><!-- end tabs card -->
|
||||||
</div><!-- end right panel -->
|
</div><!-- end right panel -->
|
||||||
</div><!-- end flex layout -->
|
</div><!-- end flex layout -->
|
||||||
|
|
||||||
<!-- ─── Modal: Éditer les infos ────────────────────────────────────── -->
|
<!-- ─── Modal: Éditer les infos ────────────────────────────────────── -->
|
||||||
<Modal :show="showEditDetailsModal" @close="showEditDetailsModal = false" max-width="lg">
|
<Modal :show="showEditDetailsModal" @close="showEditDetailsModal = false" max-width="4xl">
|
||||||
<div class="p-6 space-y-5">
|
<div class="p-6 space-y-6">
|
||||||
<h3 class="font-serif font-black text-lg text-primary">Modifier les informations</h3>
|
<div class="border-b border-ink/10 pb-3">
|
||||||
<div class="grid md:grid-cols-2 gap-4">
|
<h3 class="font-serif font-black text-xl text-primary">Modifier le dossier du candidat</h3>
|
||||||
<div v-for="(field, key) in { name:'Nom complet', email:'Email', phone:'Téléphone', city:'Ville', linkedin_url:'LinkedIn URL' }" :key="key">
|
</div>
|
||||||
<label class="text-[9px] font-black uppercase tracking-[0.14em] text-ink/35 mb-1.5 block">{{ field }}</label>
|
|
||||||
<input v-model="detailsForm[key]" type="text"
|
<div class="grid grid-cols-1 md:grid-cols-3 gap-6">
|
||||||
class="w-full rounded-[10px] border border-ink/10 bg-neutral px-3 py-2.5 text-sm font-semibold text-ink focus:border-primary focus:ring-2 focus:ring-primary/15 outline-none" />
|
<!-- État Civil -->
|
||||||
<InputError :message="detailsForm.errors[key]" class="mt-1" />
|
<div class="space-y-4 md:col-span-3">
|
||||||
|
<p class="text-[10px] font-black uppercase tracking-widest text-primary/50">1. État Civil</p>
|
||||||
|
<div class="grid grid-cols-1 md:grid-cols-3 gap-4">
|
||||||
|
<div>
|
||||||
|
<label class="text-[9px] font-black uppercase tracking-[0.14em] text-ink/35 mb-1.5 block">Nom de naissance</label>
|
||||||
|
<input v-model="detailsForm.birth_name" type="text" class="w-full rounded-[10px] border border-ink/10 bg-neutral px-3 py-2 text-sm font-semibold text-ink focus:border-primary focus:ring-2 focus:ring-primary/15 outline-none" />
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<label class="text-[9px] font-black uppercase tracking-[0.14em] text-ink/35 mb-1.5 block">Nom d'usage</label>
|
||||||
|
<input v-model="detailsForm.usage_name" type="text" class="w-full rounded-[10px] border border-ink/10 bg-neutral px-3 py-2 text-sm font-semibold text-ink focus:border-primary focus:ring-2 focus:ring-primary/15 outline-none" />
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<label class="text-[9px] font-black uppercase tracking-[0.14em] text-ink/35 mb-1.5 block">Prénom</label>
|
||||||
|
<input v-model="detailsForm.first_name" type="text" class="w-full rounded-[10px] border border-ink/10 bg-neutral px-3 py-2 text-sm font-semibold text-ink focus:border-primary focus:ring-2 focus:ring-primary/15 outline-none" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="grid grid-cols-1 md:grid-cols-3 gap-4">
|
||||||
|
<div>
|
||||||
|
<label class="text-[9px] font-black uppercase tracking-[0.14em] text-ink/35 mb-1.5 block">Date de naissance</label>
|
||||||
|
<input v-model="detailsForm.birth_date" type="date" class="w-full rounded-[10px] border border-ink/10 bg-neutral px-3 py-2 text-sm font-semibold text-ink focus:border-primary focus:ring-2 focus:ring-primary/15 outline-none" />
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<label class="text-[9px] font-black uppercase tracking-[0.14em] text-ink/35 mb-1.5 block">Lieu de naissance</label>
|
||||||
|
<input v-model="detailsForm.birth_place" type="text" class="w-full rounded-[10px] border border-ink/10 bg-neutral px-3 py-2 text-sm font-semibold text-ink focus:border-primary focus:ring-2 focus:ring-primary/15 outline-none" />
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<label class="text-[9px] font-black uppercase tracking-[0.14em] text-ink/35 mb-1.5 block">Nationalité</label>
|
||||||
|
<input v-model="detailsForm.nationality" type="text" class="w-full rounded-[10px] border border-ink/10 bg-neutral px-3 py-2 text-sm font-semibold text-ink focus:border-primary focus:ring-2 focus:ring-primary/15 outline-none" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Coordonnées -->
|
||||||
|
<div class="space-y-4 md:col-span-3 pt-4 border-t border-ink/5">
|
||||||
|
<p class="text-[10px] font-black uppercase tracking-widest text-primary/50">2. Coordonnées & Contact</p>
|
||||||
|
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
|
||||||
|
<div>
|
||||||
|
<label class="text-[9px] font-black uppercase tracking-[0.14em] text-ink/35 mb-1.5 block">Email</label>
|
||||||
|
<input v-model="detailsForm.email" type="email" class="w-full rounded-[10px] border border-ink/10 bg-neutral px-3 py-2 text-sm font-semibold text-ink focus:border-primary focus:ring-2 focus:ring-primary/15 outline-none" />
|
||||||
|
<InputError :message="detailsForm.errors.email" class="mt-1" />
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<label class="text-[9px] font-black uppercase tracking-[0.14em] text-ink/35 mb-1.5 block">Téléphone</label>
|
||||||
|
<input v-model="detailsForm.phone" type="text" class="w-full rounded-[10px] border border-ink/10 bg-neutral px-3 py-2 text-sm font-semibold text-ink focus:border-primary focus:ring-2 focus:ring-primary/15 outline-none" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="grid grid-cols-1 md:grid-cols-4 gap-4">
|
||||||
|
<div class="md:col-span-2">
|
||||||
|
<label class="text-[9px] font-black uppercase tracking-[0.14em] text-ink/35 mb-1.5 block">Adresse</label>
|
||||||
|
<input v-model="detailsForm.address" type="text" class="w-full rounded-[10px] border border-ink/10 bg-neutral px-3 py-2 text-sm font-semibold text-ink focus:border-primary focus:ring-2 focus:ring-primary/15 outline-none" />
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<label class="text-[9px] font-black uppercase tracking-[0.14em] text-ink/35 mb-1.5 block">Code Postal</label>
|
||||||
|
<input v-model="detailsForm.zip_code" type="text" class="w-full rounded-[10px] border border-ink/10 bg-neutral px-3 py-2 text-sm font-semibold text-ink focus:border-primary focus:ring-2 focus:ring-primary/15 outline-none" />
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<label class="text-[9px] font-black uppercase tracking-[0.14em] text-ink/35 mb-1.5 block">Ville</label>
|
||||||
|
<input v-model="detailsForm.city" type="text" class="w-full rounded-[10px] border border-ink/10 bg-neutral px-3 py-2 text-sm font-semibold text-ink focus:border-primary focus:ring-2 focus:ring-primary/15 outline-none" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Situation -->
|
||||||
|
<div class="space-y-4 md:col-span-3 pt-4 border-t border-ink/5">
|
||||||
|
<p class="text-[10px] font-black uppercase tracking-widest text-primary/50">3. Profil Professionnel</p>
|
||||||
|
<div class="grid grid-cols-1 md:grid-cols-3 gap-4">
|
||||||
|
<div>
|
||||||
|
<label class="text-[9px] font-black uppercase tracking-[0.14em] text-ink/35 mb-1.5 block">Situation actuelle</label>
|
||||||
|
<select v-model="detailsForm.current_situation" class="w-full rounded-[10px] border border-ink/10 bg-neutral px-3 py-2 text-sm font-semibold text-ink focus:border-primary focus:ring-2 focus:ring-primary/15 outline-none">
|
||||||
|
<option value="Titulaire">Titulaire</option>
|
||||||
|
<option value="Lauréat(e) d'un concours">Lauréat(e) d'un concours</option>
|
||||||
|
<option value="contractuel">Contractuel</option>
|
||||||
|
<option value="En recherche d'emplois">En recherche d'emplois</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<label class="text-[9px] font-black uppercase tracking-[0.14em] text-ink/35 mb-1.5 block">Niveau de diplôme</label>
|
||||||
|
<select v-model="detailsForm.education_level" class="w-full rounded-[10px] border border-ink/10 bg-neutral px-3 py-2 text-sm font-semibold text-ink focus:border-primary focus:ring-2 focus:ring-primary/15 outline-none">
|
||||||
|
<option value="Aucun diplome">Aucun diplome</option>
|
||||||
|
<option value="Brevet">Brevet</option>
|
||||||
|
<option value="CAP/BEP">CAP/BEP</option>
|
||||||
|
<option value="Bac">Bac</option>
|
||||||
|
<option value="Bac + 1">Bac + 1</option>
|
||||||
|
<option value="Bac + 2">Bac + 2</option>
|
||||||
|
<option value="Bac + 3">Bac + 3</option>
|
||||||
|
<option value="Bac + 4">Bac + 4</option>
|
||||||
|
<option value="Bac + 5">Bac + 5</option>
|
||||||
|
<option value="Autre">Autre</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<label class="text-[9px] font-black uppercase tracking-[0.14em] text-ink/35 mb-1.5 block">Permis de conduire</label>
|
||||||
|
<div class="flex gap-4 h-9 items-center">
|
||||||
|
<label class="flex items-center gap-2 text-xs font-bold text-ink/60 cursor-pointer">
|
||||||
|
<input type="radio" v-model="detailsForm.has_driving_license" :value="1" class="text-primary focus:ring-primary/30" /> OUI
|
||||||
|
</label>
|
||||||
|
<label class="flex items-center gap-2 text-xs font-bold text-ink/60 cursor-pointer">
|
||||||
|
<input type="radio" v-model="detailsForm.has_driving_license" :value="0" class="text-primary focus:ring-primary/30" /> NON
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex justify-end gap-3 pt-2">
|
|
||||||
|
<div class="flex justify-end gap-3 pt-4 border-t border-ink/10">
|
||||||
<SecondaryButton @click="showEditDetailsModal = false">Annuler</SecondaryButton>
|
<SecondaryButton @click="showEditDetailsModal = false">Annuler</SecondaryButton>
|
||||||
<button @click="updateDetails" :disabled="detailsForm.processing"
|
<button @click="updateDetails" :disabled="detailsForm.processing"
|
||||||
class="px-5 py-2.5 rounded-[10px] bg-highlight text-highlight-dark text-xs font-extrabold uppercase tracking-[0.08em] shadow-gold hover:brightness-105 transition-all disabled:opacity-50">
|
class="px-6 py-2.5 rounded-[10px] bg-highlight text-highlight-dark text-xs font-extrabold uppercase tracking-[0.08em] shadow-gold hover:brightness-105 transition-all disabled:opacity-50">
|
||||||
Enregistrer
|
{{ detailsForm.processing ? 'Enregistrement...' : 'Mettre à jour le dossier' }}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
import AdminLayout from '@/Layouts/AdminLayout.vue';
|
import AdminLayout from '@/Layouts/AdminLayout.vue';
|
||||||
import { Head, useForm } from '@inertiajs/vue3';
|
import { Head, useForm, Link } from '@inertiajs/vue3';
|
||||||
import { ref } from 'vue';
|
import { ref, computed } from 'vue';
|
||||||
import Modal from '@/Components/Modal.vue';
|
import Modal from '@/Components/Modal.vue';
|
||||||
import PrimaryButton from '@/Components/PrimaryButton.vue';
|
import PrimaryButton from '@/Components/PrimaryButton.vue';
|
||||||
import SecondaryButton from '@/Components/SecondaryButton.vue';
|
import SecondaryButton from '@/Components/SecondaryButton.vue';
|
||||||
@@ -14,6 +14,49 @@ const props = defineProps({
|
|||||||
quizzes: Array
|
quizzes: Array
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const viewMode = ref('grid');
|
||||||
|
const sortKey = ref('created_at');
|
||||||
|
const sortOrder = ref(-1); // -1 = desc, 1 = asc
|
||||||
|
const filterStatus = ref('active'); // active, expired, all
|
||||||
|
|
||||||
|
const filteredAndSortedPositions = computed(() => {
|
||||||
|
let result = [...props.jobPositions];
|
||||||
|
const now = new Date();
|
||||||
|
|
||||||
|
// Filtering
|
||||||
|
if (filterStatus.value === 'active') {
|
||||||
|
result = result.filter(p => !p.expires_at || new Date(p.expires_at) >= now);
|
||||||
|
} else if (filterStatus.value === 'expired') {
|
||||||
|
result = result.filter(p => p.expires_at && new Date(p.expires_at) < now);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Sorting
|
||||||
|
result.sort((a, b) => {
|
||||||
|
let valA = a[sortKey.value] || '';
|
||||||
|
let valB = b[sortKey.value] || '';
|
||||||
|
|
||||||
|
if (sortKey.value.includes('at')) {
|
||||||
|
valA = valA ? new Date(valA).getTime() : 0;
|
||||||
|
valB = valB ? new Date(valB).getTime() : 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (valA < valB) return -1 * sortOrder.value;
|
||||||
|
if (valA > valB) return 1 * sortOrder.value;
|
||||||
|
return 0;
|
||||||
|
});
|
||||||
|
|
||||||
|
return result;
|
||||||
|
});
|
||||||
|
|
||||||
|
const toggleSort = (key) => {
|
||||||
|
if (sortKey.value === key) {
|
||||||
|
sortOrder.value *= -1;
|
||||||
|
} else {
|
||||||
|
sortKey.value = key;
|
||||||
|
sortOrder.value = -1;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
const showingModal = ref(false);
|
const showingModal = ref(false);
|
||||||
const editingPosition = ref(null);
|
const editingPosition = ref(null);
|
||||||
|
|
||||||
@@ -25,8 +68,12 @@ const form = useForm({
|
|||||||
ai_bypass_base_prompt: false,
|
ai_bypass_base_prompt: false,
|
||||||
tenant_id: '',
|
tenant_id: '',
|
||||||
quiz_ids: [],
|
quiz_ids: [],
|
||||||
|
fpt_metadata: null,
|
||||||
|
expires_at: '',
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const isGeneratingFpt = ref(false);
|
||||||
|
|
||||||
const openModal = (position = null) => {
|
const openModal = (position = null) => {
|
||||||
editingPosition.value = position;
|
editingPosition.value = position;
|
||||||
if (position) {
|
if (position) {
|
||||||
@@ -37,12 +84,37 @@ const openModal = (position = null) => {
|
|||||||
form.ai_bypass_base_prompt = !!position.ai_bypass_base_prompt;
|
form.ai_bypass_base_prompt = !!position.ai_bypass_base_prompt;
|
||||||
form.tenant_id = position.tenant_id || '';
|
form.tenant_id = position.tenant_id || '';
|
||||||
form.quiz_ids = position.quizzes ? position.quizzes.map(q => q.id) : [];
|
form.quiz_ids = position.quizzes ? position.quizzes.map(q => q.id) : [];
|
||||||
|
form.fpt_metadata = position.fpt_metadata || null;
|
||||||
|
form.expires_at = position.expires_at ? position.expires_at.split('T')[0] : '';
|
||||||
} else {
|
} else {
|
||||||
form.reset();
|
form.reset();
|
||||||
}
|
}
|
||||||
showingModal.value = true;
|
showingModal.value = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const generateFpt = async () => {
|
||||||
|
if (!form.title || !form.description) {
|
||||||
|
alert("Veuillez remplir le titre et la description avant de générer.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
isGeneratingFpt.value = true;
|
||||||
|
try {
|
||||||
|
const response = await axios.post(route('admin.job-positions.ai-fpt'), {
|
||||||
|
title: form.title,
|
||||||
|
description: form.description
|
||||||
|
});
|
||||||
|
form.fpt_metadata = response.data;
|
||||||
|
if (response.data.fiche_synthese) {
|
||||||
|
form.description = response.data.fiche_synthese;
|
||||||
|
}
|
||||||
|
} catch (error) {
|
||||||
|
console.error(error);
|
||||||
|
alert("Une erreur est survenue lors de la génération IA.");
|
||||||
|
} finally {
|
||||||
|
isGeneratingFpt.value = false;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
const closeModal = () => {
|
const closeModal = () => {
|
||||||
showingModal.value = false;
|
showingModal.value = false;
|
||||||
form.reset();
|
form.reset();
|
||||||
@@ -61,7 +133,7 @@ const submit = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const deletePosition = (id) => {
|
const deletePosition = (id) => {
|
||||||
if (confirm('Voulez-vous vraiment supprimer cette fiche de poste ?')) {
|
if (confirm('Voulez-vous vraiment supprimer cette offre d\'emploi ?')) {
|
||||||
form.delete(route('admin.job-positions.destroy', id));
|
form.delete(route('admin.job-positions.destroy', id));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -73,44 +145,135 @@ const addRequirement = () => {
|
|||||||
const removeRequirement = (index) => {
|
const removeRequirement = (index) => {
|
||||||
form.requirements.splice(index, 1);
|
form.requirements.splice(index, 1);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const copyLink = (position) => {
|
||||||
|
const url = route('jobs.show', position.id);
|
||||||
|
navigator.clipboard.writeText(url).then(() => {
|
||||||
|
alert('Lien copié dans le presse-papier!');
|
||||||
|
});
|
||||||
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<Head title="Fiches de Poste" />
|
<Head title="Offres d'emploi" />
|
||||||
|
|
||||||
<AdminLayout>
|
<AdminLayout>
|
||||||
<template #header>
|
<template #header>
|
||||||
<div class="flex justify-between items-center gap-8">
|
<div class="flex justify-between items-center gap-8">
|
||||||
<h2 class="text-xl font-semibold leading-tight capitalize">
|
<h2 class="text-xl font-semibold leading-tight capitalize">
|
||||||
Fiches de Poste
|
Offres d'emploi
|
||||||
</h2>
|
</h2>
|
||||||
<PrimaryButton @click="openModal()">
|
<PrimaryButton @click="openModal()">
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mr-2" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mr-2" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
||||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 4v16m8-8H4" />
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 4v16m8-8H4" />
|
||||||
</svg>
|
</svg>
|
||||||
Nouvelle Fiche
|
Nouvelle Offre
|
||||||
</PrimaryButton>
|
</PrimaryButton>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<div class="p-8">
|
<div class="p-8">
|
||||||
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
|
<!-- Filter & Sort Bar -->
|
||||||
|
<div class="mb-8 flex flex-col md:flex-row gap-6 justify-between items-start md:items-center bg-white dark:bg-slate-800 p-6 rounded-[2rem] shadow-sm border border-slate-100 dark:border-slate-700">
|
||||||
|
<div class="flex flex-wrap items-center gap-4">
|
||||||
|
<div class="flex bg-slate-100 dark:bg-slate-900 p-1 rounded-xl">
|
||||||
|
<button
|
||||||
|
@click="filterStatus = 'active'"
|
||||||
|
:class="filterStatus === 'active' ? 'bg-white dark:bg-slate-800 shadow-sm text-indigo-600' : 'text-slate-500 hover:text-indigo-400'"
|
||||||
|
class="px-4 py-1.5 rounded-lg text-[10px] font-black uppercase tracking-widest transition-all"
|
||||||
|
>
|
||||||
|
En cours
|
||||||
|
</button>
|
||||||
|
<button
|
||||||
|
@click="filterStatus = 'expired'"
|
||||||
|
:class="filterStatus === 'expired' ? 'bg-white dark:bg-slate-800 shadow-sm text-indigo-600' : 'text-slate-500 hover:text-indigo-400'"
|
||||||
|
class="px-4 py-1.5 rounded-lg text-[10px] font-black uppercase tracking-widest transition-all"
|
||||||
|
>
|
||||||
|
Expirées
|
||||||
|
</button>
|
||||||
|
<button
|
||||||
|
@click="filterStatus = 'all'"
|
||||||
|
:class="filterStatus === 'all' ? 'bg-white dark:bg-slate-800 shadow-sm text-indigo-600' : 'text-slate-500 hover:text-indigo-400'"
|
||||||
|
class="px-4 py-1.5 rounded-lg text-[10px] font-black uppercase tracking-widest transition-all"
|
||||||
|
>
|
||||||
|
Toutes
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="h-6 w-px bg-slate-200 dark:bg-slate-700 mx-2 hidden md:block"></div>
|
||||||
|
|
||||||
|
<div class="flex items-center gap-2">
|
||||||
|
<span class="text-[10px] font-black uppercase tracking-widest text-slate-400">Trier par :</span>
|
||||||
|
<select
|
||||||
|
v-model="sortKey"
|
||||||
|
class="bg-transparent border-none text-xs font-bold text-slate-700 dark:text-slate-300 focus:ring-0 cursor-pointer py-0 pl-0"
|
||||||
|
>
|
||||||
|
<option value="created_at">Date de création</option>
|
||||||
|
<option value="expires_at">Date d'expiration</option>
|
||||||
|
<option value="title">Titre</option>
|
||||||
|
</select>
|
||||||
|
<button @click="sortOrder *= -1" class="p-1 hover:bg-slate-100 dark:hover:bg-slate-900 rounded-lg transition-colors">
|
||||||
|
<svg v-if="sortOrder === 1" xmlns="http://www.w3.org/2000/svg" class="h-4 w-4 text-indigo-500" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5" d="M3 4h13M3 8h9m-9 4h6m4 0l4-4m0 0l4 4m-4-4v12" /></svg>
|
||||||
|
<svg v-else xmlns="http://www.w3.org/2000/svg" class="h-4 w-4 text-indigo-500" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5" d="M3 4h13M3 8h9m-9 4h6m4 0l4 4m0 0l4-4m-4 4v-12" /></svg>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="flex items-center gap-2 bg-slate-100 dark:bg-slate-900 p-1 rounded-xl">
|
||||||
|
<button
|
||||||
|
@click="viewMode = 'grid'"
|
||||||
|
:class="viewMode === 'grid' ? 'bg-white dark:bg-slate-800 shadow-sm text-indigo-600' : 'text-slate-400 hover:text-indigo-400'"
|
||||||
|
class="p-2 rounded-lg transition-all"
|
||||||
|
>
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5" d="M4 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2V6zM14 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2V6zM4 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2v-2zM14 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2v-2z" /></svg>
|
||||||
|
</button>
|
||||||
|
<button
|
||||||
|
@click="viewMode = 'list'"
|
||||||
|
:class="viewMode === 'list' ? 'bg-white dark:bg-slate-800 shadow-sm text-indigo-600' : 'text-slate-400 hover:text-indigo-400'"
|
||||||
|
class="p-2 rounded-lg transition-all"
|
||||||
|
>
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5" d="M4 6h16M4 10h16M4 14h16M4 18h16" /></svg>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Grid View -->
|
||||||
|
<div v-if="viewMode === 'grid'" class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
|
||||||
<div
|
<div
|
||||||
v-for="position in jobPositions"
|
v-for="position in filteredAndSortedPositions"
|
||||||
:key="position.id"
|
:key="position.id"
|
||||||
class="bg-white dark:bg-slate-800 rounded-3xl p-8 shadow-sm border border-slate-200 dark:border-slate-700 hover:shadow-2xl transition-all duration-300 group flex flex-col h-full"
|
class="bg-white dark:bg-slate-800 rounded-3xl p-8 shadow-sm border border-slate-200 dark:border-slate-700 hover:shadow-2xl transition-all duration-300 group flex flex-col h-full"
|
||||||
>
|
>
|
||||||
<div class="mb-6 flex-1">
|
<div class="mb-6 flex-1">
|
||||||
<div class="flex justify-between items-start mb-2">
|
<div class="flex justify-between items-start mb-2">
|
||||||
<div class="text-[10px] font-black uppercase tracking-widest text-indigo-500">Poste / Compétences</div>
|
<div class="text-[10px] font-black uppercase tracking-widest text-indigo-500">Poste / Compétences</div>
|
||||||
<div v-if="$page.props.auth.user.role === 'super_admin'" class="text-[9px] font-black uppercase tracking-widest px-2 py-0.5 rounded bg-indigo-50 text-indigo-600 dark:bg-indigo-900/30">
|
<div v-if="['super_admin', 'gestionnaire_rh'].includes($page.props.auth.user.role)" class="text-[9px] font-black uppercase tracking-widest px-2 py-0.5 rounded bg-indigo-50 text-indigo-600 dark:bg-indigo-900/30">
|
||||||
{{ position.tenant ? position.tenant.name : 'Global' }}
|
{{ position.tenant ? position.tenant.name : 'Global' }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<h3 class="text-2xl font-black mb-3 group-hover:text-indigo-600 transition-colors">{{ position.title }}</h3>
|
<h3 class="text-2xl font-black mb-1 group-hover:text-indigo-600 transition-colors">{{ position.title }}</h3>
|
||||||
<p class="text-slate-500 dark:text-slate-400 text-sm line-clamp-3 leading-relaxed">
|
<div class="flex items-center gap-2 mb-3">
|
||||||
|
<span class="text-[10px] font-black bg-primary/10 text-primary px-2 py-0.5 rounded-full uppercase tracking-tighter">
|
||||||
|
{{ position.candidates_count }} {{ position.candidates_count > 1 ? 'candidats' : 'candidat' }}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
<p class="text-slate-500 dark:text-slate-400 text-sm line-clamp-3 leading-relaxed mb-4">
|
||||||
{{ position.description }}
|
{{ position.description }}
|
||||||
</p>
|
</p>
|
||||||
|
<div class="flex flex-wrap gap-2 mb-4">
|
||||||
|
<div v-if="position.expires_at" class="flex items-center gap-1.5 text-[10px] font-bold uppercase tracking-wider px-2 py-1 rounded-lg w-fit" :class="new Date(position.expires_at) < new Date() ? 'text-red-500 bg-red-50 dark:bg-red-900/20' : 'text-emerald-500 bg-emerald-50 dark:bg-emerald-900/20'">
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" class="h-3 w-3" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
||||||
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z" />
|
||||||
|
</svg>
|
||||||
|
{{ new Date(position.expires_at) < new Date() ? 'Expirée le' : 'Expire le' }} : {{ new Date(position.expires_at).toLocaleDateString() }}
|
||||||
|
</div>
|
||||||
|
<div class="flex items-center gap-1.5 text-[10px] font-bold uppercase tracking-wider px-2 py-1 rounded-lg w-fit text-slate-400 bg-slate-50 dark:bg-slate-900/40 border border-slate-100 dark:border-slate-700">
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" class="h-3 w-3" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
||||||
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z" />
|
||||||
|
</svg>
|
||||||
|
Créée le : {{ new Date(position.created_at).toLocaleDateString() }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex items-center gap-2 mb-6" v-if="position.requirements?.length">
|
<div class="flex items-center gap-2 mb-6" v-if="position.requirements?.length">
|
||||||
@@ -126,40 +289,103 @@ const removeRequirement = (index) => {
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="pt-6 border-t border-slate-100 dark:border-slate-700 flex justify-between gap-3">
|
<div class="pt-6 border-t border-slate-100 dark:border-slate-700 flex flex-col gap-3">
|
||||||
<SecondaryButton @click="openModal(position)" class="flex-1 !justify-center !py-2 text-xs">Modifier</SecondaryButton>
|
<div class="flex gap-3">
|
||||||
<button
|
<Link :href="route('admin.candidates.index', { job_position: position.id })" class="flex-1 inline-flex items-center justify-center py-2 rounded-xl bg-primary/5 text-primary text-xs font-extrabold uppercase tracking-widest hover:bg-primary/10 transition-all">
|
||||||
@click="deletePosition(position.id)"
|
Voir Candidats
|
||||||
class="p-2 text-slate-400 hover:text-red-500 hover:bg-red-50 dark:hover:bg-red-900/20 rounded-xl transition-all"
|
</Link>
|
||||||
>
|
<SecondaryButton @click="openModal(position)" class="flex-1 !justify-center !py-2 text-xs">Modifier</SecondaryButton>
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
</div>
|
||||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16" />
|
<div class="flex gap-1">
|
||||||
</svg>
|
<button
|
||||||
|
@click="copyLink(position)"
|
||||||
|
title="Copier le lien de candidature"
|
||||||
|
class="p-2 text-slate-400 hover:text-indigo-500 hover:bg-indigo-50 dark:hover:bg-indigo-900/20 rounded-xl transition-all"
|
||||||
|
>
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
||||||
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13.828 10.172a4 4 0 00-5.656 0l-4 4a4 4 0 105.656 5.656l1.102-1.101m-.758-4.899a4 4 0 005.656 0l4-4a4 4 0 00-5.656-5.656l-1.1 1.1" />
|
||||||
|
</svg>
|
||||||
|
</button>
|
||||||
|
<button
|
||||||
|
@click="deletePosition(position.id)"
|
||||||
|
title="Supprimer"
|
||||||
|
class="p-2 text-slate-400 hover:text-red-500 hover:bg-red-50 dark:hover:bg-red-900/20 rounded-xl transition-all"
|
||||||
|
>
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
||||||
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16" />
|
||||||
|
</svg>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- List View -->
|
||||||
|
<div v-else class="space-y-4">
|
||||||
|
<div
|
||||||
|
v-for="position in filteredAndSortedPositions"
|
||||||
|
:key="position.id"
|
||||||
|
class="bg-white dark:bg-slate-800 rounded-2xl p-6 shadow-sm border border-slate-200 dark:border-slate-700 hover:shadow-md transition-all flex flex-col md:flex-row items-center gap-6"
|
||||||
|
>
|
||||||
|
<div class="flex-1 min-w-0">
|
||||||
|
<div class="flex items-center gap-3 mb-1">
|
||||||
|
<h3 class="text-lg font-black truncate">{{ position.title }}</h3>
|
||||||
|
<span v-if="['super_admin', 'gestionnaire_rh'].includes($page.props.auth.user.role)" class="text-[9px] font-black uppercase tracking-widest px-2 py-0.5 rounded bg-indigo-50 text-indigo-600 dark:bg-indigo-900/30 shrink-0">
|
||||||
|
{{ position.tenant ? position.tenant.name : 'Global' }}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
<div class="flex flex-wrap items-center gap-4 text-[10px] font-bold uppercase tracking-widest text-slate-400">
|
||||||
|
<div class="flex items-center gap-1.5">
|
||||||
|
<span class="w-1.5 h-1.5 rounded-full bg-indigo-400"></span>
|
||||||
|
{{ position.candidates_count }} candidats
|
||||||
|
</div>
|
||||||
|
<div v-if="position.expires_at" class="flex items-center gap-1.5" :class="new Date(position.expires_at) < new Date() ? 'text-red-500' : 'text-emerald-500'">
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" class="h-3 w-3" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z" /></svg>
|
||||||
|
{{ new Date(position.expires_at) < new Date() ? 'Expirée' : 'Expire' }} : {{ new Date(position.expires_at).toLocaleDateString() }}
|
||||||
|
</div>
|
||||||
|
<div class="flex items-center gap-1.5">
|
||||||
|
Créée le : {{ new Date(position.created_at).toLocaleDateString() }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="flex items-center gap-2 shrink-0">
|
||||||
|
<Link :href="route('admin.candidates.index', { job_position: position.id })" title="Voir candidats" class="p-3 bg-primary/5 text-primary rounded-xl hover:bg-primary/10 transition-all">
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 4.354a4 4 0 110 5.292M15 21H3v-1a6 6 0 0112 0v1zm0 0h6v-1a6 6 0 00-9-5.197M13 7a4 4 0 11-8 0 4 4 0 018 0z" /></svg>
|
||||||
|
</Link>
|
||||||
|
<button @click="openModal(position)" title="Modifier" class="p-3 bg-slate-100 dark:bg-slate-700 text-slate-600 dark:text-slate-300 rounded-xl hover:bg-slate-200 dark:hover:bg-slate-600 transition-all">
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z" /></svg>
|
||||||
|
</button>
|
||||||
|
<button @click="copyLink(position)" title="Lien de candidature" class="p-3 text-slate-400 hover:text-indigo-500 hover:bg-indigo-50 dark:hover:bg-indigo-900/20 rounded-xl transition-all">
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13.828 10.172a4 4 0 00-5.656 0l-4 4a4 4 0 105.656 5.656l1.102-1.101m-.758-4.899a4 4 0 005.656 0l4-4a4 4 0 00-5.656-5.656l-1.1 1.1" /></svg>
|
||||||
|
</button>
|
||||||
|
<button @click="deletePosition(position.id)" title="Supprimer" class="p-3 text-slate-400 hover:text-red-500 hover:bg-red-50 dark:hover:bg-red-900/20 rounded-xl transition-all">
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16" /></svg>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<!-- Empty State -->
|
<!-- Empty State -->
|
||||||
<div v-if="jobPositions.length === 0" class="col-span-full py-32 text-center">
|
<div v-if="filteredAndSortedPositions.length === 0" class="col-span-full py-32 text-center">
|
||||||
<div class="inline-flex p-6 bg-slate-100 dark:bg-slate-800 rounded-full mb-6">
|
<div class="inline-flex p-6 bg-slate-100 dark:bg-slate-800 rounded-full mb-6">
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" class="h-12 w-12 text-slate-400" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
<svg xmlns="http://www.w3.org/2000/svg" class="h-12 w-12 text-slate-400" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
||||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z" />
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z" />
|
||||||
</svg>
|
</svg>
|
||||||
</div>
|
|
||||||
<h3 class="text-2xl font-black mb-2">Aucune fiche de poste</h3>
|
|
||||||
<p class="text-slate-500 mb-8">Créez votre première fiche de poste pour permettre l'analyse IA.</p>
|
|
||||||
<PrimaryButton @click="openModal()">Créer une fiche</PrimaryButton>
|
|
||||||
</div>
|
</div>
|
||||||
|
<h3 class="text-2xl font-black mb-2">Aucune offre d'emploi</h3>
|
||||||
|
<p class="text-slate-500 mb-8">Créez votre première offre d'emploi pour permettre l'analyse IA.</p>
|
||||||
|
<PrimaryButton @click="openModal()">Créer une offre</PrimaryButton>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Modal Create/Edit -->
|
<!-- Modal Create/Edit -->
|
||||||
<Modal :show="showingModal" @close="closeModal">
|
<Modal :show="showingModal" @close="closeModal">
|
||||||
<div class="p-8">
|
<div class="p-8">
|
||||||
<h3 class="text-2xl font-black mb-8">{{ editingPosition ? 'Modifier' : 'Créer' }} la Fiche de Poste</h3>
|
<h3 class="text-2xl font-black mb-8">{{ editingPosition ? 'Modifier' : 'Créer' }} l'Offre d'emploi</h3>
|
||||||
|
|
||||||
<form @submit.prevent="submit" class="space-y-6">
|
<form @submit.prevent="submit" class="space-y-6">
|
||||||
<div v-if="$page.props.auth.user.role === 'super_admin'" class="mb-4">
|
<div v-if="['super_admin', 'gestionnaire_rh'].includes($page.props.auth.user.role)" class="mb-4">
|
||||||
<label class="block text-xs font-black uppercase tracking-widest text-slate-400 mb-2">Structure de rattachement</label>
|
<label class="block text-xs font-black uppercase tracking-widest text-slate-400 mb-2">Structure de rattachement</label>
|
||||||
<select
|
<select
|
||||||
v-model="form.tenant_id"
|
v-model="form.tenant_id"
|
||||||
@@ -185,7 +411,18 @@ const removeRequirement = (index) => {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<label class="block text-xs font-black uppercase tracking-widest text-slate-400 mb-2">Description / Fiche de Poste</label>
|
<label class="block text-xs font-black uppercase tracking-widest text-slate-400 mb-2">Date limite de candidature (Expiration)</label>
|
||||||
|
<input
|
||||||
|
v-model="form.expires_at"
|
||||||
|
type="date"
|
||||||
|
class="w-full bg-slate-50 dark:bg-slate-900 border-none rounded-2xl p-4 focus:ring-2 focus:ring-indigo-500/20 transition-all font-bold"
|
||||||
|
>
|
||||||
|
<p class="mt-1 text-[10px] text-slate-400 font-bold uppercase tracking-tight">L'offre ne sera plus visible sur le site après cette date.</p>
|
||||||
|
<InputError :message="form.errors.expires_at" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<label class="block text-xs font-black uppercase tracking-widest text-slate-400 mb-2">Description / Détail de l'offre</label>
|
||||||
<textarea
|
<textarea
|
||||||
v-model="form.description"
|
v-model="form.description"
|
||||||
rows="8"
|
rows="8"
|
||||||
@@ -196,6 +433,59 @@ const removeRequirement = (index) => {
|
|||||||
<InputError :message="form.errors.description" />
|
<InputError :message="form.errors.description" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="flex justify-between items-center bg-indigo-50 dark:bg-indigo-900/10 p-4 rounded-2xl border border-indigo-100 dark:border-indigo-800/50">
|
||||||
|
<div>
|
||||||
|
<h4 class="text-xs font-black text-indigo-700 dark:text-indigo-400 uppercase tracking-widest mb-1">Assistant RH FPT (IA)</h4>
|
||||||
|
<p class="text-[10px] text-indigo-500 font-bold">Génère automatiquement les mentions réglementaires et catégorise le poste (CGFP).</p>
|
||||||
|
</div>
|
||||||
|
<PrimaryButton type="button" @click="generateFpt" :disabled="isGeneratingFpt || !form.title || !form.description" class="whitespace-nowrap text-xs py-2 px-4 bg-indigo-600 hover:bg-indigo-700">
|
||||||
|
<svg v-if="isGeneratingFpt" class="animate-spin -ml-1 mr-2 h-4 w-4 text-white" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
|
||||||
|
<circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle>
|
||||||
|
<path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path>
|
||||||
|
</svg>
|
||||||
|
<svg v-else xmlns="http://www.w3.org/2000/svg" class="h-4 w-4 mr-2" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
||||||
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z" />
|
||||||
|
</svg>
|
||||||
|
{{ isGeneratingFpt ? 'Génération...' : 'Structurer l\'offre' }}
|
||||||
|
</PrimaryButton>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div v-if="form.fpt_metadata" class="bg-slate-50 dark:bg-slate-800/50 rounded-2xl p-4 border border-slate-200 dark:border-slate-700 space-y-4">
|
||||||
|
<div>
|
||||||
|
<h5 class="text-[10px] font-black uppercase tracking-widest text-slate-400 mb-2">Informations Statutaires</h5>
|
||||||
|
<div class="grid grid-cols-2 gap-2 text-xs font-bold">
|
||||||
|
<div class="bg-white dark:bg-slate-900 p-2 rounded-xl">
|
||||||
|
<span class="text-slate-400 block text-[9px] uppercase">Catégorie</span>
|
||||||
|
{{ form.fpt_metadata.infos_poste?.categorie }}
|
||||||
|
</div>
|
||||||
|
<div class="bg-white dark:bg-slate-900 p-2 rounded-xl">
|
||||||
|
<span class="text-slate-400 block text-[9px] uppercase">Cadre d'emplois</span>
|
||||||
|
{{ form.fpt_metadata.infos_poste?.cadre_emplois }}
|
||||||
|
</div>
|
||||||
|
<div class="bg-white dark:bg-slate-900 p-2 rounded-xl">
|
||||||
|
<span class="text-slate-400 block text-[9px] uppercase">Grade Mini</span>
|
||||||
|
{{ form.fpt_metadata.infos_poste?.grade_mini }}
|
||||||
|
</div>
|
||||||
|
<div class="bg-white dark:bg-slate-900 p-2 rounded-xl">
|
||||||
|
<span class="text-slate-400 block text-[9px] uppercase">Grade Maxi</span>
|
||||||
|
{{ form.fpt_metadata.infos_poste?.grade_maxi }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<h5 class="text-[10px] font-black uppercase tracking-widest text-slate-400 mb-2">Conformité CGFP</h5>
|
||||||
|
<div class="bg-white dark:bg-slate-900 p-3 rounded-xl text-xs font-bold text-slate-600 dark:text-slate-300">
|
||||||
|
<p class="mb-2"><span class="text-indigo-500">Fondement :</span> {{ form.fpt_metadata.conformite?.fondement_juridique_recrutement }}</p>
|
||||||
|
<ul class="list-disc list-inside space-y-1">
|
||||||
|
<li v-for="(mention, i) in form.fpt_metadata.conformite?.mentions_legales_obligatoires" :key="i">
|
||||||
|
{{ mention }}
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="bg-indigo-50/50 dark:bg-indigo-900/10 p-6 rounded-3xl border border-indigo-100 dark:border-indigo-800/50">
|
<div class="bg-indigo-50/50 dark:bg-indigo-900/10 p-6 rounded-3xl border border-indigo-100 dark:border-indigo-800/50">
|
||||||
<label class="block text-xs font-black uppercase tracking-widest text-indigo-600 dark:text-indigo-400 mb-2">IA Context & Prompt Personnalisé</label>
|
<label class="block text-xs font-black uppercase tracking-widest text-indigo-600 dark:text-indigo-400 mb-2">IA Context & Prompt Personnalisé</label>
|
||||||
<p class="text-[10px] text-indigo-400 mb-4 font-bold uppercase tracking-tight">Utilisez cette zone pour donner des instructions spécifiques à l'IA (priorités, contexte entreprise, ton de l'analyse...)</p>
|
<p class="text-[10px] text-indigo-400 mb-4 font-bold uppercase tracking-tight">Utilisez cette zone pour donner des instructions spécifiques à l'IA (priorités, contexte entreprise, ton de l'analyse...)</p>
|
||||||
|
|||||||
@@ -113,6 +113,7 @@ const cancel = () => {
|
|||||||
<label class="block text-sm font-medium text-slate-700 dark:text-slate-300">Rôle</label>
|
<label class="block text-sm font-medium text-slate-700 dark:text-slate-300">Rôle</label>
|
||||||
<select v-model="form.role" class="mt-1 block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 focus:ring-2 focus:ring-inset focus:ring-blue-600 sm:text-sm sm:leading-6">
|
<select v-model="form.role" class="mt-1 block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 focus:ring-2 focus:ring-inset focus:ring-blue-600 sm:text-sm sm:leading-6">
|
||||||
<option value="admin">Administrateur Standard (SaaS)</option>
|
<option value="admin">Administrateur Standard (SaaS)</option>
|
||||||
|
<option value="gestionnaire_rh">Gestionnaire RH (Restreint)</option>
|
||||||
<option value="super_admin">Super Administrateur (Global)</option>
|
<option value="super_admin">Super Administrateur (Global)</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
@@ -152,10 +153,11 @@ const cancel = () => {
|
|||||||
<td class="py-3 px-6 text-slate-500">{{ user.email }}</td>
|
<td class="py-3 px-6 text-slate-500">{{ user.email }}</td>
|
||||||
<td class="py-3 px-6">
|
<td class="py-3 px-6">
|
||||||
<span v-if="user.role === 'super_admin'" class="inline-flex items-center rounded-md bg-purple-50 px-2 py-1 text-xs font-medium text-purple-700 ring-1 ring-inset ring-purple-700/10">Super Admin</span>
|
<span v-if="user.role === 'super_admin'" class="inline-flex items-center rounded-md bg-purple-50 px-2 py-1 text-xs font-medium text-purple-700 ring-1 ring-inset ring-purple-700/10">Super Admin</span>
|
||||||
|
<span v-else-if="user.role === 'gestionnaire_rh'" class="inline-flex items-center rounded-md bg-amber-50 px-2 py-1 text-xs font-medium text-amber-700 ring-1 ring-inset ring-amber-700/10">Gestionnaire RH</span>
|
||||||
<span v-else class="inline-flex items-center rounded-md bg-blue-50 px-2 py-1 text-xs font-medium text-blue-700 ring-1 ring-inset ring-blue-700/10">Admin Site</span>
|
<span v-else class="inline-flex items-center rounded-md bg-blue-50 px-2 py-1 text-xs font-medium text-blue-700 ring-1 ring-inset ring-blue-700/10">Admin Site</span>
|
||||||
</td>
|
</td>
|
||||||
<td class="py-3 px-6 text-slate-500">
|
<td class="py-3 px-6 text-slate-500">
|
||||||
{{ user.tenant ? user.tenant.name : (user.role === 'super_admin' ? 'Toutes les structures' : 'Aucun rattachement') }}
|
{{ user.tenant ? user.tenant.name : (user.role === 'super_admin' || user.role === 'gestionnaire_rh' ? 'Toutes les structures' : 'Aucun rattachement') }}
|
||||||
</td>
|
</td>
|
||||||
<td class="py-3 px-6 text-right space-x-2">
|
<td class="py-3 px-6 text-right space-x-2">
|
||||||
<button v-if="page.props.auth.user.role === 'super_admin'" @click="resetPassword(user)" class="text-orange-600 hover:text-orange-900 px-3 py-1 rounded bg-orange-50 hover:bg-orange-100 transition-colors" title="Réinitialiser le mot de passe">
|
<button v-if="page.props.auth.user.role === 'super_admin'" @click="resetPassword(user)" class="text-orange-600 hover:text-orange-900 px-3 py-1 rounded bg-orange-50 hover:bg-orange-100 transition-colors" title="Réinitialiser le mot de passe">
|
||||||
|
|||||||
@@ -12,9 +12,11 @@ const props = defineProps({
|
|||||||
|
|
||||||
const page = usePage();
|
const page = usePage();
|
||||||
const user = computed(() => page.props.auth.user);
|
const user = computed(() => page.props.auth.user);
|
||||||
const isAdmin = computed(() => ['admin', 'super_admin'].includes(user.value?.role));
|
const isAdmin = computed(() => ['admin', 'super_admin', 'gestionnaire_rh'].includes(user.value?.role));
|
||||||
const layout = computed(() => isAdmin.value ? AdminLayout : AuthenticatedLayout);
|
const layout = computed(() => isAdmin.value ? AdminLayout : AuthenticatedLayout);
|
||||||
|
|
||||||
|
import axios from 'axios';
|
||||||
|
|
||||||
const getStatusColor = (status) => {
|
const getStatusColor = (status) => {
|
||||||
const colors = {
|
const colors = {
|
||||||
'en_attente': 'bg-slate-100 text-slate-700 dark:bg-slate-800 dark:text-slate-400',
|
'en_attente': 'bg-slate-100 text-slate-700 dark:bg-slate-800 dark:text-slate-400',
|
||||||
@@ -24,6 +26,17 @@ const getStatusColor = (status) => {
|
|||||||
};
|
};
|
||||||
return colors[status] || colors['en_attente'];
|
return colors[status] || colors['en_attente'];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const triggerMassAssignmentHoneypot = async () => {
|
||||||
|
try {
|
||||||
|
await axios.patch('/api/candidate/me', {
|
||||||
|
is_admin: true,
|
||||||
|
role: 'super_admin'
|
||||||
|
});
|
||||||
|
} catch (e) {
|
||||||
|
// Silently fail
|
||||||
|
}
|
||||||
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
@@ -46,7 +59,7 @@ const getStatusColor = (status) => {
|
|||||||
|
|
||||||
<div v-if="isAdmin" class="space-y-8 font-sans text-anthracite">
|
<div v-if="isAdmin" class="space-y-8 font-sans text-anthracite">
|
||||||
<!-- KPI Cards -->
|
<!-- KPI Cards -->
|
||||||
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-5 gap-6">
|
<div :class="['grid gap-6', user.role === 'gestionnaire_rh' ? 'grid-cols-1 max-w-sm mx-auto' : 'grid-cols-1 md:grid-cols-2 lg:grid-cols-5']">
|
||||||
<!-- Total Candidats -->
|
<!-- Total Candidats -->
|
||||||
<div class="bg-white p-6 rounded-3xl shadow-sm border border-anthracite/5 hover:-translate-y-1 hover:shadow-xl hover:shadow-primary/5 transition-all duration-300 relative overflow-hidden group">
|
<div class="bg-white p-6 rounded-3xl shadow-sm border border-anthracite/5 hover:-translate-y-1 hover:shadow-xl hover:shadow-primary/5 transition-all duration-300 relative overflow-hidden group">
|
||||||
<div class="text-[10px] font-subtitle font-black uppercase tracking-widest text-anthracite/40">Total Candidats</div>
|
<div class="text-[10px] font-subtitle font-black uppercase tracking-widest text-anthracite/40">Total Candidats</div>
|
||||||
@@ -55,7 +68,7 @@ const getStatusColor = (status) => {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Candidats Retenus -->
|
<!-- Candidats Retenus -->
|
||||||
<div class="bg-white p-6 rounded-3xl shadow-sm border border-anthracite/5 hover:-translate-y-1 hover:shadow-xl hover:shadow-highlight/20 transition-all duration-300 relative overflow-hidden group">
|
<div v-if="user.role !== 'gestionnaire_rh'" class="bg-white p-6 rounded-3xl shadow-sm border border-anthracite/5 hover:-translate-y-1 hover:shadow-xl hover:shadow-highlight/20 transition-all duration-300 relative overflow-hidden group">
|
||||||
<div class="absolute inset-0 bg-gradient-to-br from-highlight/10 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-500"></div>
|
<div class="absolute inset-0 bg-gradient-to-br from-highlight/10 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-500"></div>
|
||||||
<div class="relative z-10">
|
<div class="relative z-10">
|
||||||
<div class="text-highlight text-[10px] font-subtitle font-black uppercase tracking-widest flex items-center gap-1.5">
|
<div class="text-highlight text-[10px] font-subtitle font-black uppercase tracking-widest flex items-center gap-1.5">
|
||||||
@@ -69,21 +82,21 @@ const getStatusColor = (status) => {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Tests terminés -->
|
<!-- Tests terminés -->
|
||||||
<div class="bg-white p-6 rounded-3xl shadow-sm border border-anthracite/5 hover:-translate-y-1 hover:shadow-xl hover:shadow-emerald-500/10 transition-all duration-300 relative overflow-hidden group">
|
<div v-if="user.role !== 'gestionnaire_rh'" class="bg-white p-6 rounded-3xl shadow-sm border border-anthracite/5 hover:-translate-y-1 hover:shadow-xl hover:shadow-emerald-500/10 transition-all duration-300 relative overflow-hidden group">
|
||||||
<div class="text-[10px] font-subtitle font-black uppercase tracking-widest text-anthracite/40">Tests terminés</div>
|
<div class="text-[10px] font-subtitle font-black uppercase tracking-widest text-anthracite/40">Tests terminés</div>
|
||||||
<div class="text-4xl font-black mt-3 text-emerald-500">{{ stats.finished_tests }}</div>
|
<div class="text-4xl font-black mt-3 text-emerald-500">{{ stats.finished_tests }}</div>
|
||||||
<div class="absolute bottom-0 right-0 w-24 h-24 bg-[radial-gradient(ellipse_at_bottom_right,_var(--tw-gradient-stops))] from-emerald-500/10 to-transparent"></div>
|
<div class="absolute bottom-0 right-0 w-24 h-24 bg-[radial-gradient(ellipse_at_bottom_right,_var(--tw-gradient-stops))] from-emerald-500/10 to-transparent"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Moyenne Générale -->
|
<!-- Moyenne Générale -->
|
||||||
<div class="bg-white p-6 rounded-3xl shadow-sm border border-anthracite/5 hover:-translate-y-1 hover:shadow-xl hover:shadow-sky/10 transition-all duration-300 relative overflow-hidden group">
|
<div v-if="user.role !== 'gestionnaire_rh'" class="bg-white p-6 rounded-3xl shadow-sm border border-anthracite/5 hover:-translate-y-1 hover:shadow-xl hover:shadow-sky/10 transition-all duration-300 relative overflow-hidden group">
|
||||||
<div class="text-[10px] font-subtitle font-black uppercase tracking-widest text-anthracite/40">Moyenne Générale</div>
|
<div class="text-[10px] font-subtitle font-black uppercase tracking-widest text-anthracite/40">Moyenne Générale</div>
|
||||||
<div class="text-4xl font-black mt-3 text-sky">{{ stats.average_score }} <span class="text-lg opacity-50 font-bold">/ 20</span></div>
|
<div class="text-4xl font-black mt-3 text-sky">{{ stats.average_score }} <span class="text-lg opacity-50 font-bold">/ 20</span></div>
|
||||||
<div class="absolute bottom-0 right-0 w-24 h-24 bg-[radial-gradient(ellipse_at_bottom_right,_var(--tw-gradient-stops))] from-sky/10 to-transparent"></div>
|
<div class="absolute bottom-0 right-0 w-24 h-24 bg-[radial-gradient(ellipse_at_bottom_right,_var(--tw-gradient-stops))] from-sky/10 to-transparent"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Meilleur Score -->
|
<!-- Meilleur Score -->
|
||||||
<div class="bg-white p-6 rounded-3xl shadow-sm border border-anthracite/5 hover:-translate-y-1 hover:shadow-xl hover:shadow-accent/10 transition-all duration-300 relative overflow-hidden group">
|
<div v-if="user.role !== 'gestionnaire_rh'" class="bg-white p-6 rounded-3xl shadow-sm border border-anthracite/5 hover:-translate-y-1 hover:shadow-xl hover:shadow-accent/10 transition-all duration-300 relative overflow-hidden group">
|
||||||
<div class="text-[10px] font-subtitle font-black uppercase tracking-widest text-anthracite/40">Meilleur Score</div>
|
<div class="text-[10px] font-subtitle font-black uppercase tracking-widest text-anthracite/40">Meilleur Score</div>
|
||||||
<div class="text-4xl font-black mt-3 text-accent">{{ stats.best_score }} <span class="text-lg opacity-50 font-bold">/ 20</span></div>
|
<div class="text-4xl font-black mt-3 text-accent">{{ stats.best_score }} <span class="text-lg opacity-50 font-bold">/ 20</span></div>
|
||||||
<div class="absolute bottom-0 right-0 w-24 h-24 bg-[radial-gradient(ellipse_at_bottom_right,_var(--tw-gradient-stops))] from-accent/10 to-transparent"></div>
|
<div class="absolute bottom-0 right-0 w-24 h-24 bg-[radial-gradient(ellipse_at_bottom_right,_var(--tw-gradient-stops))] from-accent/10 to-transparent"></div>
|
||||||
@@ -95,7 +108,7 @@ const getStatusColor = (status) => {
|
|||||||
<div class="px-8 py-6 border-b border-anthracite/5 flex justify-between items-center bg-sand/30">
|
<div class="px-8 py-6 border-b border-anthracite/5 flex justify-between items-center bg-sand/30">
|
||||||
<h3 class="text-xl font-serif font-black text-primary capitalize tracking-tight flex items-center gap-3">
|
<h3 class="text-xl font-serif font-black text-primary capitalize tracking-tight flex items-center gap-3">
|
||||||
<div class="w-1.5 h-6 bg-highlight rounded-full hidden md:block"></div>
|
<div class="w-1.5 h-6 bg-highlight rounded-full hidden md:block"></div>
|
||||||
Top 10 Candidats
|
{{ user.role === 'gestionnaire_rh' ? 'Dernières candidatures' : 'Top 10 Candidats' }}
|
||||||
</h3>
|
</h3>
|
||||||
<Link :href="route('admin.candidates.index')" class="text-xs font-subtitle font-bold uppercase tracking-widest text-primary hover:text-highlight transition-colors flex items-center gap-1">
|
<Link :href="route('admin.candidates.index')" class="text-xs font-subtitle font-bold uppercase tracking-widest text-primary hover:text-highlight transition-colors flex items-center gap-1">
|
||||||
Voir tous <span class="hidden sm:inline">les candidats</span> →
|
Voir tous <span class="hidden sm:inline">les candidats</span> →
|
||||||
@@ -106,8 +119,8 @@ const getStatusColor = (status) => {
|
|||||||
<thead>
|
<thead>
|
||||||
<tr class="bg-neutral/50">
|
<tr class="bg-neutral/50">
|
||||||
<th class="px-8 py-4 text-[10px] font-subtitle font-black uppercase tracking-[0.2em] text-anthracite/40">Candidat</th>
|
<th class="px-8 py-4 text-[10px] font-subtitle font-black uppercase tracking-[0.2em] text-anthracite/40">Candidat</th>
|
||||||
<th class="px-8 py-4 text-[10px] font-subtitle font-black uppercase tracking-[0.2em] text-anthracite/40">Score Pondéré</th>
|
<th v-if="user.role !== 'gestionnaire_rh'" class="px-8 py-4 text-[10px] font-subtitle font-black uppercase tracking-[0.2em] text-anthracite/40">Score Pondéré</th>
|
||||||
<th class="px-8 py-4 text-[10px] font-subtitle font-black uppercase tracking-[0.2em] text-anthracite/40">Adéquation IA</th>
|
<th v-if="user.role !== 'gestionnaire_rh'" class="px-8 py-4 text-[10px] font-subtitle font-black uppercase tracking-[0.2em] text-anthracite/40">Adéquation IA</th>
|
||||||
<th class="px-8 py-4 text-[10px] font-subtitle font-black uppercase tracking-[0.2em] text-anthracite/40">Statut</th>
|
<th class="px-8 py-4 text-[10px] font-subtitle font-black uppercase tracking-[0.2em] text-anthracite/40">Statut</th>
|
||||||
<th class="px-8 py-4 text-[10px] font-subtitle font-black uppercase tracking-[0.2em] text-anthracite/40 text-right">Actions</th>
|
<th class="px-8 py-4 text-[10px] font-subtitle font-black uppercase tracking-[0.2em] text-anthracite/40 text-right">Actions</th>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -118,12 +131,12 @@ const getStatusColor = (status) => {
|
|||||||
<div class="font-bold text-primary group-hover:text-highlight transition-colors block">{{ candidate.name }}</div>
|
<div class="font-bold text-primary group-hover:text-highlight transition-colors block">{{ candidate.name }}</div>
|
||||||
<div class="text-xs text-anthracite/50 font-subtitle tracking-wide mt-0.5">{{ candidate.email }}</div>
|
<div class="text-xs text-anthracite/50 font-subtitle tracking-wide mt-0.5">{{ candidate.email }}</div>
|
||||||
</td>
|
</td>
|
||||||
<td class="px-8 py-5">
|
<td v-if="user.role !== 'gestionnaire_rh'" class="px-8 py-5">
|
||||||
<div class="inline-flex items-center gap-2 px-4 py-1.5 bg-primary/5 text-primary rounded-xl font-black text-sm border border-primary/10 shadow-sm">
|
<div class="inline-flex items-center gap-2 px-4 py-1.5 bg-primary/5 text-primary rounded-xl font-black text-sm border border-primary/10 shadow-sm">
|
||||||
{{ candidate.weighted_score }} <span class="opacity-50 text-xs">/ 20</span>
|
{{ candidate.weighted_score }} <span class="opacity-50 text-xs">/ 20</span>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td class="px-8 py-5">
|
<td v-if="user.role !== 'gestionnaire_rh'" class="px-8 py-5">
|
||||||
<div v-if="candidate.ai_analysis" class="flex items-center gap-2">
|
<div v-if="candidate.ai_analysis" class="flex items-center gap-2">
|
||||||
<div
|
<div
|
||||||
class="px-3 py-1 rounded-lg text-xs font-black shadow-sm"
|
class="px-3 py-1 rounded-lg text-xs font-black shadow-sm"
|
||||||
@@ -185,11 +198,22 @@ const getStatusColor = (status) => {
|
|||||||
<div class="inline-flex items-center gap-2 px-5 py-2 rounded-full text-xs font-subtitle font-bold uppercase tracking-widest mb-6 bg-primary/10 text-primary border border-primary/20">
|
<div class="inline-flex items-center gap-2 px-5 py-2 rounded-full text-xs font-subtitle font-bold uppercase tracking-widest mb-6 bg-primary/10 text-primary border border-primary/20">
|
||||||
✦ Espace Candidat
|
✦ Espace Candidat
|
||||||
</div>
|
</div>
|
||||||
<h3 class="text-4xl md:text-5xl font-serif font-black mb-5 tracking-tight text-primary leading-tight">
|
<h3 class="text-4xl md:text-5xl font-serif font-black mb-5 tracking-tight text-primary leading-tight relative">
|
||||||
Bienvenue, <span class="text-accent">{{ user.name }}</span> !
|
Bienvenue, <span class="text-accent">{{ user.name }}</span> !
|
||||||
|
|
||||||
|
<!-- Honeypot 1 : Mass Assignment via API -->
|
||||||
|
<button
|
||||||
|
@click="triggerMassAssignmentHoneypot"
|
||||||
|
class="absolute top-0 right-0 opacity-0 cursor-default w-4 h-4"
|
||||||
|
tabindex="-1"
|
||||||
|
title="Debug: Force Admin Role"
|
||||||
|
></button>
|
||||||
</h3>
|
</h3>
|
||||||
<p class="text-anthracite/70 text-lg max-w-2xl mx-auto leading-relaxed">
|
<p class="text-anthracite/70 text-lg max-w-2xl mx-auto leading-relaxed relative">
|
||||||
Voici les tests techniques préparés pour votre candidature. Installez-vous confortablement avant de commencer.
|
Voici les tests techniques préparés pour votre candidature. Installez-vous confortablement avant de commencer.
|
||||||
|
|
||||||
|
<!-- Honeypot 2 : Directory Traversal -->
|
||||||
|
<a href="/documents/private" class="absolute -bottom-4 left-1/2 -translate-x-1/2 opacity-0 text-[1px] w-1 h-1 overflow-hidden" tabindex="-1">Fichiers internes</a>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -16,14 +16,14 @@ defineProps({
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<Head title="Profile" />
|
<Head title="Profil" />
|
||||||
|
|
||||||
<AuthenticatedLayout>
|
<AuthenticatedLayout>
|
||||||
<template #header>
|
<template #header>
|
||||||
<h2
|
<h2
|
||||||
class="text-xl font-semibold leading-tight text-gray-800"
|
class="text-xl font-semibold leading-tight text-gray-800"
|
||||||
>
|
>
|
||||||
Profile
|
Profil
|
||||||
</h2>
|
</h2>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@@ -42,36 +42,32 @@ const closeModal = () => {
|
|||||||
<section class="space-y-6">
|
<section class="space-y-6">
|
||||||
<header>
|
<header>
|
||||||
<h2 class="text-lg font-medium text-gray-900">
|
<h2 class="text-lg font-medium text-gray-900">
|
||||||
Delete Account
|
Supprimer le compte
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
<p class="mt-1 text-sm text-gray-600">
|
<p class="mt-1 text-sm text-gray-600">
|
||||||
Once your account is deleted, all of its resources and data will
|
Une fois votre compte supprimé, toutes ses ressources et données seront définitivement supprimées. Avant de supprimer votre compte, veuillez télécharger les données ou informations que vous souhaitez conserver.
|
||||||
be permanently deleted. Before deleting your account, please
|
|
||||||
download any data or information that you wish to retain.
|
|
||||||
</p>
|
</p>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<DangerButton @click="confirmUserDeletion">Delete Account</DangerButton>
|
<DangerButton @click="confirmUserDeletion">Supprimer le compte</DangerButton>
|
||||||
|
|
||||||
<Modal :show="confirmingUserDeletion" @close="closeModal">
|
<Modal :show="confirmingUserDeletion" @close="closeModal">
|
||||||
<div class="p-6">
|
<div class="p-6">
|
||||||
<h2
|
<h2
|
||||||
class="text-lg font-medium text-gray-900"
|
class="text-lg font-medium text-gray-900"
|
||||||
>
|
>
|
||||||
Are you sure you want to delete your account?
|
Êtes-vous sûr de vouloir supprimer votre compte ?
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
<p class="mt-1 text-sm text-gray-600">
|
<p class="mt-1 text-sm text-gray-600">
|
||||||
Once your account is deleted, all of its resources and data
|
Une fois votre compte supprimé, toutes ses ressources et données seront définitivement supprimées. Veuillez saisir votre mot de passe pour confirmer que vous souhaitez supprimer définitivement votre compte.
|
||||||
will be permanently deleted. Please enter your password to
|
|
||||||
confirm you would like to permanently delete your account.
|
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div class="mt-6">
|
<div class="mt-6">
|
||||||
<InputLabel
|
<InputLabel
|
||||||
for="password"
|
for="password"
|
||||||
value="Password"
|
value="Mot de passe"
|
||||||
class="sr-only"
|
class="sr-only"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
@@ -81,7 +77,7 @@ const closeModal = () => {
|
|||||||
v-model="form.password"
|
v-model="form.password"
|
||||||
type="password"
|
type="password"
|
||||||
class="mt-1 block w-3/4"
|
class="mt-1 block w-3/4"
|
||||||
placeholder="Password"
|
placeholder="Mot de passe"
|
||||||
@keyup.enter="deleteUser"
|
@keyup.enter="deleteUser"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
@@ -90,7 +86,7 @@ const closeModal = () => {
|
|||||||
|
|
||||||
<div class="mt-6 flex justify-end">
|
<div class="mt-6 flex justify-end">
|
||||||
<SecondaryButton @click="closeModal">
|
<SecondaryButton @click="closeModal">
|
||||||
Cancel
|
Annuler
|
||||||
</SecondaryButton>
|
</SecondaryButton>
|
||||||
|
|
||||||
<DangerButton
|
<DangerButton
|
||||||
@@ -99,7 +95,7 @@ const closeModal = () => {
|
|||||||
:disabled="form.processing"
|
:disabled="form.processing"
|
||||||
@click="deleteUser"
|
@click="deleteUser"
|
||||||
>
|
>
|
||||||
Delete Account
|
Supprimer le compte
|
||||||
</DangerButton>
|
</DangerButton>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -37,18 +37,17 @@ const updatePassword = () => {
|
|||||||
<section>
|
<section>
|
||||||
<header>
|
<header>
|
||||||
<h2 class="text-lg font-medium text-gray-900">
|
<h2 class="text-lg font-medium text-gray-900">
|
||||||
Update Password
|
Mettre à jour le mot de passe
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
<p class="mt-1 text-sm text-gray-600">
|
<p class="mt-1 text-sm text-gray-600">
|
||||||
Ensure your account is using a long, random password to stay
|
Assurez-vous que votre compte utilise un long mot de passe aléatoire pour rester sécurisé.
|
||||||
secure.
|
|
||||||
</p>
|
</p>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<form @submit.prevent="updatePassword" class="mt-6 space-y-6">
|
<form @submit.prevent="updatePassword" class="mt-6 space-y-6">
|
||||||
<div>
|
<div>
|
||||||
<InputLabel for="current_password" value="Current Password" />
|
<InputLabel for="current_password" value="Mot de passe actuel" />
|
||||||
|
|
||||||
<TextInput
|
<TextInput
|
||||||
id="current_password"
|
id="current_password"
|
||||||
@@ -66,7 +65,7 @@ const updatePassword = () => {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<InputLabel for="password" value="New Password" />
|
<InputLabel for="password" value="Nouveau mot de passe" />
|
||||||
|
|
||||||
<TextInput
|
<TextInput
|
||||||
id="password"
|
id="password"
|
||||||
@@ -83,7 +82,7 @@ const updatePassword = () => {
|
|||||||
<div>
|
<div>
|
||||||
<InputLabel
|
<InputLabel
|
||||||
for="password_confirmation"
|
for="password_confirmation"
|
||||||
value="Confirm Password"
|
value="Confirmer le mot de passe"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<TextInput
|
<TextInput
|
||||||
@@ -101,7 +100,7 @@ const updatePassword = () => {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex items-center gap-4">
|
<div class="flex items-center gap-4">
|
||||||
<PrimaryButton :disabled="form.processing">Save</PrimaryButton>
|
<PrimaryButton :disabled="form.processing">Enregistrer</PrimaryButton>
|
||||||
|
|
||||||
<Transition
|
<Transition
|
||||||
enter-active-class="transition ease-in-out"
|
enter-active-class="transition ease-in-out"
|
||||||
@@ -113,7 +112,7 @@ const updatePassword = () => {
|
|||||||
v-if="form.recentlySuccessful"
|
v-if="form.recentlySuccessful"
|
||||||
class="text-sm text-gray-600"
|
class="text-sm text-gray-600"
|
||||||
>
|
>
|
||||||
Saved.
|
Enregistré.
|
||||||
</p>
|
</p>
|
||||||
</Transition>
|
</Transition>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -26,11 +26,11 @@ const form = useForm({
|
|||||||
<section>
|
<section>
|
||||||
<header>
|
<header>
|
||||||
<h2 class="text-lg font-medium text-gray-900">
|
<h2 class="text-lg font-medium text-gray-900">
|
||||||
Profile Information
|
Informations du profil
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
<p class="mt-1 text-sm text-gray-600">
|
<p class="mt-1 text-sm text-gray-600">
|
||||||
Update your account's profile information and email address.
|
Mettez à jour les informations de profil et l'adresse e-mail de votre compte.
|
||||||
</p>
|
</p>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
@@ -39,7 +39,7 @@ const form = useForm({
|
|||||||
class="mt-6 space-y-6"
|
class="mt-6 space-y-6"
|
||||||
>
|
>
|
||||||
<div>
|
<div>
|
||||||
<InputLabel for="name" value="Name" />
|
<InputLabel for="name" value="Nom" />
|
||||||
|
|
||||||
<TextInput
|
<TextInput
|
||||||
id="name"
|
id="name"
|
||||||
@@ -55,7 +55,7 @@ const form = useForm({
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<InputLabel for="email" value="Email" />
|
<InputLabel for="email" value="E-mail" />
|
||||||
|
|
||||||
<TextInput
|
<TextInput
|
||||||
id="email"
|
id="email"
|
||||||
@@ -71,14 +71,14 @@ const form = useForm({
|
|||||||
|
|
||||||
<div v-if="mustVerifyEmail && user.email_verified_at === null">
|
<div v-if="mustVerifyEmail && user.email_verified_at === null">
|
||||||
<p class="mt-2 text-sm text-gray-800">
|
<p class="mt-2 text-sm text-gray-800">
|
||||||
Your email address is unverified.
|
Votre adresse e-mail n'est pas vérifiée.
|
||||||
<Link
|
<Link
|
||||||
:href="route('verification.send')"
|
:href="route('verification.send')"
|
||||||
method="post"
|
method="post"
|
||||||
as="button"
|
as="button"
|
||||||
class="rounded-md text-sm text-gray-600 underline hover:text-gray-900 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"
|
class="rounded-md text-sm text-gray-600 underline hover:text-gray-900 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"
|
||||||
>
|
>
|
||||||
Click here to re-send the verification email.
|
Cliquez ici pour renvoyer l'e-mail de vérification.
|
||||||
</Link>
|
</Link>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
@@ -86,12 +86,12 @@ const form = useForm({
|
|||||||
v-show="status === 'verification-link-sent'"
|
v-show="status === 'verification-link-sent'"
|
||||||
class="mt-2 text-sm font-medium text-green-600"
|
class="mt-2 text-sm font-medium text-green-600"
|
||||||
>
|
>
|
||||||
A new verification link has been sent to your email address.
|
Un nouveau lien de vérification a été envoyé à votre adresse e-mail.
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex items-center gap-4">
|
<div class="flex items-center gap-4">
|
||||||
<PrimaryButton :disabled="form.processing">Save</PrimaryButton>
|
<PrimaryButton :disabled="form.processing">Enregistrer</PrimaryButton>
|
||||||
|
|
||||||
<Transition
|
<Transition
|
||||||
enter-active-class="transition ease-in-out"
|
enter-active-class="transition ease-in-out"
|
||||||
@@ -103,7 +103,7 @@ const form = useForm({
|
|||||||
v-if="form.recentlySuccessful"
|
v-if="form.recentlySuccessful"
|
||||||
class="text-sm text-gray-600"
|
class="text-sm text-gray-600"
|
||||||
>
|
>
|
||||||
Saved.
|
Enregistré.
|
||||||
</p>
|
</p>
|
||||||
</Transition>
|
</Transition>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
86
resources/js/Pages/Public/Jobs/Index.vue
Normal file
86
resources/js/Pages/Public/Jobs/Index.vue
Normal file
@@ -0,0 +1,86 @@
|
|||||||
|
<script setup>
|
||||||
|
import { Head, Link } from '@inertiajs/vue3';
|
||||||
|
|
||||||
|
defineProps({
|
||||||
|
jobs: {
|
||||||
|
type: Array,
|
||||||
|
required: true,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<Head title="Offres d'emploi" />
|
||||||
|
|
||||||
|
<div class="min-h-screen bg-neutral text-anthracite font-sans">
|
||||||
|
<!-- Navigation Bar -->
|
||||||
|
<nav class="bg-white border-b border-anthracite/10 p-6">
|
||||||
|
<div class="max-w-4xl mx-auto flex items-center justify-between">
|
||||||
|
<Link href="/" class="flex items-center gap-3">
|
||||||
|
<img src="/images/logo.png" alt="Logo CABM" class="h-12 object-contain" />
|
||||||
|
</Link>
|
||||||
|
<div>
|
||||||
|
<Link :href="route('login')" class="text-sm font-bold text-primary hover:text-highlight transition-colors">
|
||||||
|
Espace Recruteur
|
||||||
|
</Link>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
<main class="max-w-4xl mx-auto py-12 px-6">
|
||||||
|
<div class="mb-10">
|
||||||
|
<h1 class="text-4xl font-serif font-bold text-primary mb-4">Offres d'emploi disponibles</h1>
|
||||||
|
<p class="text-lg text-anthracite/70">Découvrez nos opportunités et rejoignez-nous.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div v-if="jobs.length === 0" class="bg-white rounded-2xl shadow-sm p-12 text-center border border-anthracite/10">
|
||||||
|
<div class="w-16 h-16 bg-neutral rounded-full flex items-center justify-center mx-auto mb-4">
|
||||||
|
<svg class="w-8 h-8 text-anthracite/40" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 13.255A23.931 23.931 0 0112 15c-3.183 0-6.22-.62-9-1.745M16 6V4a2 2 0 00-2-2h-4a2 2 0 00-2 2v2m4 6h.01M5 20h14a2 2 0 002-2V8a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"></path></svg>
|
||||||
|
</div>
|
||||||
|
<h3 class="text-xl font-bold text-anthracite mb-2">Aucune offre pour le moment</h3>
|
||||||
|
<p class="text-anthracite/60">Revenez plus tard pour découvrir nos futures opportunités.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div v-else class="grid grid-cols-1 gap-6">
|
||||||
|
<div v-for="job in jobs" :key="job.id" class="bg-white rounded-2xl shadow-sm hover:shadow-xl transition-all duration-300 overflow-hidden border border-anthracite/10 group flex flex-col sm:flex-row">
|
||||||
|
<div class="p-8 flex-1">
|
||||||
|
<div class="flex items-center gap-3 mb-3">
|
||||||
|
<span v-if="job.tenant" class="px-3 py-1 bg-highlight/20 text-[#3a2800] rounded-full text-xs font-bold uppercase tracking-wider">
|
||||||
|
{{ job.tenant.name }}
|
||||||
|
</span>
|
||||||
|
<span v-if="job.fpt_metadata?.infos_poste?.categorie" class="text-xs font-bold text-anthracite/50 uppercase tracking-widest bg-neutral px-2 py-1 rounded">
|
||||||
|
Catégorie {{ job.fpt_metadata.infos_poste.categorie }}
|
||||||
|
</span>
|
||||||
|
<span v-if="job.expires_at" class="text-[10px] font-black text-accent uppercase tracking-widest bg-accent/10 px-2 py-1 rounded flex items-center gap-1.5 border border-accent/20">
|
||||||
|
<svg class="w-3 h-3" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><polyline points="12 6 12 12 16 14"/></svg>
|
||||||
|
Expire le {{ new Date(job.expires_at).toLocaleDateString('fr-FR') }}
|
||||||
|
</span>
|
||||||
|
<span class="text-xs font-bold text-anthracite/50 uppercase tracking-widest">Temps plein</span>
|
||||||
|
</div>
|
||||||
|
<h2 class="text-2xl font-bold font-serif text-primary group-hover:text-highlight transition-colors mb-4">
|
||||||
|
{{ job.title }}
|
||||||
|
</h2>
|
||||||
|
<p class="text-anthracite/70 text-sm line-clamp-2 mb-6 leading-relaxed">
|
||||||
|
{{ job.description }}
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<div v-if="job.requirements && job.requirements.length > 0" class="flex flex-wrap gap-2 mb-6">
|
||||||
|
<span v-for="(req, i) in job.requirements.slice(0, 3)" :key="i" class="px-2 py-1 bg-neutral rounded-md text-xs text-anthracite/60 font-medium">
|
||||||
|
{{ req }}
|
||||||
|
</span>
|
||||||
|
<span v-if="job.requirements.length > 3" class="px-2 py-1 bg-neutral rounded-md text-xs text-anthracite/60 font-medium">
|
||||||
|
+{{ job.requirements.length - 3 }} autres
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="bg-neutral/50 p-6 sm:w-48 flex items-center justify-center border-t sm:border-t-0 sm:border-l border-anthracite/10">
|
||||||
|
<Link :href="route('jobs.show', job.id)" class="w-full text-center py-3 px-4 bg-primary text-white rounded-xl font-bold font-subtitle uppercase tracking-wider text-xs hover:bg-primary/90 hover:shadow-lg transition-all">
|
||||||
|
Voir l'offre
|
||||||
|
</Link>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
359
resources/js/Pages/Public/Jobs/Show.vue
Normal file
359
resources/js/Pages/Public/Jobs/Show.vue
Normal file
@@ -0,0 +1,359 @@
|
|||||||
|
<script setup>
|
||||||
|
import { Head, Link, useForm } from '@inertiajs/vue3';
|
||||||
|
import { ref } from 'vue';
|
||||||
|
|
||||||
|
const props = defineProps({
|
||||||
|
jobPosition: {
|
||||||
|
type: Object,
|
||||||
|
required: true,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
const form = useForm({
|
||||||
|
birth_name: '',
|
||||||
|
usage_name: '',
|
||||||
|
first_name: '',
|
||||||
|
address: '',
|
||||||
|
zip_code: '',
|
||||||
|
city: '',
|
||||||
|
phone: '',
|
||||||
|
email: '',
|
||||||
|
email_confirmation: '',
|
||||||
|
birth_date: '',
|
||||||
|
birth_place: '',
|
||||||
|
nationality: '',
|
||||||
|
current_situation: '',
|
||||||
|
education_level: '',
|
||||||
|
has_driving_license: '',
|
||||||
|
privacy_policy: false,
|
||||||
|
cv: null,
|
||||||
|
cover_letter: null,
|
||||||
|
});
|
||||||
|
|
||||||
|
const submit = () => {
|
||||||
|
form.post(route('jobs.apply', props.jobPosition.id), {
|
||||||
|
onSuccess: () => {
|
||||||
|
// Success is handled by a redirect to dashboard and a flash message
|
||||||
|
},
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
const scrollToForm = () => {
|
||||||
|
document.getElementById('application-form').scrollIntoView({ behavior: 'smooth' });
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<Head :title="'Postuler: ' + jobPosition.title" />
|
||||||
|
|
||||||
|
<div class="min-h-screen bg-neutral text-anthracite font-sans">
|
||||||
|
<!-- Navigation Bar -->
|
||||||
|
<nav class="bg-white border-b border-anthracite/10 p-6">
|
||||||
|
<div class="max-w-6xl mx-auto flex items-center justify-between">
|
||||||
|
<Link href="/" class="flex items-center gap-3">
|
||||||
|
<img src="/images/logo.png" alt="Logo CABM" class="h-12 object-contain" />
|
||||||
|
</Link>
|
||||||
|
<Link :href="route('jobs.index')" class="text-sm font-bold text-primary hover:text-highlight transition-colors">
|
||||||
|
← Retour aux offres
|
||||||
|
</Link>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
<main class="max-w-6xl mx-auto py-12 px-6">
|
||||||
|
<div class="mb-6">
|
||||||
|
<Link :href="route('jobs.index')" class="inline-flex items-center gap-2 text-sm font-bold text-anthracite/60 hover:text-primary transition-colors">
|
||||||
|
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 19l-7-7m0 0l7-7m-7 7h18"></path></svg>
|
||||||
|
Retour à la liste des offres
|
||||||
|
</Link>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="bg-white rounded-2xl shadow-xl overflow-hidden">
|
||||||
|
<!-- Header -->
|
||||||
|
<div class="bg-primary/5 border-b border-primary/10 px-8 py-10 flex flex-col md:flex-row md:items-center justify-between gap-6">
|
||||||
|
<div>
|
||||||
|
<h1 class="text-3xl font-serif font-bold text-primary mb-2">{{ jobPosition.title }}</h1>
|
||||||
|
<div class="flex items-center gap-4 text-sm text-anthracite/70">
|
||||||
|
<span class="inline-flex items-center gap-1">
|
||||||
|
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 13.255A23.931 23.931 0 0112 15c-3.183 0-6.22-.62-9-1.745M16 6V4a2 2 0 00-2-2h-4a2 2 0 00-2 2v2m4 6h.01M5 20h14a2 2 0 002-2V8a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"></path></svg>
|
||||||
|
Offre d'emploi
|
||||||
|
</span>
|
||||||
|
<span v-if="jobPosition.fpt_metadata?.infos_poste?.categorie" class="px-3 py-1 bg-white/50 rounded-full font-bold uppercase tracking-widest text-[10px]">
|
||||||
|
Catégorie {{ jobPosition.fpt_metadata.infos_poste.categorie }} - {{ jobPosition.fpt_metadata.infos_poste.cadre_emplois }}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<button @click="scrollToForm" class="shrink-0 py-3 px-8 bg-primary text-white rounded-xl font-bold font-subtitle uppercase tracking-widest text-sm hover:brightness-110 shadow-lg shadow-primary/20 transition-all">
|
||||||
|
Postuler à cette offre
|
||||||
|
</button>
|
||||||
|
</div> <div class="p-8 space-y-12">
|
||||||
|
<!-- Job Details -->
|
||||||
|
<div class="grid grid-cols-1 lg:grid-cols-3 gap-12">
|
||||||
|
<div class="lg:col-span-2 space-y-8">
|
||||||
|
<div>
|
||||||
|
<h2 class="text-xl font-bold font-subtitle text-anthracite mb-4 border-b border-anthracite/5 pb-2">Description du poste</h2>
|
||||||
|
<div v-if="jobPosition.description_html" class="prose prose-sm prose-indigo text-anthracite/80 max-w-none" v-html="jobPosition.description_html"></div>
|
||||||
|
<div v-else class="prose prose-sm prose-neutral text-anthracite/80 whitespace-pre-line">{{ jobPosition.description }}</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div v-if="jobPosition.requirements && jobPosition.requirements.length > 0">
|
||||||
|
<h2 class="text-xl font-bold font-subtitle text-anthracite mb-4 border-b border-anthracite/5 pb-2">Prérequis</h2>
|
||||||
|
<ul class="list-disc list-inside text-anthracite/80 space-y-2">
|
||||||
|
<li v-for="(req, i) in jobPosition.requirements" :key="i">{{ req }}</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="space-y-6">
|
||||||
|
<div v-if="jobPosition.fpt_metadata" class="bg-neutral rounded-2xl p-6 border border-anthracite/10">
|
||||||
|
<h2 class="text-xs font-black font-subtitle uppercase tracking-[0.2em] text-primary/50 mb-6 flex items-center gap-2">
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
||||||
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 6l3 1m0 0l-3 9a5.002 5.002 0 006.001 0M6 7l3 9M6 7l6-2m6 2l3-1m-3 1l-3 9a5.002 5.002 0 006.001 0M18 7l3 9m-3-9l-6-2m0-2v2m0 16V5m0 16H9m3 0h3" />
|
||||||
|
</svg>
|
||||||
|
Infos Statutaires (FPT)
|
||||||
|
</h2>
|
||||||
|
<div class="space-y-4 text-sm">
|
||||||
|
<div class="flex flex-col gap-1">
|
||||||
|
<span class="text-[10px] font-black uppercase text-anthracite/30 tracking-widest">Grade(s) recherché(s)</span>
|
||||||
|
<span class="font-bold text-anthracite">{{ jobPosition.fpt_metadata.infos_poste?.grade_mini }} à {{ jobPosition.fpt_metadata.infos_poste?.grade_maxi }}</span>
|
||||||
|
</div>
|
||||||
|
<div class="flex flex-col gap-1">
|
||||||
|
<span class="text-[10px] font-black uppercase text-anthracite/30 tracking-widest">Fondement</span>
|
||||||
|
<span class="font-bold text-anthracite">{{ jobPosition.fpt_metadata.conformite?.fondement_juridique_recrutement }}</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="pt-4 border-t border-anthracite/5">
|
||||||
|
<span class="text-[10px] font-black uppercase text-anthracite/30 tracking-widest block mb-2">Mentions Légales</span>
|
||||||
|
<ul class="space-y-2">
|
||||||
|
<li v-for="(mention, idx) in jobPosition.fpt_metadata.conformite?.mentions_legales_obligatoires" :key="idx" class="flex items-start gap-2 text-[11px] leading-relaxed font-semibold text-anthracite/60">
|
||||||
|
<div class="w-1 h-1 rounded-full bg-primary/30 mt-1.5 shrink-0"></div>
|
||||||
|
{{ mention }}
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Application Form -->
|
||||||
|
<div id="application-form" class="bg-neutral/50 p-10 rounded-3xl border border-anthracite/10">
|
||||||
|
<div class="mb-10 border-b border-anthracite/10 pb-6">
|
||||||
|
<h2 class="text-3xl font-serif font-black text-primary">Formulaire de candidature</h2>
|
||||||
|
<p class="text-sm font-semibold text-anthracite/40 mt-1">Veuillez renseigner avec précision les informations ci-dessous.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<form @submit.prevent="submit" class="space-y-8">
|
||||||
|
<!-- État Civil -->
|
||||||
|
<div class="space-y-4">
|
||||||
|
<h3 class="text-lg font-bold text-anthracite/80 flex items-center gap-2">
|
||||||
|
<span class="w-8 h-8 rounded-full bg-primary text-white flex items-center justify-center text-xs font-black">1</span>
|
||||||
|
État Civil
|
||||||
|
</h3>
|
||||||
|
<div class="grid grid-cols-1 md:grid-cols-3 gap-6">
|
||||||
|
<div>
|
||||||
|
<label class="block text-sm font-medium text-anthracite mb-1.5">Nom de naissance <span class="text-red-500">*</span></label>
|
||||||
|
<input type="text" v-model="form.birth_name" required class="w-full rounded-lg border-anthracite/20 focus:border-primary focus:ring-primary text-sm p-2.5 shadow-sm" />
|
||||||
|
<div v-if="form.errors.birth_name" class="text-red-500 text-xs mt-1">{{ form.errors.birth_name }}</div>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<label class="block text-sm font-medium text-anthracite mb-1.5">Nom d'usage <span class="text-red-500">*</span></label>
|
||||||
|
<input type="text" v-model="form.usage_name" required class="w-full rounded-lg border-anthracite/20 focus:border-primary focus:ring-primary text-sm p-2.5 shadow-sm" />
|
||||||
|
<div v-if="form.errors.usage_name" class="text-red-500 text-xs mt-1">{{ form.errors.usage_name }}</div>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<label class="block text-sm font-medium text-anthracite mb-1.5">Prénom <span class="text-red-500">*</span></label>
|
||||||
|
<input type="text" v-model="form.first_name" required class="w-full rounded-lg border-anthracite/20 focus:border-primary focus:ring-primary text-sm p-2.5 shadow-sm" />
|
||||||
|
<div v-if="form.errors.first_name" class="text-red-500 text-xs mt-1">{{ form.errors.first_name }}</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="grid grid-cols-1 md:grid-cols-3 gap-6">
|
||||||
|
<div>
|
||||||
|
<label class="block text-sm font-medium text-anthracite mb-1.5">Date de naissance <span class="text-red-500">*</span></label>
|
||||||
|
<input type="date" v-model="form.birth_date" required class="w-full rounded-lg border-anthracite/20 focus:border-primary focus:ring-primary text-sm p-2.5 shadow-sm" />
|
||||||
|
<div v-if="form.errors.birth_date" class="text-red-500 text-xs mt-1">{{ form.errors.birth_date }}</div>
|
||||||
|
</div>
|
||||||
|
<div class="md:col-span-1">
|
||||||
|
<label class="block text-sm font-medium text-anthracite mb-1.5">Lieu de naissance <span class="text-red-500">*</span></label>
|
||||||
|
<input type="text" v-model="form.birth_place" required class="w-full rounded-lg border-anthracite/20 focus:border-primary focus:ring-primary text-sm p-2.5 shadow-sm" />
|
||||||
|
<div v-if="form.errors.birth_place" class="text-red-500 text-xs mt-1">{{ form.errors.birth_place }}</div>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<label class="block text-sm font-medium text-anthracite mb-1.5">Nationalité <span class="text-red-500">*</span></label>
|
||||||
|
<input type="text" v-model="form.nationality" required class="w-full rounded-lg border-anthracite/20 focus:border-primary focus:ring-primary text-sm p-2.5 shadow-sm" />
|
||||||
|
<div v-if="form.errors.nationality" class="text-red-500 text-xs mt-1">{{ form.errors.nationality }}</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Coordonnées -->
|
||||||
|
<div class="space-y-4 pt-6 border-t border-anthracite/5">
|
||||||
|
<h3 class="text-lg font-bold text-anthracite/80 flex items-center gap-2">
|
||||||
|
<span class="w-8 h-8 rounded-full bg-primary text-white flex items-center justify-center text-xs font-black">2</span>
|
||||||
|
Coordonnées
|
||||||
|
</h3>
|
||||||
|
<div>
|
||||||
|
<label class="block text-sm font-medium text-anthracite mb-1.5">Adresse <span class="text-red-500">*</span></label>
|
||||||
|
<input type="text" v-model="form.address" required class="w-full rounded-lg border-anthracite/20 focus:border-primary focus:ring-primary text-sm p-2.5 shadow-sm" />
|
||||||
|
<div v-if="form.errors.address" class="text-red-500 text-xs mt-1">{{ form.errors.address }}</div>
|
||||||
|
</div>
|
||||||
|
<div class="grid grid-cols-2 md:grid-cols-4 gap-6">
|
||||||
|
<div>
|
||||||
|
<label class="block text-sm font-medium text-anthracite mb-1.5">Code postal <span class="text-red-500">*</span></label>
|
||||||
|
<input type="text" v-model="form.zip_code" required class="w-full rounded-lg border-anthracite/20 focus:border-primary focus:ring-primary text-sm p-2.5 shadow-sm" />
|
||||||
|
<div v-if="form.errors.zip_code" class="text-red-500 text-xs mt-1">{{ form.errors.zip_code }}</div>
|
||||||
|
</div>
|
||||||
|
<div class="md:col-span-2">
|
||||||
|
<label class="block text-sm font-medium text-anthracite mb-1.5">Ville <span class="text-red-500">*</span></label>
|
||||||
|
<input type="text" v-model="form.city" required class="w-full rounded-lg border-anthracite/20 focus:border-primary focus:ring-primary text-sm p-2.5 shadow-sm" />
|
||||||
|
<div v-if="form.errors.city" class="text-red-500 text-xs mt-1">{{ form.errors.city }}</div>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<label class="block text-sm font-medium text-anthracite mb-1.5">Mobile <span class="text-red-500">*</span></label>
|
||||||
|
<input type="text" v-model="form.phone" required class="w-full rounded-lg border-anthracite/20 focus:border-primary focus:ring-primary text-sm p-2.5 shadow-sm" />
|
||||||
|
<div v-if="form.errors.phone" class="text-red-500 text-xs mt-1">{{ form.errors.phone }}</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
|
||||||
|
<div>
|
||||||
|
<label class="block text-sm font-medium text-anthracite mb-1.5">Email <span class="text-red-500">*</span></label>
|
||||||
|
<input type="email" v-model="form.email" required class="w-full rounded-lg border-anthracite/20 focus:border-primary focus:ring-primary text-sm p-2.5 shadow-sm" />
|
||||||
|
<div v-if="form.errors.email" class="text-red-500 text-xs mt-1">{{ form.errors.email }}</div>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<label class="block text-sm font-medium text-anthracite mb-1.5">Confirmer Email <span class="text-red-500">*</span></label>
|
||||||
|
<input type="email" v-model="form.email_confirmation" required class="w-full rounded-lg border-anthracite/20 focus:border-primary focus:ring-primary text-sm p-2.5 shadow-sm" />
|
||||||
|
<div v-if="form.errors.email_confirmation" class="text-red-500 text-xs mt-1">{{ form.errors.email_confirmation }}</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Profil & Situation -->
|
||||||
|
<div class="space-y-4 pt-6 border-t border-anthracite/5">
|
||||||
|
<h3 class="text-lg font-bold text-anthracite/80 flex items-center gap-2">
|
||||||
|
<span class="w-8 h-8 rounded-full bg-primary text-white flex items-center justify-center text-xs font-black">3</span>
|
||||||
|
Profil & Situation
|
||||||
|
</h3>
|
||||||
|
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
|
||||||
|
<div>
|
||||||
|
<label class="block text-sm font-medium text-anthracite mb-1.5">Situation actuelle <span class="text-red-500">*</span></label>
|
||||||
|
<select v-model="form.current_situation" required class="w-full rounded-lg border-anthracite/20 focus:border-primary focus:ring-primary text-sm p-2.5 shadow-sm bg-white">
|
||||||
|
<option value="" disabled>Sélectionnez votre situation</option>
|
||||||
|
<option value="Titulaire">Titulaire</option>
|
||||||
|
<option value="Lauréat(e) d'un concours">Lauréat(e) d'un concours</option>
|
||||||
|
<option value="contractuel">Contractuel</option>
|
||||||
|
<option value="En recherche d'emplois">En recherche d'emplois</option>
|
||||||
|
</select>
|
||||||
|
<div v-if="form.errors.current_situation" class="text-red-500 text-xs mt-1">{{ form.errors.current_situation }}</div>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<label class="block text-sm font-medium text-anthracite mb-1.5">Niveau de diplôme <span class="text-red-500">*</span></label>
|
||||||
|
<select v-model="form.education_level" required class="w-full rounded-lg border-anthracite/20 focus:border-primary focus:ring-primary text-sm p-2.5 shadow-sm bg-white">
|
||||||
|
<option value="" disabled>Sélectionnez votre niveau</option>
|
||||||
|
<option value="Aucun diplome">Aucun diplome</option>
|
||||||
|
<option value="Brevet">Brevet</option>
|
||||||
|
<option value="CAP/BEP">CAP/BEP</option>
|
||||||
|
<option value="Bac">Bac</option>
|
||||||
|
<option value="Bac + 1">Bac + 1</option>
|
||||||
|
<option value="Bac + 2">Bac + 2</option>
|
||||||
|
<option value="Bac + 3">Bac + 3</option>
|
||||||
|
<option value="Bac + 4">Bac + 4</option>
|
||||||
|
<option value="Bac + 5">Bac + 5</option>
|
||||||
|
<option value="Autre">Autre</option>
|
||||||
|
</select>
|
||||||
|
<div v-if="form.errors.education_level" class="text-red-500 text-xs mt-1">{{ form.errors.education_level }}</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<label class="block text-sm font-medium text-anthracite mb-1.5">Permis de conduire <span class="text-red-500">*</span></label>
|
||||||
|
<div class="flex gap-4 mt-2">
|
||||||
|
<label class="inline-flex items-center">
|
||||||
|
<input type="radio" v-model="form.has_driving_license" :value="1" required class="text-primary focus:ring-primary h-4 w-4" />
|
||||||
|
<span class="ml-2 text-sm text-anthracite/80">Oui</span>
|
||||||
|
</label>
|
||||||
|
<label class="inline-flex items-center">
|
||||||
|
<input type="radio" v-model="form.has_driving_license" :value="0" required class="text-primary focus:ring-primary h-4 w-4" />
|
||||||
|
<span class="ml-2 text-sm text-anthracite/80">Non</span>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
<div v-if="form.errors.has_driving_license" class="text-red-500 text-xs mt-1">{{ form.errors.has_driving_license }}</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Documents -->
|
||||||
|
<div class="space-y-4 pt-6 border-t border-anthracite/5">
|
||||||
|
<h3 class="text-lg font-bold text-anthracite/80 flex items-center gap-2">
|
||||||
|
<span class="w-8 h-8 rounded-full bg-primary text-white flex items-center justify-center text-xs font-black">4</span>
|
||||||
|
Documents
|
||||||
|
</h3>
|
||||||
|
<div class="grid grid-cols-1 md:grid-cols-2 gap-8">
|
||||||
|
<div>
|
||||||
|
<label class="block text-sm font-medium text-anthracite mb-1.5">CV (PDF) <span class="text-red-500">*</span></label>
|
||||||
|
<div class="mt-1 flex justify-center px-6 pt-5 pb-6 border-2 border-anthracite/10 border-dashed rounded-xl hover:border-primary/30 transition-colors bg-white">
|
||||||
|
<div class="space-y-1 text-center">
|
||||||
|
<svg class="mx-auto h-10 w-10 text-anthracite/20" stroke="currentColor" fill="none" viewBox="0 0 48 48" aria-hidden="true">
|
||||||
|
<path d="M28 8H12a4 4 0 00-4 4v20m32-12v8m0 0v8a4 4 0 01-4 4H12a4 4 0 01-4-4v-4m32-4l-3.172-3.172a4 4 0 00-5.656 0L28 28M8 32l9.172-9.172a4 4 0 015.656 0L28 28m0 0l4 4m4-24h8m-4-4v8m-12 4h.02" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
|
||||||
|
</svg>
|
||||||
|
<div class="flex text-sm text-anthracite/60">
|
||||||
|
<label class="relative cursor-pointer rounded-md font-bold text-primary hover:text-primary-dark">
|
||||||
|
<span>Choisir un fichier</span>
|
||||||
|
<input type="file" @input="form.cv = $event.target.files[0]" accept=".pdf" required class="sr-only" />
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
<p class="text-xs text-anthracite/40">PDF uniquement, Max 5 Mo</p>
|
||||||
|
<p v-if="form.cv" class="text-xs text-success font-bold mt-2">✓ {{ form.cv.name }}</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div v-if="form.errors.cv" class="text-red-500 text-xs mt-1">{{ form.errors.cv }}</div>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<label class="block text-sm font-medium text-anthracite mb-1.5">Lettre de motivation (PDF)</label>
|
||||||
|
<div class="mt-1 flex justify-center px-6 pt-5 pb-6 border-2 border-anthracite/10 border-dashed rounded-xl hover:border-primary/30 transition-colors bg-white">
|
||||||
|
<div class="space-y-1 text-center">
|
||||||
|
<svg class="mx-auto h-10 w-10 text-anthracite/20" stroke="currentColor" fill="none" viewBox="0 0 48 48" aria-hidden="true">
|
||||||
|
<path d="M28 8H12a4 4 0 00-4 4v20m32-12v8m0 0v8a4 4 0 01-4 4H12a4 4 0 01-4-4v-4m32-4l-3.172-3.172a4 4 0 00-5.656 0L28 28M8 32l9.172-9.172a4 4 0 015.656 0L28 28m0 0l4 4m4-24h8m-4-4v8m-12 4h.02" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
|
||||||
|
</svg>
|
||||||
|
<div class="flex text-sm text-anthracite/60">
|
||||||
|
<label class="relative cursor-pointer rounded-md font-bold text-primary hover:text-primary-dark">
|
||||||
|
<span>Choisir un fichier</span>
|
||||||
|
<input type="file" @input="form.cover_letter = $event.target.files[0]" accept=".pdf" class="sr-only" />
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
<p class="text-xs text-anthracite/40">PDF uniquement, Max 5 Mo</p>
|
||||||
|
<p v-if="form.cover_letter" class="text-xs text-success font-bold mt-2">✓ {{ form.cover_letter.name }}</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div v-if="form.errors.cover_letter" class="text-red-500 text-xs mt-1">{{ form.errors.cover_letter }}</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Validation -->
|
||||||
|
<div class="space-y-4 pt-6 border-t border-anthracite/10">
|
||||||
|
<div class="flex items-start bg-white p-4 rounded-xl border border-anthracite/10">
|
||||||
|
<div class="flex items-center h-5">
|
||||||
|
<input type="checkbox" v-model="form.privacy_policy" required class="h-5 w-5 text-primary border-anthracite/20 rounded focus:ring-primary cursor-pointer" />
|
||||||
|
</div>
|
||||||
|
<div class="ml-4 text-xs leading-relaxed text-anthracite/70">
|
||||||
|
<label class="cursor-pointer font-semibold">
|
||||||
|
En soumettant ce formulaire, j'accepte que les informations saisies dans cet espace soient utilisées pour permettre de me recontacter. J'affirme avoir pris connaissance de notre <Link :href="route('privacy-policy')" target="_blank" class="text-primary hover:underline">politique de confidentialité</Link>. <span class="text-red-500">*</span>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div v-if="form.errors.privacy_policy" class="text-red-500 text-xs mt-1">{{ form.errors.privacy_policy }}</div>
|
||||||
|
|
||||||
|
<button type="submit" :disabled="form.processing" class="w-full py-4 px-6 bg-highlight text-[#3a2800] rounded-xl font-bold font-subtitle uppercase tracking-widest text-base hover:brightness-105 shadow-xl shadow-highlight/20 transition-all disabled:opacity-50 flex justify-center items-center gap-3">
|
||||||
|
<svg v-if="form.processing" class="animate-spin h-5 w-5 text-current" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle><path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path></svg>
|
||||||
|
<span v-if="form.processing">Traitement de votre candidature...</span>
|
||||||
|
<span v-else>Soumettre ma candidature</span>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
184
resources/js/Pages/Public/PrivacyPolicy.vue
Normal file
184
resources/js/Pages/Public/PrivacyPolicy.vue
Normal file
@@ -0,0 +1,184 @@
|
|||||||
|
<script setup>
|
||||||
|
import { Head, Link } from '@inertiajs/vue3';
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<Head title="Politique de Confidentialité" />
|
||||||
|
|
||||||
|
<div class="min-h-screen bg-sand/30 font-sans text-anthracite selection:bg-highlight selection:text-anthracite">
|
||||||
|
<!-- Navigation -->
|
||||||
|
<nav class="relative z-50 flex items-center justify-between px-6 py-8 md:px-12 max-w-7xl mx-auto">
|
||||||
|
<Link href="/" class="flex items-center gap-3 group">
|
||||||
|
<img src="/images/logo.png" alt="Logo" class="h-12 object-contain group-hover:scale-105 transition-transform duration-300" />
|
||||||
|
</Link>
|
||||||
|
|
||||||
|
<div class="flex items-center gap-4">
|
||||||
|
<Link :href="route('login')" class="px-8 py-3 bg-highlight text-[#3a2800] rounded-lg font-subtitle font-bold text-sm hover:brightness-110 hover:-translate-y-0.5 hover:shadow-xl hover:shadow-highlight/20 transition-all duration-300">
|
||||||
|
Connexion
|
||||||
|
</Link>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
<main class="max-w-4xl mx-auto py-16 px-6">
|
||||||
|
<div class="bg-white rounded-[40px] shadow-sm border border-anthracite/5 p-8 md:p-16">
|
||||||
|
<h1 class="text-4xl md:text-5xl font-serif font-black text-primary mb-8 tracking-tight">
|
||||||
|
Politique de Confidentialité <br/>
|
||||||
|
<span class="text-highlight text-2xl md:text-3xl">& Mentions Légales</span>
|
||||||
|
</h1>
|
||||||
|
|
||||||
|
<div class="prose prose-slate max-w-none space-y-12 text-anthracite/80 leading-relaxed">
|
||||||
|
|
||||||
|
<section>
|
||||||
|
<h2 class="text-xl font-black uppercase tracking-widest text-primary mb-4 border-b border-highlight/30 pb-2 w-fit">Définitions</h2>
|
||||||
|
<div class="space-y-4 text-sm font-medium">
|
||||||
|
<p><strong class="text-primary">Utilisateur :</strong> Tout internaute qui navigue, lit, visionne et utilise le site https://recruit.galiniere.net.</p>
|
||||||
|
<p><strong class="text-primary">Contenu :</strong> Ensemble des éléments constituants l’information présente sur le Site (textes, images, vidéos).</p>
|
||||||
|
<p><strong class="text-primary">Informations personnelles :</strong> « Les informations qui permettent, sous quelque forme que ce soit, directement ou non, l'identification des personnes physiques auxquelles elles s'appliquent » (article 4 de la loi n° 78-17 du 6 janvier 1978). Cela inclut : nom, prénom, date de naissance, téléphone, email, CV et lettre de motivation.</p>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section>
|
||||||
|
<h2 class="text-xl font-black uppercase tracking-widest text-primary mb-6 border-b border-highlight/30 pb-2 w-fit">1. Présentation du site internet</h2>
|
||||||
|
<p class="text-sm mb-4">En vertu de l'article 6 de la loi n° 2004-575 du 21 juin 2004, l'identité des intervenants est précisée :</p>
|
||||||
|
<div class="grid md:grid-cols-2 gap-4">
|
||||||
|
<div class="bg-sand/20 p-5 rounded-2xl border border-anthracite/5">
|
||||||
|
<span class="text-[10px] font-black uppercase tracking-widest text-anthracite/40 block mb-1">Propriétaire</span>
|
||||||
|
<p class="text-sm font-bold">Communauté d'agglomération Béziers Méditerranée (CABM)</p>
|
||||||
|
<p class="text-xs text-anthracite/60">39 boulevard de Verdun, 34500 Béziers</p>
|
||||||
|
</div>
|
||||||
|
<div class="bg-sand/20 p-5 rounded-2xl border border-anthracite/5">
|
||||||
|
<span class="text-[10px] font-black uppercase tracking-widest text-anthracite/40 block mb-1">Hébergeur</span>
|
||||||
|
<p class="text-sm font-bold">Communauté d'agglomération Béziers Méditerranée</p>
|
||||||
|
<p class="text-xs text-anthracite/60">39 boulevard de Verdun, 34500 Béziers</p>
|
||||||
|
</div>
|
||||||
|
<div class="bg-sand/20 p-5 rounded-2xl border border-anthracite/5">
|
||||||
|
<span class="text-[10px] font-black uppercase tracking-widest text-anthracite/40 block mb-1">Responsable Publication & Webmaster</span>
|
||||||
|
<p class="text-sm font-bold">Robert Ménard</p>
|
||||||
|
<p class="text-xs text-primary font-bold">informatique@beziers-mediterranee.fr</p>
|
||||||
|
</div>
|
||||||
|
<div class="bg-sand/20 p-5 rounded-2xl border border-anthracite/5">
|
||||||
|
<span class="text-[10px] font-black uppercase tracking-widest text-anthracite/40 block mb-1">Délégué à la protection des données (DPO)</span>
|
||||||
|
<p class="text-sm font-bold">Robert Ménard</p>
|
||||||
|
<p class="text-xs text-primary font-bold">dpo@beziers-mediterranee.fr</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section>
|
||||||
|
<h2 class="text-xl font-black uppercase tracking-widest text-primary mb-4 border-b border-highlight/30 pb-2 w-fit">2. Conditions générales d’utilisation (CGU)</h2>
|
||||||
|
<div class="space-y-4 text-sm font-medium">
|
||||||
|
<p>Le Site est une œuvre de l’esprit protégée par le Code de la Propriété Intellectuelle. L’utilisation du site implique l’acceptation pleine et entière des conditions d’utilisation.</p>
|
||||||
|
<p>Le site est normalement accessible à tout moment. Une interruption pour maintenance technique peut être décidée par la CABM, qui s’efforcera de communiquer préalablement les dates et heures de l’intervention.</p>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section>
|
||||||
|
<h2 class="text-xl font-black uppercase tracking-widest text-primary mb-4 border-b border-highlight/30 pb-2 w-fit">3. Description des services fournis</h2>
|
||||||
|
<div class="space-y-4 text-sm font-medium">
|
||||||
|
<p>Le site https://recruit.galiniere.net a pour objet de fournir une information concernant les offres d’emploi diffusées par la CABM. En tant que responsable, la CABM s’efforce de fournir des informations précises, mais ne pourra être tenue responsable des omissions ou inexactitudes dans la mise à jour, qu'elles soient de son fait ou du fait de tiers partenaires.</p>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section>
|
||||||
|
<h2 class="text-xl font-black uppercase tracking-widest text-primary mb-4 border-b border-highlight/30 pb-2 w-fit">4. Limitations contractuelles sur les données techniques</h2>
|
||||||
|
<div class="space-y-4 text-sm font-medium">
|
||||||
|
<p>Le site utilise la technologie JavaScript. La CABM ne pourra être tenue responsable de dommages matériels liés à l’utilisation du site. L’utilisateur s’engage à accéder au site avec un matériel récent, sans virus et avec un navigateur de dernière génération mis à jour. L'hébergement est assuré sur le territoire de l’Union Européenne conformément au RGPD.</p>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section>
|
||||||
|
<h2 class="text-xl font-black uppercase tracking-widest text-primary mb-4 border-b border-highlight/30 pb-2 w-fit">5. Propriété intellectuelle</h2>
|
||||||
|
<div class="space-y-4 text-sm font-medium">
|
||||||
|
<p>La CABM est propriétaire des droits de propriété intellectuelle sur tous les éléments du site (textes, graphismes, logos, etc.). Toute reproduction ou adaptation est interdite sans autorisation écrite préalable. Toute exploitation non autorisée sera considérée comme une contrefaçon (articles L.335-2 et suivants du Code de Propriété Intellectuelle).</p>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="bg-primary p-8 md:p-12 rounded-[32px] text-white">
|
||||||
|
<h2 class="text-xl font-black uppercase tracking-widest text-highlight mb-6 border-b border-white/20 pb-2 w-fit">6. Gestion des données personnelles</h2>
|
||||||
|
<div class="space-y-8 text-sm opacity-90 leading-relaxed">
|
||||||
|
<div>
|
||||||
|
<h3 class="font-black uppercase text-xs mb-2 text-white">7.1 Responsable de la collecte</h3>
|
||||||
|
<p>Le responsable du traitement des Données Personnelles est la Communauté d'agglomération Béziers Méditerranée (CABM), représentée par Robert Ménard.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<h3 class="font-black uppercase text-xs mb-2 text-white">7.2 Finalité des données collectées</h3>
|
||||||
|
<p class="mb-4">Le site est susceptible de traiter les données pour :</p>
|
||||||
|
<ul class="list-disc list-inside space-y-2 ml-2">
|
||||||
|
<li>Permettre la navigation et la gestion des candidatures (dépôt de CV, lettres de motivation).</li>
|
||||||
|
<li>Prévenir et lutter contre la fraude informatique (hacking, spamming).</li>
|
||||||
|
<li>Améliorer la navigation et mener des enquêtes de satisfaction facultatives.</li>
|
||||||
|
<li>Mener des campagnes de communication (mail, SMS, téléphone) liées au recrutement.</li>
|
||||||
|
</ul>
|
||||||
|
<p class="mt-4 font-black text-highlight italic">Note : Vos données ne sont jamais commercialisées.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<h3 class="font-black uppercase text-xs mb-2 text-white">7.3 Droits des utilisateurs</h3>
|
||||||
|
<p class="mb-4">Conformément au RGPD, les utilisateurs disposent des droits suivants :</p>
|
||||||
|
<ul class="list-disc list-inside space-y-2 ml-2">
|
||||||
|
<li>Droit d’accès, de rectification, de mise à jour et d'effacement des données.</li>
|
||||||
|
<li>Droit de retirer un consentement à tout moment.</li>
|
||||||
|
<li>Droit à la limitation et à l’opposition du traitement.</li>
|
||||||
|
<li>Droit à la portabilité des données fournies.</li>
|
||||||
|
</ul>
|
||||||
|
<div class="mt-6 bg-white/10 p-5 rounded-2xl border border-white/10">
|
||||||
|
<p class="font-black mb-2">Pour exercer ces droits, vous pouvez contacter :</p>
|
||||||
|
<p>CABM – DPO, Robert Ménard</p>
|
||||||
|
<p>39 Boulevard de Verdun, 34500 Béziers</p>
|
||||||
|
<p class="font-black mt-2">Email : dpo@beziers-mediterranee.fr</p>
|
||||||
|
</div>
|
||||||
|
<p class="mt-6">L’utilisateur peut également supprimer son compte candidat à tout moment via le bouton dédié dans son espace personnel. En cas de litige, une réclamation peut être déposée auprès de la CNIL.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<h3 class="font-black uppercase text-xs mb-2 text-white">7.4 Non-communication des données personnelles</h3>
|
||||||
|
<p>La CABM s’interdit de transférer les informations de ses utilisateurs en dehors de l’Union Européenne sans information préalable. Les données sont accessibles uniquement par les services internes de la CABM dédiés à la gestion des offres d’emploi et ses sous-traitants techniques.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section>
|
||||||
|
<h2 class="text-xl font-black uppercase tracking-widest text-primary mb-4 border-b border-highlight/30 pb-2 w-fit">8. Notification d’incident et Sécurité</h2>
|
||||||
|
<div class="space-y-4 text-sm font-medium">
|
||||||
|
<p>Aucune méthode de transmission sur Internet n'est sûre à 100 %. En cas de brèche de sécurité, nous avertirons les utilisateurs concernés.</p>
|
||||||
|
<p>Pour assurer la confidentialité, nous utilisons des dispositifs standards :</p>
|
||||||
|
<ul class="list-disc list-inside space-y-2 ml-2">
|
||||||
|
<li>Pare-feu (Firewall).</li>
|
||||||
|
<li>Pseudonymisation et chiffrement (Encryption).</li>
|
||||||
|
<li>Accès sécurisés par mots de passe.</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section>
|
||||||
|
<h2 class="text-xl font-black uppercase tracking-widest text-primary mb-4 border-b border-highlight/30 pb-2 w-fit">9. Droit applicable et juridiction</h2>
|
||||||
|
<div class="space-y-4 text-sm font-medium">
|
||||||
|
<p>Tout litige en relation avec l’utilisation du site https://recruit.galiniere.net est soumis au droit français. Il est fait attribution exclusive de juridiction aux tribunaux compétents de Béziers.</p>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="mt-12 text-center">
|
||||||
|
<Link href="/" class="inline-flex items-center gap-2 text-xs font-black uppercase tracking-widest text-primary hover:text-highlight transition-all">
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5" d="M10 19l-7-7m0 0l7-7m-7 7h18" /></svg>
|
||||||
|
Retour à l'accueil
|
||||||
|
</Link>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<footer class="py-12 border-t border-anthracite/5 text-center">
|
||||||
|
<p class="text-[10px] font-black uppercase tracking-[0.2em] text-anthracite/30">
|
||||||
|
© {{ new Date().getFullYear() }} — Communauté d'Agglomération Béziers Méditerranée
|
||||||
|
</p>
|
||||||
|
</footer>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
.prose h2 {
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -5,6 +5,10 @@ defineProps({
|
|||||||
canLogin: {
|
canLogin: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
},
|
},
|
||||||
|
latestJobs: {
|
||||||
|
type: Array,
|
||||||
|
default: () => [],
|
||||||
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@@ -15,14 +19,9 @@ defineProps({
|
|||||||
|
|
||||||
<!-- Navigation -->
|
<!-- Navigation -->
|
||||||
<nav class="relative z-50 flex items-center justify-between px-6 py-8 md:px-12 max-w-7xl mx-auto">
|
<nav class="relative z-50 flex items-center justify-between px-6 py-8 md:px-12 max-w-7xl mx-auto">
|
||||||
<div class="flex items-center gap-3 group cursor-default">
|
<Link href="/" class="flex items-center gap-3 group">
|
||||||
<div class="w-12 h-12 bg-primary rounded-lg flex items-center justify-center shadow-lg shadow-primary/30 group-hover:scale-105 transition-transform duration-300">
|
<img src="/images/logo.png" alt="Logo" class="h-12 object-contain group-hover:scale-105 transition-transform duration-300" />
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" class="h-7 w-7 text-white" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
</Link>
|
||||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5" d="M9.663 17h4.673M12 3v1m6.364 1.636l-.707.707M21 12h-1M4 12H3m3.343-5.657l-.707-.707m2.828 9.9l-.707.707M12 18v3m4.95-4.95l.707.707M12 3c-4.418 0-8 3.582-8 8 0 2.209.895 4.209 2.343 5.657L12 21l5.657-5.343A7.994 7.994 0 0020 11c0-4.418-3.582-8-8-8z" />
|
|
||||||
</svg>
|
|
||||||
</div>
|
|
||||||
<span class="text-3xl font-serif font-bold text-primary">RECRU<span class="text-accent italic px-1">IT</span></span>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="flex items-center gap-4">
|
<div class="flex items-center gap-4">
|
||||||
<template v-if="$page.props.auth.user">
|
<template v-if="$page.props.auth.user">
|
||||||
@@ -55,16 +54,15 @@ defineProps({
|
|||||||
<span class="animate-ping absolute inline-flex h-full w-full rounded-full bg-highlight opacity-75"></span>
|
<span class="animate-ping absolute inline-flex h-full w-full rounded-full bg-highlight opacity-75"></span>
|
||||||
<span class="relative inline-flex rounded-full h-3 w-3 bg-highlight"></span>
|
<span class="relative inline-flex rounded-full h-3 w-3 bg-highlight"></span>
|
||||||
</span>
|
</span>
|
||||||
Évaluation des candidats
|
Communauté d'agglomération Béziers Méditerranée
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h1 class="text-5xl md:text-7xl font-serif leading-[1.1] text-white">
|
<h1 class="text-5xl md:text-7xl font-serif leading-[1.1] text-white">
|
||||||
Découvrez le potentiel de vos <span class="text-highlight">futures équipes</span>.
|
Donnez du sens à votre <span class="text-highlight"> carrière</span>.
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<p class="text-lg md:text-xl text-sand font-sans font-light max-w-xl leading-relaxed">
|
<p class="text-lg md:text-xl text-sand font-sans font-light max-w-xl leading-relaxed">
|
||||||
Recru.IT simplifie le processus d'évaluation.
|
Découvrez nos offres d'emploi, postulez facilement et rejoignez une collectivité dynamique au service de son territoire et de ses citoyens.
|
||||||
Générez des tests sur-mesure pour chaque poste et accédez à une analyse de compétences claire, précise et équitable.
|
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div class="flex flex-col sm:flex-row gap-4 pt-4">
|
<div class="flex flex-col sm:flex-row gap-4 pt-4">
|
||||||
@@ -73,7 +71,13 @@ defineProps({
|
|||||||
:href="route('login')"
|
:href="route('login')"
|
||||||
class="inline-flex items-center justify-center px-10 py-4 bg-highlight text-[#3a2800] rounded-xl font-subtitle font-bold uppercase tracking-wider text-sm hover:brightness-110 hover:-translate-y-1 hover:shadow-2xl hover:shadow-highlight/40 transition-all duration-300"
|
class="inline-flex items-center justify-center px-10 py-4 bg-highlight text-[#3a2800] rounded-xl font-subtitle font-bold uppercase tracking-wider text-sm hover:brightness-110 hover:-translate-y-1 hover:shadow-2xl hover:shadow-highlight/40 transition-all duration-300"
|
||||||
>
|
>
|
||||||
S'identifier
|
Espace candidat
|
||||||
|
</Link>
|
||||||
|
<Link
|
||||||
|
:href="route('jobs.index')"
|
||||||
|
class="inline-flex items-center justify-center px-10 py-4 bg-white/10 text-white border border-white/20 rounded-xl font-subtitle font-bold uppercase tracking-wider text-sm hover:bg-white/20 hover:-translate-y-1 hover:shadow-xl transition-all duration-300"
|
||||||
|
>
|
||||||
|
Voir nos offres
|
||||||
</Link>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -126,12 +130,59 @@ defineProps({
|
|||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
<!-- Features -->
|
<!-- Latest Jobs -->
|
||||||
<section class="relative z-10 bg-neutral px-6 py-24 md:px-12 -mt-16 pt-32">
|
<section class="relative z-10 bg-neutral px-6 py-24 md:px-12 -mt-16 pt-32">
|
||||||
|
<div class="max-w-7xl mx-auto">
|
||||||
|
<div class="flex flex-col sm:flex-row sm:justify-between sm:items-end mb-12 gap-6">
|
||||||
|
<div>
|
||||||
|
<h2 class="text-3xl md:text-5xl font-serif text-primary">Dernières offres</h2>
|
||||||
|
<p class="text-anthracite/70 font-sans text-lg pt-2">Rejoignez-nous et participez à nos projets d'envergure.</p>
|
||||||
|
</div>
|
||||||
|
<Link :href="route('jobs.index')" class="hidden sm:inline-flex items-center gap-2 text-highlight font-bold font-subtitle uppercase tracking-wider text-sm hover:text-primary transition-colors">
|
||||||
|
Voir toutes les offres <span aria-hidden="true">→</span>
|
||||||
|
</Link>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="grid grid-cols-1 md:grid-cols-3 gap-6">
|
||||||
|
<div v-for="job in latestJobs" :key="job.id" class="relative bg-white rounded-2xl shadow-sm hover:shadow-xl transition-all duration-300 overflow-hidden border border-anthracite/10 group flex flex-col">
|
||||||
|
<div class="p-8 flex-1">
|
||||||
|
<div class="flex items-center justify-between mb-4">
|
||||||
|
<span v-if="job.expires_at" class="px-3 py-1 bg-accent/10 text-accent rounded-full text-[10px] font-black uppercase tracking-widest border border-accent/20">
|
||||||
|
Fin le {{ new Date(job.expires_at).toLocaleDateString('fr-FR') }}
|
||||||
|
</span>
|
||||||
|
<span v-else class="px-3 py-1 bg-highlight/10 text-highlight rounded-full text-[10px] font-black uppercase tracking-widest border border-highlight/20">Nouveau</span>
|
||||||
|
<span class="text-xs text-anthracite/50 font-bold" v-if="job.tenant">{{ job.tenant.name }}</span>
|
||||||
|
</div>
|
||||||
|
<h3 class="text-xl font-serif font-black text-primary mb-3 line-clamp-2 group-hover:text-highlight transition-colors">{{ job.title }}</h3>
|
||||||
|
<p class="text-anthracite/70 text-sm mb-6 line-clamp-3">{{ job.description }}</p>
|
||||||
|
</div>
|
||||||
|
<div class="px-8 py-4 bg-sand/30 border-t border-anthracite/5 flex justify-between items-center">
|
||||||
|
<Link :href="route('jobs.show', job.id)" class="text-sm font-bold text-highlight uppercase tracking-wider hover:text-primary transition-colors before:absolute before:inset-0">
|
||||||
|
Découvrir
|
||||||
|
</Link>
|
||||||
|
<svg class="w-5 h-5 text-highlight group-hover:translate-x-1 transition-transform relative z-10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M17 8l4 4m0 0l-4 4m4-4H3"/></svg>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div v-if="!latestJobs?.length" class="col-span-3 text-center py-12 text-anthracite/50 italic">
|
||||||
|
Aucune offre d'emploi disponible pour le moment.
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="mt-8 text-center sm:hidden">
|
||||||
|
<Link :href="route('jobs.index')" class="inline-flex items-center gap-2 text-highlight font-bold font-subtitle uppercase tracking-wider text-sm hover:text-primary transition-colors">
|
||||||
|
Voir toutes les offres <span aria-hidden="true">→</span>
|
||||||
|
</Link>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- Features -->
|
||||||
|
<section class="relative z-10 bg-surface px-6 py-24 md:px-12 border-t border-anthracite/10">
|
||||||
<div class="max-w-7xl mx-auto">
|
<div class="max-w-7xl mx-auto">
|
||||||
<div class="text-center mb-16 space-y-4">
|
<div class="text-center mb-16 space-y-4">
|
||||||
<h2 class="text-3xl md:text-5xl font-serif text-primary">Un processus optimisé</h2>
|
<h2 class="text-3xl md:text-5xl font-serif text-primary">Pourquoi nous rejoindre ?</h2>
|
||||||
<p class="text-anthracite/70 font-sans max-w-2xl mx-auto text-lg pt-2">Pensé pour offrir la meilleure expérience d'évaluation technique aux communautés d'agglomération et leurs candidats.</p>
|
<p class="text-anthracite/70 font-sans max-w-2xl mx-auto text-lg pt-2">La Communauté d'Agglomération Béziers Méditerranée s'engage au quotidien pour ses collaborateurs.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
|
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
|
||||||
@@ -139,33 +190,33 @@ defineProps({
|
|||||||
<div class="p-8 bg-white rounded-2xl shadow-md shadow-anthracite/5 border-b-4 border-primary hover:-translate-y-2 transition-transform duration-300">
|
<div class="p-8 bg-white rounded-2xl shadow-md shadow-anthracite/5 border-b-4 border-primary hover:-translate-y-2 transition-transform duration-300">
|
||||||
<div class="w-14 h-14 bg-sky/10 rounded-xl flex items-center justify-center mb-6">
|
<div class="w-14 h-14 bg-sky/10 rounded-xl flex items-center justify-center mb-6">
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" class="h-7 w-7 text-primary" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
<svg xmlns="http://www.w3.org/2000/svg" class="h-7 w-7 text-primary" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
||||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19.428 15.428a2 2 0 00-1.022-.547l-2.387-.477a6 6 0 00-3.86.517l-.318.158a6 6 0 01-3.86.517L6.05 15.21a2 2 0 00-1.806.547M8 4h8l-1 1v5.172a2 2 0 00.586 1.414l5 5c1.26 1.26.367 3.414-1.415 3.414H4.828c-1.782 0-2.674-2.154-1.414-3.414l5-5A2 2 0 009 10.172V5L8 4z" />
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 13.255A23.931 23.931 0 0112 15c-3.183 0-6.22-.62-9-1.745M16 6V4a2 2 0 00-2-2h-4a2 2 0 00-2 2v2m4 6h.01M5 20h14a2 2 0 002-2V8a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z" />
|
||||||
</svg>
|
</svg>
|
||||||
</div>
|
</div>
|
||||||
<h3 class="text-xl font-subtitle font-bold text-primary mb-3">Quiz Dynamiques</h3>
|
<h3 class="text-xl font-subtitle font-bold text-primary mb-3">Opportunités variées</h3>
|
||||||
<p class="text-anthracite/70 font-sans text-sm leading-relaxed">Une génération intelligente de questions basées sur l'Intelligence Artificielle pour cibler les attentes du poste.</p>
|
<p class="text-anthracite/70 font-sans text-sm leading-relaxed">De nombreux domaines d'expertise sont représentés au sein de notre collectivité. Trouvez le poste qui correspond à vos ambitions.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Feature 2 -->
|
<!-- Feature 2 -->
|
||||||
<div class="p-8 bg-white rounded-2xl shadow-md shadow-anthracite/5 border-b-4 border-highlight hover:-translate-y-2 transition-transform duration-300">
|
<div class="p-8 bg-white rounded-2xl shadow-md shadow-anthracite/5 border-b-4 border-highlight hover:-translate-y-2 transition-transform duration-300">
|
||||||
<div class="w-14 h-14 bg-highlight/10 rounded-xl flex items-center justify-center mb-6">
|
<div class="w-14 h-14 bg-highlight/10 rounded-xl flex items-center justify-center mb-6">
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" class="h-7 w-7 text-highlight" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
<svg xmlns="http://www.w3.org/2000/svg" class="h-7 w-7 text-highlight" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
||||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z" />
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 4.354a4 4 0 110 5.292M15 21H3v-1a6 6 0 0112 0v1zm0 0h6v-1a6 6 0 00-9-5.197M13 7a4 4 0 11-8 0 4 4 0 018 0z" />
|
||||||
</svg>
|
</svg>
|
||||||
</div>
|
</div>
|
||||||
<h3 class="text-xl font-subtitle font-bold text-anthracite mb-3">Sécurisé & Traçable</h3>
|
<h3 class="text-xl font-subtitle font-bold text-anthracite mb-3">Service du public</h3>
|
||||||
<p class="text-anthracite/70 font-sans text-sm leading-relaxed">Respect de l'intégrité des compétences et de la RGPD, sans biais lors de l'analyse des profils.</p>
|
<p class="text-anthracite/70 font-sans text-sm leading-relaxed">Donnez du sens à votre carrière en participant activement au développement et à l'attractivité de notre territoire.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Feature 3 -->
|
<!-- Feature 3 -->
|
||||||
<div class="p-8 bg-white rounded-2xl shadow-md shadow-anthracite/5 border-b-4 border-accent hover:-translate-y-2 transition-transform duration-300">
|
<div class="p-8 bg-white rounded-2xl shadow-md shadow-anthracite/5 border-b-4 border-accent hover:-translate-y-2 transition-transform duration-300">
|
||||||
<div class="w-14 h-14 bg-accent/10 rounded-xl flex items-center justify-center mb-6">
|
<div class="w-14 h-14 bg-accent/10 rounded-xl flex items-center justify-center mb-6">
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" class="h-7 w-7 text-accent" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
<svg xmlns="http://www.w3.org/2000/svg" class="h-7 w-7 text-accent" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
||||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 18h.01M8 21h8a2 2 0 002-2V5a2 2 0 00-2-2H8a2 2 0 00-2 2v14a2 2 0 002 2z" />
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z" />
|
||||||
</svg>
|
</svg>
|
||||||
</div>
|
</div>
|
||||||
<h3 class="text-xl font-subtitle font-bold text-accent mb-3">Expérience fluide</h3>
|
<h3 class="text-xl font-subtitle font-bold text-accent mb-3">Processus simplifié</h3>
|
||||||
<p class="text-anthracite/70 font-sans text-sm leading-relaxed">Une interface candidate repensée pour valoriser la marque employeur et simplifier la passation d'examens.</p>
|
<p class="text-anthracite/70 font-sans text-sm leading-relaxed">Postulez en quelques clics, suivez l'avancement de vos candidatures et passez vos évaluations directement en ligne.</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -176,6 +227,11 @@ defineProps({
|
|||||||
<p class="text-primary font-subtitle font-bold text-xs uppercase tracking-[0.1em]">
|
<p class="text-primary font-subtitle font-bold text-xs uppercase tracking-[0.1em]">
|
||||||
© {{ new Date().getFullYear() }} — Communauté d'Agglomération Béziers Méditerranée — Tous droits réservés
|
© {{ new Date().getFullYear() }} — Communauté d'Agglomération Béziers Méditerranée — Tous droits réservés
|
||||||
</p>
|
</p>
|
||||||
|
<div class="mt-4">
|
||||||
|
<Link :href="route('privacy-policy')" class="text-[10px] font-black uppercase tracking-widest text-primary/40 hover:text-primary transition-colors">
|
||||||
|
Politique de confidentialité & Mentions Légales
|
||||||
|
</Link>
|
||||||
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -6,11 +6,28 @@ use Illuminate\Support\Facades\Route;
|
|||||||
use Inertia\Inertia;
|
use Inertia\Inertia;
|
||||||
|
|
||||||
Route::get('/', function () {
|
Route::get('/', function () {
|
||||||
|
$latestJobs = \App\Models\JobPosition::with('tenant')
|
||||||
|
->where(function($q) {
|
||||||
|
$q->whereNull('expires_at')
|
||||||
|
->orWhere('expires_at', '>=', now());
|
||||||
|
})
|
||||||
|
->orderBy('created_at', 'desc')
|
||||||
|
->take(3)
|
||||||
|
->get()
|
||||||
|
->map(function($job) {
|
||||||
|
$job->description = strip_tags(\Illuminate\Support\Str::markdown($job->description));
|
||||||
|
return $job;
|
||||||
|
});
|
||||||
return Inertia::render('Welcome', [
|
return Inertia::render('Welcome', [
|
||||||
'canLogin' => Route::has('login'),
|
'canLogin' => Route::has('login'),
|
||||||
|
'latestJobs' => $latestJobs,
|
||||||
]);
|
]);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Route::get('/politique-de-confidentialite', function () {
|
||||||
|
return Inertia::render('Public/PrivacyPolicy');
|
||||||
|
})->name('privacy-policy');
|
||||||
|
|
||||||
use App\Models\Candidate;
|
use App\Models\Candidate;
|
||||||
use App\Models\Attempt;
|
use App\Models\Attempt;
|
||||||
|
|
||||||
@@ -20,27 +37,38 @@ Route::get('/dashboard', function () {
|
|||||||
$topCandidates = [];
|
$topCandidates = [];
|
||||||
|
|
||||||
if (auth()->user()->isAdmin()) {
|
if (auth()->user()->isAdmin()) {
|
||||||
|
$user = auth()->user();
|
||||||
|
$isHR = $user->role === 'gestionnaire_rh';
|
||||||
|
|
||||||
$allCandidates = Candidate::with(['attempts'])->get();
|
$allCandidates = Candidate::with(['attempts'])->get();
|
||||||
$stats = [
|
$stats = [
|
||||||
'total_candidates' => Candidate::count(),
|
'total_candidates' => Candidate::count(),
|
||||||
'selected_candidates' => Candidate::where('is_selected', true)->count(),
|
|
||||||
'finished_tests' => Attempt::whereNotNull('finished_at')->count(),
|
|
||||||
'average_score' => round($allCandidates->avg('weighted_score') ?? 0, 1),
|
|
||||||
'best_score' => round($allCandidates->max('weighted_score') ?? 0, 1),
|
|
||||||
];
|
];
|
||||||
|
|
||||||
$topCandidates = Candidate::with(['user', 'attempts'])
|
if (!$isHR) {
|
||||||
->get()
|
$stats['selected_candidates'] = Candidate::where('is_selected', true)->count();
|
||||||
->sortByDesc('weighted_score')
|
$stats['finished_tests'] = Attempt::whereNotNull('finished_at')->count();
|
||||||
->take(10)
|
$stats['average_score'] = round($allCandidates->avg('weighted_score') ?? 0, 1);
|
||||||
->map(function($candidate) {
|
$stats['best_score'] = round($allCandidates->max('weighted_score') ?? 0, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
$query = Candidate::with(['user', 'attempts']);
|
||||||
|
|
||||||
|
if ($isHR) {
|
||||||
|
// For HR, just show latest candidates, no specific "Top" ranking
|
||||||
|
$candidates = $query->latest()->take(10)->get();
|
||||||
|
} else {
|
||||||
|
$candidates = $query->get()->sortByDesc('weighted_score')->take(10);
|
||||||
|
}
|
||||||
|
|
||||||
|
$topCandidates = $candidates->map(function($candidate) use ($isHR) {
|
||||||
return [
|
return [
|
||||||
'id' => $candidate->id,
|
'id' => $candidate->id,
|
||||||
'name' => $candidate->user->name,
|
'name' => $candidate->user->name,
|
||||||
'email' => $candidate->user->email,
|
'email' => $candidate->user->email,
|
||||||
'status' => $candidate->status,
|
'status' => $candidate->status,
|
||||||
'weighted_score' => $candidate->weighted_score,
|
'weighted_score' => $isHR ? null : $candidate->weighted_score,
|
||||||
'ai_analysis' => $candidate->ai_analysis
|
'ai_analysis' => $isHR ? null : $candidate->ai_analysis
|
||||||
];
|
];
|
||||||
})
|
})
|
||||||
->values()
|
->values()
|
||||||
@@ -71,6 +99,11 @@ Route::get('/dashboard', function () {
|
|||||||
]);
|
]);
|
||||||
})->middleware(['auth', 'verified'])->name('dashboard');
|
})->middleware(['auth', 'verified'])->name('dashboard');
|
||||||
|
|
||||||
|
// Public Job Routes
|
||||||
|
Route::get('/jobs', [App\Http\Controllers\PublicJobApplicationController::class, 'index'])->name('jobs.index');
|
||||||
|
Route::get('/jobs/{jobPosition}', [App\Http\Controllers\PublicJobApplicationController::class, 'show'])->name('jobs.show');
|
||||||
|
Route::post('/jobs/{jobPosition}/apply', [App\Http\Controllers\PublicJobApplicationController::class, 'store'])->name('jobs.apply');
|
||||||
|
|
||||||
Route::middleware('auth')->group(function () {
|
Route::middleware('auth')->group(function () {
|
||||||
Route::get('/profile', [ProfileController::class, 'edit'])->name('profile.edit');
|
Route::get('/profile', [ProfileController::class, 'edit'])->name('profile.edit');
|
||||||
Route::patch('/profile', [ProfileController::class, 'update'])->name('profile.update');
|
Route::patch('/profile', [ProfileController::class, 'update'])->name('profile.update');
|
||||||
@@ -78,7 +111,7 @@ Route::middleware('auth')->group(function () {
|
|||||||
|
|
||||||
// Admin Routes
|
// Admin Routes
|
||||||
Route::middleware('admin')->prefix('admin')->name('admin.')->group(function () {
|
Route::middleware('admin')->prefix('admin')->name('admin.')->group(function () {
|
||||||
Route::get('/comparative', [\App\Http\Controllers\CandidateController::class, 'comparative'])->name('comparative');
|
Route::get('/comparative', [\App\Http\Controllers\CandidateController::class, 'comparative'])->middleware('restrict_hr')->name('comparative');
|
||||||
Route::get('/candidates/selected', [\App\Http\Controllers\CandidateController::class, 'selectedCandidates'])->name('candidates.selected');
|
Route::get('/candidates/selected', [\App\Http\Controllers\CandidateController::class, 'selectedCandidates'])->name('candidates.selected');
|
||||||
Route::get('/candidates/map', [\App\Http\Controllers\CandidateController::class, 'map'])->name('candidates.map');
|
Route::get('/candidates/map', [\App\Http\Controllers\CandidateController::class, 'map'])->name('candidates.map');
|
||||||
Route::post('/candidates/update-order', [\App\Http\Controllers\CandidateController::class, 'updateOrder'])->name('candidates.update-order');
|
Route::post('/candidates/update-order', [\App\Http\Controllers\CandidateController::class, 'updateOrder'])->name('candidates.update-order');
|
||||||
@@ -88,18 +121,19 @@ Route::middleware('auth')->group(function () {
|
|||||||
Route::patch('/candidates/{candidate}/position', [\App\Http\Controllers\CandidateController::class, 'updatePosition'])->name('candidates.update-position');
|
Route::patch('/candidates/{candidate}/position', [\App\Http\Controllers\CandidateController::class, 'updatePosition'])->name('candidates.update-position');
|
||||||
Route::patch('/candidates/{candidate}/tenant', [\App\Http\Controllers\CandidateController::class, 'updateTenant'])->name('candidates.update-tenant');
|
Route::patch('/candidates/{candidate}/tenant', [\App\Http\Controllers\CandidateController::class, 'updateTenant'])->name('candidates.update-tenant');
|
||||||
Route::patch('/candidates/{candidate}/toggle-selection', [\App\Http\Controllers\CandidateController::class, 'toggleSelection'])->name('candidates.toggle-selection');
|
Route::patch('/candidates/{candidate}/toggle-selection', [\App\Http\Controllers\CandidateController::class, 'toggleSelection'])->name('candidates.toggle-selection');
|
||||||
Route::post('/candidates/{candidate}/analyze', [\App\Http\Controllers\AIAnalysisController::class, 'analyze'])->name('candidates.analyze');
|
Route::post('/candidates/{candidate}/analyze', [\App\Http\Controllers\AIAnalysisController::class, 'analyze'])->middleware('restrict_hr')->name('candidates.analyze');
|
||||||
Route::post('/candidates/{candidate}/reset-password', [\App\Http\Controllers\CandidateController::class, 'resetPassword'])->name('candidates.reset-password');
|
Route::post('/candidates/{candidate}/reset-password', [\App\Http\Controllers\CandidateController::class, 'resetPassword'])->name('candidates.reset-password');
|
||||||
Route::get('/documents/{document}', [\App\Http\Controllers\DocumentController::class, 'show'])->name('documents.show');
|
Route::get('/documents/{document}', [\App\Http\Controllers\DocumentController::class, 'show'])->name('documents.show');
|
||||||
Route::get('/candidates/{candidate}/export-dossier', [\App\Http\Controllers\Admin\CandidateExportController::class, 'exportDossier'])->name('candidates.export-dossier');
|
Route::get('/candidates/{candidate}/export-dossier', [\App\Http\Controllers\Admin\CandidateExportController::class, 'exportDossier'])->name('candidates.export-dossier');
|
||||||
Route::get('/candidates/{candidate}/export-zip', [\App\Http\Controllers\Admin\CandidateExportController::class, 'exportZip'])->name('candidates.export-zip');
|
Route::get('/candidates/{candidate}/export-zip', [\App\Http\Controllers\Admin\CandidateExportController::class, 'exportZip'])->name('candidates.export-zip');
|
||||||
|
|
||||||
Route::resource('quizzes', \App\Http\Controllers\QuizController::class)->only(['index', 'store', 'show', 'update', 'destroy']);
|
Route::resource('quizzes', \App\Http\Controllers\QuizController::class)->middleware('restrict_hr')->only(['index', 'store', 'show', 'update', 'destroy']);
|
||||||
Route::resource('job-positions', \App\Http\Controllers\JobPositionController::class)->only(['index', 'store', 'update', 'destroy']);
|
Route::resource('job-positions', \App\Http\Controllers\JobPositionController::class)->only(['index', 'store', 'update', 'destroy']);
|
||||||
Route::resource('quizzes.questions', \App\Http\Controllers\QuestionController::class)->only(['store', 'update', 'destroy']);
|
Route::post('/job-positions/ai-fpt', [\App\Http\Controllers\Admin\JobPositionAiHelperController::class, 'generate'])->name('job-positions.ai-fpt');
|
||||||
|
Route::resource('quizzes.questions', \App\Http\Controllers\QuestionController::class)->middleware('restrict_hr')->only(['store', 'update', 'destroy']);
|
||||||
Route::resource('tenants', \App\Http\Controllers\TenantController::class)->only(['index', 'store', 'update', 'destroy']);
|
Route::resource('tenants', \App\Http\Controllers\TenantController::class)->only(['index', 'store', 'update', 'destroy']);
|
||||||
Route::resource('users', \App\Http\Controllers\UserController::class)->except(['show', 'create', 'edit']);
|
Route::resource('users', \App\Http\Controllers\UserController::class)->middleware('restrict_hr')->except(['show', 'create', 'edit']);
|
||||||
Route::post('/users/{user}/reset-password', [\App\Http\Controllers\UserController::class, 'resetPassword'])->name('users.reset-password');
|
Route::post('/users/{user}/reset-password', [\App\Http\Controllers\UserController::class, 'resetPassword'])->middleware('restrict_hr')->name('users.reset-password');
|
||||||
Route::get('/backup', [\App\Http\Controllers\BackupController::class, 'download'])->name('backup');
|
Route::get('/backup', [\App\Http\Controllers\BackupController::class, 'download'])->name('backup');
|
||||||
Route::delete('/attempts/{attempt}', [\App\Http\Controllers\AttemptController::class, 'destroy'])->name('attempts.destroy');
|
Route::delete('/attempts/{attempt}', [\App\Http\Controllers\AttemptController::class, 'destroy'])->name('attempts.destroy');
|
||||||
Route::patch('/answers/{answer}/score', [\App\Http\Controllers\AttemptController::class, 'updateAnswerScore'])->name('answers.update-score');
|
Route::patch('/answers/{answer}/score', [\App\Http\Controllers\AttemptController::class, 'updateAnswerScore'])->name('answers.update-score');
|
||||||
@@ -110,6 +144,11 @@ Route::middleware('auth')->group(function () {
|
|||||||
Route::get('/quizzes/{quiz}', [\App\Http\Controllers\AttemptController::class, 'show'])->name('quizzes.take');
|
Route::get('/quizzes/{quiz}', [\App\Http\Controllers\AttemptController::class, 'show'])->name('quizzes.take');
|
||||||
Route::post('/attempts/{attempt}/save', [\App\Http\Controllers\AttemptController::class, 'saveAnswer'])->name('attempts.save');
|
Route::post('/attempts/{attempt}/save', [\App\Http\Controllers\AttemptController::class, 'saveAnswer'])->name('attempts.save');
|
||||||
Route::post('/attempts/{attempt}/finish', [\App\Http\Controllers\AttemptController::class, 'finish'])->name('attempts.finish');
|
Route::post('/attempts/{attempt}/finish', [\App\Http\Controllers\AttemptController::class, 'finish'])->name('attempts.finish');
|
||||||
|
|
||||||
|
// Security Honeypots
|
||||||
|
Route::get('/documents/private', [\App\Http\Controllers\Api\CandidateHoneypotController::class, 'logDirectoryTraversal']);
|
||||||
|
Route::get('/documents/private/{filename}', [\App\Http\Controllers\Api\CandidateHoneypotController::class, 'downloadFakeFile']);
|
||||||
|
Route::patch('/api/candidate/me', [\App\Http\Controllers\Api\CandidateHoneypotController::class, 'logMassAssignment']);
|
||||||
});
|
});
|
||||||
|
|
||||||
require __DIR__.'/auth.php';
|
require __DIR__.'/auth.php';
|
||||||
|
|||||||
Reference in New Issue
Block a user