juli_proyecto/resources/views/turnos/indexPlano.blade.php
2026-06-23 00:09:24 -03:00

53 lines
1.3 KiB
PHP

<!doctype html>
<html lang="es">
<head>
<title>Turnos</title>
</head>
<body>
<p>
<a href="{{ route('turnos.create') }}">Nuevo turno</a>
</p>
<ul>
@foreach($turnos as $turno)
<li>
<strong>{{ $turno->nombre }}</strong>
{{ $turno->apellido }}
{{ $turno->dni }}
{{ $turno->domicilio }}
(ID: {{ $turno->id_turnos }})
&nbsp;|&nbsp;
@if($turno->deleted_at == null)
<a href="{{ route('turnos.show', $turno->id_turnos) }}">Ver Más</a>
&nbsp;|&nbsp;
<a href="{{ route('turnos.edit', $turno->id_turnos) }}">Editar </a>
<form action="{{ route('turnos.destroy', $turno->id_turnos) }}"
method="POST" >
@csrf
@method('DELETE')
<button onclick="return confirm('¿Eliminar este turno?')">
Eliminar
</button>
</form>
@else
<form action="{{ route('turnos.restaurar', $turno->id_turnos) }}"
method="POST" >
@csrf
@method('PUT')
<button onclick="return confirm('¿Restaurar este turno?')">
Restaurar Turno
</button>
</form>
@endif
{{--<a href="{{ route('categorias.edit', $cat->id_categoria) }}">Editar</a>
--}}
</li>
@endforeach
</ul>
</body>
</html>