@extends('layouts.app') @section('title', 'Permissions - Détail') @section('header', 'Permissions des dossiers') @push('styles') @endpush @section('content') @php $statutLabels = ['pending' => ['En attente…', 'text-yellow-600'], 'running' => ['Scan en cours…', 'text-blue-600'], 'stopped' => ['Arrêté (partiel)', 'text-orange-600'], 'failed' => ['Échec', 'text-red-600'], 'completed' => ['Terminé', 'text-green-600']]; $enCours = false; $sections = [ 'sharepoint' => ['scan' => $spScan, 'enCours' => $spEnCours, 'folders' => $spFolders, 'arbreScan' => $spArbreScan, 'name' => 'SharePoint SRVPG', 'empty' => 'Aucune donnée dans la table des ACL.', 'totaux' => $spTotaux], 'partage' => ['scan' => $partageScan, 'enCours' => $partageEnCours, 'folders' => $partageFolders, 'arbreScan' => $partageArbreScan, 'name' => 'Serveur de fichiers', 'empty' => 'Aucune donnée dans la table des ACL.', 'totaux' => $partageTotaux], ]; if (!empty($type)) { $sections = array_filter($sections, fn($key) => $key === $type, ARRAY_FILTER_USE_KEY); } @endphp @foreach($sections as $type => $section) @php $s = $section['scan']; $ec = $section['enCours']; $folders = $section['folders']; $arbreScan = $section['arbreScan']; $running = $ec && in_array($ec->statut, ['pending', 'running']); $frozen = $ec && $ec->statut === 'running' && $ec->updated_at->diffInMinutes(now()) > 3; $stuck = $ec && $ec->statut === 'pending' && $ec->updated_at->diffInSeconds(now()) > 30; if ($running) $enCours = true; $totaux = $section['totaux']; @endphp
Scan en cours — les nouvelles données remplaceront l'ancien scan à la fin. @if($s && $s->id !== $ec->id) Résultats précédents conservés jusqu'à la fin du scan. @endif
Cliquez sur un dossier pour explorer ses permissions.
Chargement…
Aucun dossier scanné.
@else{{ $section['empty'] }}
@endif