Alta de modificaciones de grupo con alumbnos y docentes

This commit is contained in:
2026-04-18 16:00:39 -06:00
parent c502d047e9
commit 2d73e8a2b0
34 changed files with 1256 additions and 247 deletions
+2 -2
View File
@@ -9,7 +9,7 @@
<div class="card-header py-3">
<div class="d-sm-flex align-items-center justify-content-between">
<h6 class="m-0 font-weight-bold text-primary">Crear documentación</h6>
<a href="{{route('documentotipo.index')}}" class="d-sm-inline-block btn btn-sm btn-primary shadow-sm"><i class="fas fa-download fa-sm text-white-50"></i> Regresar</a>
<a href="{{route('documentoTipo.index')}}" class="d-sm-inline-block btn btn-sm btn-primary shadow-sm"><i class="fas fa-download fa-sm text-white-50"></i> Regresar</a>
</div>
</div>
@@ -23,7 +23,7 @@
</div>
@endif
<form method="POST" action="{{ route('documentotipo.store') }}">
<form method="POST" action="{{ route('documentoTipo.store') }}">
@csrf
{{-- NOMBRE --}}
+8 -8
View File
@@ -9,7 +9,7 @@
<div class="card-header py-3">
<div class="d-sm-flex align-items-center justify-content-between">
<h6 class="m-0 font-weight-bold text-primary">Editar documentación</h6>
<a href="{{route('documentotipo.index')}}" class="d-sm-inline-block btn btn-sm btn-primary shadow-sm"><i class="fas fa-download fa-sm text-white-50"></i> Regresar</a>
<a href="{{route('documentoTipo.index')}}" class="d-sm-inline-block btn btn-sm btn-primary shadow-sm"><i class="fas fa-download fa-sm text-white-50"></i> Regresar</a>
</div>
</div>
@@ -19,19 +19,19 @@
<strong>{{session('info')}}</strong>
</div>
@endif
<form action="{{route('documentotipo.update',$documentotipo->id)}}" method="POST">
<form action="{{route('documentoTipo.update',$documentoTipo->id)}}" method="POST">
@method('PUT')
@csrf
{{-- NOMBRE --}}
<div class="mb-3">
<label>Nombre</label>
<input type="text" name="name" class="form-control" value="{{$documentotipo->name}}" required>
<input type="text" name="name" class="form-control" value="{{$documentoTipo->name}}" required>
</div>
{{-- SLUG --}}
<div class="mb-3">
<label>Slug</label>
<input type="text" name="slug" class="form-control" value="{{$documentotipo->slug}}" required>
<input type="text" name="slug" class="form-control" value="{{$documentoTipo->slug}}" required>
</div>
{{-- EXTENSIONES --}}
@@ -40,21 +40,21 @@
<div class="form-check">
<label>
<input type="checkbox" name="extensiones[]" value="pdf" class="form-check-input cb" {{ in_array('pdf', $documentotipo->extensiones ?? []) ? 'checked' : '' }}>
<input type="checkbox" name="extensiones[]" value="pdf" class="form-check-input cb" {{ in_array('pdf', $documentoTipo->extensiones ?? []) ? 'checked' : '' }}>
PDF
</label>
</div>
<div class="form-check">
<label>
<input type="checkbox" name="extensiones[]" value="jpg" class="form-check-input cb" {{ in_array('jpg', $documentotipo->extensiones ?? []) ? 'checked' : '' }}>
<input type="checkbox" name="extensiones[]" value="jpg" class="form-check-input cb" {{ in_array('jpg', $documentoTipo->extensiones ?? []) ? 'checked' : '' }}>
JPG
</label>
</div>
<div class="form-check">
<label>
<input type="checkbox" name="extensiones[]" value="png" class="form-check-input cb" {{ in_array('png', $documentotipo->extensiones ?? []) ? 'checked' : '' }}>
<input type="checkbox" name="extensiones[]" value="png" class="form-check-input cb" {{ in_array('png', $documentoTipo->extensiones ?? []) ? 'checked' : '' }}>
PNG
</label>
</div>
@@ -70,7 +70,7 @@
<input type="checkbox" class="form-check-input cb"
id="n-{{ $nivel->id }}"
name="nivels[]" value="{{ $nivel->id }}"
{{ $documentotipo->niveles->contains($nivel->id) ? 'checked' : '' }}
{{ $documentoTipo->niveles->contains($nivel->id) ? 'checked' : '' }}
>
<label class="form-check-label" for="n-{{ $nivel->id }}">
{{ $nivel->name }}
+5 -5
View File
@@ -13,7 +13,7 @@
<div class="d-sm-flex align-items-center justify-content-between">
<h6 class="m-0 font-weight-bold text-primary">Documentación</h6>
@can('documentoTipo.create')
<a href="{{route('documentotipo.create')}}" class="d-sm-inline-block btn btn-sm btn-primary shadow-sm"><i class="fas fa-download fa-sm text-white-50"></i> Crear documentación</a>
<a href="{{route('documentoTipo.create')}}" class="d-sm-inline-block btn btn-sm btn-primary shadow-sm"><i class="fas fa-download fa-sm text-white-50"></i> Crear documentación</a>
@endcan
</div>
</div>
@@ -29,18 +29,18 @@
</tr>
</thead>
<tbody>
@forelse ($documentotipos as $row)
@forelse ($documentoTipos as $row)
<tr style="width:100%">
<td>{{$row->id}}</td>
<td><a href="{{route('documentotipo.show',$row->id)}}">{{$row->name}}</a></td>
<td><a href="{{route('documentoTipo.show',$row->id)}}">{{$row->name}}</a></td>
<td class="row mx-auto">
@can('documentoTipo.edit')
<div class="col-sm-6 col-md-6"><a class="btn btn-primary" href="{{route('documentotipo.edit',$row->id)}}">Edit</a></div>
<div class="col-sm-6 col-md-6"><a class="btn btn-primary" href="{{route('documentoTipo.edit',$row->id)}}">Edit</a></div>
@endcan
@can('documentoTipo.destroy')
<div class="col-sm-6 col-md-6">
<form class="delete-form" action="{{route('documentotipo.destroy',$row->id)}}" method="POST">
<form class="delete-form" action="{{route('documentoTipo.destroy',$row->id)}}" method="POST">
@csrf
@method('DELETE')
<input type="submit" value="DELETE" class="btn btn-danger">