45 lines
1.5 KiB
PHP
Executable File
45 lines
1.5 KiB
PHP
Executable File
@extends('layouts.app')
|
|
|
|
@section('contenido')
|
|
<h2>Ingresar Nueva Consulta Académica</h2>
|
|
|
|
@if ($errors->any())
|
|
<div style="color: red; margin-bottom: 15px;">
|
|
<ul>
|
|
@foreach ($errors->all() as $error)
|
|
<li>{{ $error }}</li>
|
|
@endforeach
|
|
</ul>
|
|
</div>
|
|
@endif
|
|
|
|
<form action="/consultas" method="POST" enctype="multipart/form-data">
|
|
@csrf
|
|
<div style="margin-bottom: 15px;">
|
|
<label>Asunto:</label><br>
|
|
<input type="text" name="asunto" style="width: 100%; padding: 8px;" value="{{ old('asunto') }}">
|
|
</div>
|
|
|
|
<div style="margin-bottom: 15px;">
|
|
<label>Categoría:</label><br>
|
|
<select name="categoria" style="width: 100%; padding: 8px;">
|
|
<option value="Trabajo Práctico">Trabajo Práctico</option>
|
|
<option value="Aula Virtual">Aula Virtual</option>
|
|
<option value="Regularidad">Regularidad</option>
|
|
</select>
|
|
</div>
|
|
|
|
<div style="margin-bottom: 15px;">
|
|
<label>Mensaje:</label><br>
|
|
<textarea name="mensaje" rows="5" style="width: 100%; padding: 8px;">{{ old('mensaje') }}</textarea>
|
|
</div>
|
|
|
|
<div style="margin-bottom: 15px;">
|
|
<label>Adjuntar Captura (Opcional):</label><br>
|
|
<input type="file" name="archivo_adjunto">
|
|
</div>
|
|
|
|
<button type="submit" class="btn">Enviar Consulta</button>
|
|
</form>
|
|
@endsection
|