54 lines
1.3 KiB
PHP
54 lines
1.3 KiB
PHP
<!doctype html>
|
|
<html lang="es">
|
|
<head>
|
|
<title>escuelas</title>
|
|
</head>
|
|
<body>
|
|
|
|
<ul>
|
|
@foreach($escuelas as $n)
|
|
<li>
|
|
<strong>{{ $esc->id }}</strong>
|
|
— {{ $esc->nombre }}
|
|
— {{ $esc->imail }}
|
|
— {{ $esc->contraña }}
|
|
— {{ $rol-> }}
|
|
(ID: {{ $esc->id}})
|
|
|
|
|
@if($esc->deleted_at == null)
|
|
<a href="{{ route('escuelas.show', $esc->id_escuelas) }}">Ver Más</a>
|
|
|
|
|
<a href="{{ route('escuelas.edit', $esc->id_escuelas) }}">Editar </a>
|
|
<form action="{{ route('escuelas.destroy', $esc->id_escuelas) }}"
|
|
method="POST" >
|
|
@csrf
|
|
@method('DELETE')
|
|
<button onclick="return confirm('¿Eliminar esta ecuelas?')">
|
|
Eliminar
|
|
</button>
|
|
</form>
|
|
@else
|
|
<form action="{{ route('escuelas.restaurar', $esc->id_escuelas) }}"
|
|
method="POST" >
|
|
@csrf
|
|
@method('PUT')
|
|
<button onclick="return confirm('¿Restaurar esta escuela?')">
|
|
Restaurar esc
|
|
</button>
|
|
</form>
|
|
|
|
@endif
|
|
|
|
|
|
|
|
{{--<a href="{{ route('escuelas.edit', $esc->id_escuelas) }}">Editar</a>
|
|
--}}
|
|
</li>
|
|
@endforeach
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
|
|
</body>
|
|
</html> |