This repository has been archived by the owner on Apr 14, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Lara121801
committed
Nov 24, 2022
1 parent
31aa89f
commit f39cf03
Showing
6 changed files
with
194 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,56 @@ | ||
<x-layouts.app> | ||
|
||
<div class="container-fluid"> | ||
<div class="row"> | ||
<div class="col-md-9"> | ||
<div class="card"> | ||
<div class="card-header"> | ||
<h2>Historias</h2> | ||
</div> | ||
<div class="card-body"> | ||
<a href="{{ url('/Historial/create') }}" class="btn btn-success btn-sm" title="Add New Student"> | ||
<i class="fa fa-plus" aria-hidden="true"></i> Nueva Historia | ||
</a> | ||
<br/> | ||
<br/> | ||
<div class="table-responsive"> | ||
<table class="table"> | ||
<thead> | ||
<tr> | ||
<th>Persona</th> | ||
<th>Sede</th> | ||
<th>Medico</th> | ||
<th>Fecha del Historial</th> | ||
<th>Detalles de la Historia </th> | ||
<th>Acciones</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
@foreach ($Historias as $Historia) | ||
<tr> | ||
<td>{{ $Historia->personas->nombre_per ." ".$Historia->personas->apellido_pa_per ." ".$Historia->personas->apellido_ma_per }}</td> | ||
<td>{{ $Historia->sede->nombre_sede }}</td> | ||
<td>{{ $Historia->users->persona->nombre_per ." ". $Historia->users->persona->apellido_pa_per ." ". $Historia->users->persona->apellido_ma_per}}</td> | ||
<td>{{ $Historia->fecha_historial}}</td> | ||
<td>{{ $Historia->detalles_historial }}</td> | ||
<td> | ||
<a href="{{ url('/Historial' . '/' . $Historia['id_historial']) }}" title="View Student"><button class="btn btn-info btn-sm"><i class="fa fa-eye" aria-hidden="true"></i> Mostrar</button></a> <a href="{{ url('/Historial' . '/' . $Historia->id_historial . '/edit') }}" title="Edit Student"><button class="btn btn-primary btn-sm"><i class="fa fa-pencil-square-o" aria-hidden="true"></i> Editar</button></a> | ||
<form method="POST" action="{{ url('/Historial' . '/' . $Historia->id_historial) }}" accept-charset="UTF-8" style="display:inline"> | ||
{{ method_field('DELETE') }} | ||
{{ csrf_field() }} | ||
<button type="submit" class="btn btn-danger btn-sm" title="Delete Student" onclick="return confirm("Confirm delete?")"><i class="fa fa-trash-o" aria-hidden="true"></i> Borrar</button> | ||
</form> | ||
</td> | ||
</tr> | ||
@endforeach | ||
</tbody> | ||
</table> | ||
<div class="container-fluid"> | ||
<div class="row"> | ||
<div class="col-md-9"> | ||
<div class="card"> | ||
<div class="card-header"> | ||
<h2>Historias</h2> | ||
</div> | ||
<div class="card-body"> | ||
<a href="{{ url('/Historial/create') }}" class="btn btn-success btn-sm" title="Add New Student"> | ||
<i class="fa fa-plus" aria-hidden="true"></i> Nueva Historia | ||
</a> | ||
<br/> | ||
<br/> | ||
<div class="table-responsive"> | ||
<table class="table"> | ||
<thead> | ||
<tr> | ||
<th>Persona</th> | ||
<th>Sede</th> | ||
<th>Medico</th> | ||
<th>Fecha del Historial</th> | ||
<th>Detalles de la Historia </th> | ||
<th>Acciones</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
@foreach ($Historias as $Historia) | ||
<tr> | ||
<td>{{ $Historia->personas->nombre_per ." ".$Historia->personas->apellido_pa_per ." ".$Historia->personas->apellido_ma_per }}</td> | ||
<td>{{ $Historia->sede->nombre_sede }}</td> | ||
<td>{{ $Historia->users->persona->nombre_per ." ". $Historia->users->persona->apellido_pa_per ." ". $Historia->users->persona->apellido_ma_per}}</td> | ||
<td>{{ $Historia->fecha_historial}}</td> | ||
<td>{{ $Historia->detalles_historial }}</td> | ||
<td> | ||
<a href="{{ url('/Historial' . '/' . $Historia['id_historial']) }}" title="View Student"><button class="btn btn-info btn-sm"><i class="fa fa-eye" aria-hidden="true"></i> Mostrar</button></a> | ||
<a href="{{ url('/Historial' . '/' . $Historia->id_historial . '/edit') }}" title="Edit Student"><button class="btn btn-primary btn-sm"><i class="fa fa-pencil-square-o" aria-hidden="true"></i> Editar</button></a> | ||
<form method="POST" action="{{ url('/Historial' . '/' . $Historia->id_historial) }}" accept-charset="UTF-8" style="display:inline"> | ||
{{ method_field('DELETE') }} | ||
{{ csrf_field() }} | ||
<button type="submit" class="btn btn-danger btn-sm" title="Delete Student" onclick="return confirm("Confirm delete?")"><i class="fa fa-trash-o" aria-hidden="true"></i> Borrar</button> | ||
</form> | ||
</td> | ||
</tr> | ||
@endforeach | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
</x-layouts.app> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,81 @@ | ||
<x-layouts.app> | ||
<x-layouts.app> | ||
<div class="container-fluid"> | ||
<div class="row"> | ||
<div class="col"> | ||
<div class="card"> | ||
<div class="card-header"> | ||
<h2>Usuarios</h2> | ||
</div> | ||
<div class="card-body"> | ||
<a href="{{ url('/Usuario/create') }}" class="btn btn-success btn-sm" title="Añadir nueva usuario"> | ||
<i class="fa fa-plus" aria-hidden="true"></i> Nueva Usuario | ||
</a> | ||
<br> | ||
<br> | ||
<div class="table-responsive"> | ||
<table class="table"> | ||
<thead> | ||
<tr> | ||
<th>Nombre</th> | ||
<th>AP</th> | ||
<th>AM</th> | ||
<th>CI</th> | ||
<th>Celular</th> | ||
<th>Fecha Nac</th> | ||
<th># Seguro</th> | ||
<th>Es donante</th> | ||
<th>Tipo Sangre</th> | ||
<th>Pariente</th> | ||
<th>Username</th> | ||
<th>Correo</th> | ||
<th>Acciones</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
@foreach ($usuarios as $usuario) | ||
@if ($usuario->estado==1) | ||
<tr> | ||
<td>{{ $usuario->persona->nombre_per }}</td> | ||
<td>{{ $usuario->persona->apellido_pa_per }}</td> | ||
<td>{{ $usuario->persona->apellido_ma_per }}</td> | ||
<td>{{ $usuario->persona->ci_per }}</td> | ||
<td>{{ $usuario->persona->cel_per }}</td> | ||
<td>{{ $usuario->persona->fecha_nac }}</td> | ||
<td>{{ $usuario->persona->num_seguro }}</td> | ||
<td>{{ $usuario->persona->donante }}</td> | ||
<td>{{ $usuario->persona->tipo_sangre->nombre_tipo_sangre }}</td> | ||
<td>{{ $usuario->persona->pariente->nombre_per }}</td> | ||
|
||
</x-layouts.app> | ||
<td>{{ $usuario->username }}</td> | ||
|
||
<td>{{ $usuario->email }}</td> | ||
|
||
<td> | ||
<a href="" | ||
title="Edit Student"><button class="btn btn-primary btn-sm"><i | ||
class="fa fa-pencil-square-o" aria-hidden="true"></i> | ||
Editar</button></a> | ||
<form method="POST" action="{{ url('/Usuario' . '/' . $usuario->id) }}" | ||
accept-charset="UTF-8" style="display:inline"> | ||
@method('DELETE') | ||
@csrf | ||
<button type="submit" class="btn btn-danger btn-sm" | ||
title="Delete Student" | ||
onclick="return confirm("Confirm delete?")"><i | ||
class="fa fa-trash-o" aria-hidden="true"></i> | ||
Borrar</button> | ||
</form> | ||
</td> | ||
</tr> | ||
@endif | ||
|
||
@endforeach | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</x-layouts.app> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters