@extends('layouts.admin')
@section('title','Lixeira')
@section('content')
<h1>Lixeira</h1>
<div class="card"><h2>Clientes removidos</h2><table><tbody>@foreach($clients as $item)<tr><td>{{ $item->name }}</td><td><form method="POST" action="{{ route('admin.trash.clients.restore', $item->id) }}">@csrf<button type="submit">Restaurar</button></form></td></tr>@endforeach</tbody></table></div>
<div class="card"><h2>Casos removidos</h2><table><tbody>@foreach($cases as $item)<tr><td>{{ $item->title }}</td><td><form method="POST" action="{{ route('admin.trash.cases.restore', $item->id) }}">@csrf<button type="submit">Restaurar</button></form></td></tr>@endforeach</tbody></table></div>
<div class="card"><h2>Consentimentos removidos</h2><table><tbody>@foreach($consents as $item)<tr><td>{{ $item->subject_name }}</td><td><form method="POST" action="{{ route('admin.trash.consents.restore', $item->id) }}">@csrf<button type="submit">Restaurar</button></form></td></tr>@endforeach</tbody></table></div>
<div class="card"><h2>Evidências removidas</h2><table><tbody>@foreach($evidences as $item)<tr><td>{{ $item->title }}</td><td><form method="POST" action="{{ route('admin.trash.evidences.restore', $item->id) }}">@csrf<button type="submit">Restaurar</button></form></td></tr>@endforeach</tbody></table></div>
@endsection
