Commit ec93a786 authored by alekeyrivas's avatar alekeyrivas
Browse files

Ya agrega y elimina, solo falta editar

parent f30f9c78
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -22,7 +22,7 @@ public function store(Request $request)
    
        Profesion::create($validated);
    
        return redirect()->route('catalogos.profesion.get');
        return redirect()->route('catalogos.profesion.get')->with('success', 'Profesión creada exitosamente.');
    }    

    public function update(Request $request, $id)
+1 −1
Original line number Diff line number Diff line
@@ -73,7 +73,7 @@
                        <div class="fixed inset-0 bg-[black]/60 z-[999] hidden overflow-y-auto" :class="open && '!block'">
                            <div class="flex items-start justify-center min-h-screen px-4" @click.self="open = false">
                                <div x-show="open" x-transition x-transition.duration.300 class="panel border-0 py-1 px-4 rounded-lg overflow-hidden w-full max-w-sm my-8">
                                    <div class="flex items-center justify-between p-5 font-semibold text-lg dark:text-white">Crear nueva caracteristica
                                    <div class="flex items-center justify-between p-5 font-semibold text-lg dark:text-white">Crear nuevo grupo
                                        <button type="button" @click="toggle" class="text-white-dark hover:text-dark">
                                            <svg xmlns="http://www.w3.org/2000/svg" width="24px" height="24px" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="h-6 w-6">
                                                <line x1="18" y1="6" x2="6" y2="18"></line>
+176 −203

File changed.

Preview size limit exceeded, changes collapsed.

+1 −1
Original line number Diff line number Diff line
@@ -35,7 +35,7 @@
    Route::delete('/cargos/{id}', [CargoController::class, 'destroy'])->name('cargos.destroy');

    Route::get('/profesion', [ProfesionController::class, 'index'])->name('profesion.get');
    Route::post('/profesion', [ProfesionController::class, 'store'])->name('profesion.store');
    Route::post('/profesiones', [ProfesionController::class, 'store'])->name('profesion.store');
    Route::put('/profesion/{id}', [ProfesionController::class, 'update'])->name('profesion.update');
    Route::delete('/profesion/{id}', [ProfesionController::class, 'destroy'])->name('profesion.destroy');