@extends('layouts.admin')
@section('title','Dashboard')
@section('content')
<h1>Dashboard</h1>
<div class="cards">
    <div class="card"><strong>Clientes</strong><div>{{ $clientsCount }}</div></div>
    <div class="card"><strong>Casos</strong><div>{{ $casesCount }}</div></div>
    <div class="card"><strong>Casos abertos</strong><div>{{ $openCasesCount }}</div></div>
    <div class="card"><strong>Consentimentos</strong><div>{{ $consentsCount }}</div></div>
    <div class="card"><strong>Evidências</strong><div>{{ $evidencesCount }}</div></div>
    <div class="card"><strong>Evidências restritas</strong><div>{{ $restrictedEvidencesCount }}</div></div>
</div>
<div class="card">
    <h2>Logs recentes</h2>
    <table>
        <thead><tr><th>Módulo</th><th>Ação</th><th>Descrição</th><th>Data</th></tr></thead>
        <tbody>@foreach($recentLogs as $log)<tr><td>{{ $log->module }}</td><td>{{ $log->action }}</td><td>{{ $log->description }}</td><td>{{ $log->created_at }}</td></tr>@endforeach</tbody>
    </table>
</div>
@endsection
