Modificacion de prospecto a alumno y asignacion de grupos, coordinacion académica

This commit is contained in:
2026-03-23 15:48:23 -06:00
parent 58e27fc5fc
commit 1bcebeb8a1
43 changed files with 1551 additions and 96 deletions
+96
View File
@@ -11,7 +11,13 @@
<div class="card shadow mb-4">
<div class="card-header py-3">
<div class="d-sm-flex align-items-center justify-content-between">
@hasrole('Promotor')
<h6 class="m-0 font-weight-bold text-primary">Prospectos</h6>
@endrole
@hasrole('Control escolar')
<h6 class="m-0 font-weight-bold text-primary">Alumnos</h6>
@endrole
@can('alumno.create')
<button onclick="Livewire.dispatch('create-prospecto')" class="d-sm-inline-block btn btn-sm btn-primary shadow-sm"><i class="fas fa-download fa-sm text-white-50"></i> Agregar</button>
@endcan
@@ -19,6 +25,8 @@
</div>
<div class="card-body row">
@hasrole('Promotor')
<div class="col-sm-2 overflow-auto" style="height: 80vh">
<div class="list-group">
@forelse ($alumnos as $alumno)
@@ -56,6 +64,94 @@
</div>
@livewire('modal-prospecto')
@endrole
@hasrole('Control escolar')
<table id="tcont" class="table table-striped table-bordered nowrap table-hover" style="width:100%;">
<thead>
<tr>
<th>Id</th>
<th>Alumno</th>
<th>Campus</th>
<th>Status</th>
<th>Opciones</th>
</tr>
</thead>
<tbody>
@forelse ($alumnos as $alumno)
<tr style="width:100%">
<td>{{ $alumno->id }}</td>
<td>
@foreach($alumno->alumnos as $user)
<a href="{{ route('alumno.show', $alumno->id) }}">
{{ $user->name }}
</a>
@endforeach
</td>
<td class="text-center">
@foreach($alumno->alumnos as $user)
@forelse($user->plantelUsuarios as $plantel)
<span class="badge bg-primary text-white">
{{ $plantel->name }}
</span>
@empty
<span class="text-muted">Sin plantel</span>
@endforelse
@endforeach
</td>
<td class="text-center">
@if ($alumno->status==2) <span class="badge bg-warning text-white"> @endif
@if ($alumno->status==3) <span class="badge bg-success text-white"> @endif
@if ($alumno->status==4) <span class="badge bg-danger text-white"> @endif
@if ($alumno->status==5) <span class="badge bg-dark text-white"> @endif
@if ($alumno->status==6) <span class="badge text-white" style="background-color: #630ac9"> @endif
{{ $alumno->statusAlumno->name }}
</span>
</td>
<td class="row mx-auto">
@can('alumno.edit')
<div class="col-sm-6 col-md-6">
<a class="btn btn-primary" href="{{ route('alumno.edit',$alumno->id) }}">
Edit
</a>
</div>
@endcan
@can('alumno.destroy')
<div class="col-sm-6 col-md-6">
<form class="delete-form" action="{{ route('alumno.destroy',$alumno->id) }}" method="POST">
@csrf
@method('DELETE')
<input type="submit" value="DELETE" class="btn btn-danger">
</form>
</div>
@endcan
</td>
</tr>
@empty
<tr>
<td colspan="4">Sin alumnos.</td>
</tr>
@endforelse
</tbody>
</table>
@endrole
</div>
</div>