22 changed files with 618 additions and 129 deletions
			
			
		@ -0,0 +1,96 @@ | 
				
			|||
<?php | 
				
			|||
 | 
				
			|||
namespace App\Http\Controllers; | 
				
			|||
 | 
				
			|||
use App\Models\TiposLicencias; | 
				
			|||
use Illuminate\Http\Request; | 
				
			|||
 | 
				
			|||
class TiposLicenciasController extends Controller | 
				
			|||
{ | 
				
			|||
    /** | 
				
			|||
     * Display a listing of the resource. | 
				
			|||
     */ | 
				
			|||
    public function index(Request $request) | 
				
			|||
    { | 
				
			|||
        $busqueda = $request->busqueda; | 
				
			|||
 | 
				
			|||
    if($busqueda) { | 
				
			|||
        $tiposLicencias = TiposLicencias::where('nombre', 'LIKE', "%{$busqueda}%")->get(); | 
				
			|||
 | 
				
			|||
        if($tiposLicencias->count() == 0) { | 
				
			|||
            return redirect()->route('tiposLicencias.index') | 
				
			|||
                           ->with('error', 'No existe ningún tipo de licencia con el nombre "' . $busqueda . '". Por favor, inténtalo de nuevo.'); | 
				
			|||
        } | 
				
			|||
 | 
				
			|||
        // Si solo hay un tipo de licencia, mostrar sus detalles | 
				
			|||
        if($tiposLicencias->count() == 1) { | 
				
			|||
            $tipoLicencia = $tiposLicencias->first(); | 
				
			|||
            return redirect()->route('tiposLicencias.edit', $tipoLicencia->id); | 
				
			|||
        } | 
				
			|||
 | 
				
			|||
        // Si hay múltiples coincidencias, mostrar la lista filtrada | 
				
			|||
        return view('tiposLicencias', ["tiposLicencias" => $tiposLicencias]); | 
				
			|||
    } | 
				
			|||
 | 
				
			|||
        // Si no hay búsqueda, mostrar todos los tipos de licencias | 
				
			|||
        $tiposLicencias = TiposLicencias::all(); | 
				
			|||
        return view('tiposLicencias', ["tiposLicencias" => $tiposLicencias]); | 
				
			|||
    } | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * Show the form for creating a new resource. | 
				
			|||
     */ | 
				
			|||
    public function create() | 
				
			|||
    { | 
				
			|||
        $tiposLicencias = TiposLicencias::all(); | 
				
			|||
        return view('tiposLicenciasCrearEditar',['tiposLicencias'=>$tiposLicencias]); | 
				
			|||
    } | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * Store a newly created resource in storage. | 
				
			|||
     */ | 
				
			|||
    public function store(Request $request) | 
				
			|||
    { | 
				
			|||
        $tipoLicencia = new TiposLicencias($request->all()); | 
				
			|||
        $tipoLicencia->save(); | 
				
			|||
        return redirect()->route('tiposLicencias.index')->with('success', 'Tipo de licencia creado exitosamente.'); | 
				
			|||
    } | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * Display the specified resource. | 
				
			|||
     */ | 
				
			|||
    public function show(TiposLicencias $tipoLicencia) | 
				
			|||
    { | 
				
			|||
        // | 
				
			|||
    } | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * Show the form for editing the specified resource. | 
				
			|||
     */ | 
				
			|||
    public function edit($id) | 
				
			|||
    { | 
				
			|||
        $tipoLicencia = TiposLicencias::find($id); | 
				
			|||
        return view('tiposLicenciasCrearEditar',['tipoLicencia'=>$tipoLicencia]); | 
				
			|||
    } | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * Update the specified resource in storage. | 
				
			|||
     */ | 
				
			|||
    public function update(Request $request, $id) | 
				
			|||
    { | 
				
			|||
        $tipoLicencia = TiposLicencias::find($id); | 
				
			|||
        $tipoLicencia->fill($request->all()); | 
				
			|||
        $tipoLicencia->save(); | 
				
			|||
        return redirect()->route('tiposLicencias.index')->with('success', 'Tipo de licencia actualizado exitosamente.'); | 
				
			|||
    } | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * Remove the specified resource from storage. | 
				
			|||
     */ | 
				
			|||
    public function destroy($id) | 
				
			|||
    { | 
				
			|||
        $tipoLicencia = TiposLicencias::find($id); | 
				
			|||
        $tipoLicencia->delete(); | 
				
			|||
        return redirect()->route('tiposLicencias.index')->with('success', 'Tipo de licencia eliminado exitosamente.'); | 
				
			|||
    } | 
				
			|||
} | 
				
			|||
@ -0,0 +1,11 @@ | 
				
			|||
<?php | 
				
			|||
 | 
				
			|||
namespace App\Models; | 
				
			|||
 | 
				
			|||
use Illuminate\Database\Eloquent\Factories\HasFactory; | 
				
			|||
use Illuminate\Database\Eloquent\Model; | 
				
			|||
 | 
				
			|||
class marc extends Model | 
				
			|||
{ | 
				
			|||
    use HasFactory; | 
				
			|||
} | 
				
			|||
@ -0,0 +1,15 @@ | 
				
			|||
<?php | 
				
			|||
 | 
				
			|||
namespace App\Models; | 
				
			|||
 | 
				
			|||
use Illuminate\Database\Eloquent\Factories\HasFactory; | 
				
			|||
use Illuminate\Database\Eloquent\Model; | 
				
			|||
 | 
				
			|||
class tiposLicencias extends Model | 
				
			|||
{ | 
				
			|||
    use HasFactory; | 
				
			|||
 | 
				
			|||
    protected $table = 'tiposLicencias'; | 
				
			|||
 | 
				
			|||
    protected $fillable = ['nombre']; | 
				
			|||
} | 
				
			|||
@ -0,0 +1,23 @@ | 
				
			|||
<?php | 
				
			|||
 | 
				
			|||
namespace Database\Factories; | 
				
			|||
 | 
				
			|||
use Illuminate\Database\Eloquent\Factories\Factory; | 
				
			|||
 | 
				
			|||
/** | 
				
			|||
 * @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\tiposLicencias> | 
				
			|||
 */ | 
				
			|||
class TiposLicenciasFactory extends Factory | 
				
			|||
{ | 
				
			|||
    /** | 
				
			|||
     * Define the model's default state. | 
				
			|||
     * | 
				
			|||
     * @return array<string, mixed> | 
				
			|||
     */ | 
				
			|||
    public function definition(): array | 
				
			|||
    { | 
				
			|||
        return [ | 
				
			|||
            // | 
				
			|||
        ]; | 
				
			|||
    } | 
				
			|||
} | 
				
			|||
@ -0,0 +1,62 @@ | 
				
			|||
<?php | 
				
			|||
 | 
				
			|||
use Illuminate\Database\Migrations\Migration; | 
				
			|||
use Illuminate\Database\Schema\Blueprint; | 
				
			|||
use Illuminate\Support\Facades\Schema; | 
				
			|||
 | 
				
			|||
return new class extends Migration | 
				
			|||
{ | 
				
			|||
    /** | 
				
			|||
     * Run the migrations. | 
				
			|||
     */ | 
				
			|||
    public function up(): void | 
				
			|||
    { | 
				
			|||
        Schema::create('marcs', function (Blueprint $table) { | 
				
			|||
            $table->id(); | 
				
			|||
            $table->string('name'); | 
				
			|||
            $table->timestamps(); | 
				
			|||
        }); | 
				
			|||
        DB::table('marcs')->insert([ | 
				
			|||
            ['name' => 'chevrolet'], | 
				
			|||
            ['name' => 'nissan'], | 
				
			|||
            ['name' => 'ford'], | 
				
			|||
            ['name' => 'toyota'], | 
				
			|||
            ['name' => 'honda'], | 
				
			|||
            ['name' => 'bmw'], | 
				
			|||
            ['name' => 'audi'], | 
				
			|||
            ['name' => 'mercedes-benz'], | 
				
			|||
            ['name' => 'volkswagen'], | 
				
			|||
            ['name' => 'hyundai'], | 
				
			|||
            ['name' => 'kia'], | 
				
			|||
            ['name' => 'subaru'], | 
				
			|||
            ['name' => 'mazda'], | 
				
			|||
            ['name' => 'peugeot'], | 
				
			|||
            ['name' => 'renault'], | 
				
			|||
            ['name' => 'fiat'], | 
				
			|||
            ['name' => 'land rover'], | 
				
			|||
            ['name' => 'jaguar'], | 
				
			|||
            ['name' => 'tesla'], | 
				
			|||
            ['name' => 'porsche'], | 
				
			|||
            ['name' => 'volvo'], | 
				
			|||
            ['name' => 'mitsubishi'], | 
				
			|||
            ['name' => 'chrysler'], | 
				
			|||
            ['name' => 'dodge'], | 
				
			|||
            ['name' => 'jeep'], | 
				
			|||
            ['name' => 'buick'], | 
				
			|||
            ['name' => 'gmc'], | 
				
			|||
            ['name' => 'infiniti'], | 
				
			|||
            ['name' => 'lexus'], | 
				
			|||
            ['name' => 'acura'], | 
				
			|||
            ['name' => 'alfa romeo'], | 
				
			|||
            // Agrega más marcas según sea necesario | 
				
			|||
        ]); | 
				
			|||
    } | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * Reverse the migrations. | 
				
			|||
     */ | 
				
			|||
    public function down(): void | 
				
			|||
    { | 
				
			|||
        Schema::dropIfExists('marcs'); | 
				
			|||
    } | 
				
			|||
}; | 
				
			|||
@ -0,0 +1,28 @@ | 
				
			|||
<?php | 
				
			|||
 | 
				
			|||
use Illuminate\Database\Migrations\Migration; | 
				
			|||
use Illuminate\Database\Schema\Blueprint; | 
				
			|||
use Illuminate\Support\Facades\Schema; | 
				
			|||
 | 
				
			|||
return new class extends Migration | 
				
			|||
{ | 
				
			|||
    /** | 
				
			|||
     * Run the migrations. | 
				
			|||
     */ | 
				
			|||
    public function up(): void | 
				
			|||
    { | 
				
			|||
        Schema::create('tiposLicencias', function (Blueprint $table) { | 
				
			|||
            $table->id(); | 
				
			|||
            $table->string('tipoLicencia'); | 
				
			|||
            $table->timestamps(); | 
				
			|||
        }); | 
				
			|||
    } | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * Reverse the migrations. | 
				
			|||
     */ | 
				
			|||
    public function down(): void | 
				
			|||
    { | 
				
			|||
        Schema::dropIfExists('tiposLicencias'); | 
				
			|||
    } | 
				
			|||
}; | 
				
			|||
@ -0,0 +1,17 @@ | 
				
			|||
<?php | 
				
			|||
 | 
				
			|||
namespace Database\Seeders; | 
				
			|||
 | 
				
			|||
use Illuminate\Database\Console\Seeds\WithoutModelEvents; | 
				
			|||
use Illuminate\Database\Seeder; | 
				
			|||
 | 
				
			|||
class TiposLicenciasSeeder extends Seeder | 
				
			|||
{ | 
				
			|||
    /** | 
				
			|||
     * Run the database seeds. | 
				
			|||
     */ | 
				
			|||
    public function run(): void | 
				
			|||
    { | 
				
			|||
        // | 
				
			|||
    } | 
				
			|||
} | 
				
			|||
@ -0,0 +1,145 @@ | 
				
			|||
@extends('layouts.dashboard') | 
				
			|||
 | 
				
			|||
@section('content') | 
				
			|||
<div class="container mx-auto px-4 py-6"> | 
				
			|||
    <!-- Encabezado --> | 
				
			|||
    @if(session('success')) | 
				
			|||
        <div id="success-message" class="bg-green-100 border border-green-400 text-green-700 px-4 py-3 rounded relative mb-4" role="alert"> | 
				
			|||
            <span class="block sm:inline">{{ session('success') }}</span> | 
				
			|||
        </div> | 
				
			|||
    @endif | 
				
			|||
 | 
				
			|||
    @if(session('error')) | 
				
			|||
        <div class="bg-red-100 border border-red-400 text-red-700 px-4 py-3 rounded relative mb-4" role="alert"> | 
				
			|||
            <span class="block sm:inline">{{ session('error') }}</span> | 
				
			|||
        </div> | 
				
			|||
    @endif | 
				
			|||
 | 
				
			|||
    <div class="bg-white rounded-lg shadow-lg"> | 
				
			|||
        <div class="p-4 border-b border-gray-200 flex justify-between items-center"> | 
				
			|||
            <h2 class="text-2xl font-bold">Gestión de Tipos de Licencias</h2> | 
				
			|||
            <a href="{{ route('tiposLicencias.create') }}" | 
				
			|||
               class="px-4 py-2 bg-blue-500 text-white rounded-lg hover:bg-blue-600 flex items-center gap-2"> | 
				
			|||
                <i class="fas fa-plus"></i> | 
				
			|||
                Agregar | 
				
			|||
            </a> | 
				
			|||
        </div> | 
				
			|||
 | 
				
			|||
        <!-- Barra de búsqueda --> | 
				
			|||
        <div class="p-4 border-b border-gray-200 bg-gray-50"> | 
				
			|||
            <form action="{{ route('tiposLicencias.index') }}" method="GET" class="flex gap-2"> | 
				
			|||
                <div class="relative w-full sm:w-64"> | 
				
			|||
                    <input type="text" | 
				
			|||
                           name="busqueda" | 
				
			|||
                           placeholder="Buscar tipo de licencia..." | 
				
			|||
                           value="{{ request('busqueda') }}" | 
				
			|||
                           class="w-full pl-10 pr-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500"> | 
				
			|||
                    <div class="absolute left-3 top-2.5 text-gray-400"> | 
				
			|||
                        <i class="fas fa-search"></i> | 
				
			|||
                    </div> | 
				
			|||
                </div> | 
				
			|||
                <button type="submit" class="px-4 py-2 bg-blue-500 text-white rounded-lg hover:bg-blue-600"> | 
				
			|||
                    Buscar/Actualizar | 
				
			|||
                </button> | 
				
			|||
                @if(request('busqueda')) | 
				
			|||
                    <a href="{{ route('tiposLicencias.index') }}" class="px-4 py-2 bg-gray-500 text-white rounded-lg hover:bg-gray-600"> | 
				
			|||
                        Limpiar | 
				
			|||
                    </a> | 
				
			|||
                @endif | 
				
			|||
            </form> | 
				
			|||
        </div> | 
				
			|||
 | 
				
			|||
        <div class="overflow-x-auto"> | 
				
			|||
            <table class="min-w-full divide-y divide-gray-200"> | 
				
			|||
                <thead class="bg-gray-50"> | 
				
			|||
                    <tr> | 
				
			|||
                        <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">ID</th> | 
				
			|||
                        <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Tipo de Licencia</th> | 
				
			|||
                        <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Acciones</th> | 
				
			|||
                    </tr> | 
				
			|||
                </thead> | 
				
			|||
                <tbody class="bg-white divide-y divide-gray-200"> | 
				
			|||
                    @foreach($tiposLicencias as $tipoLicencia) | 
				
			|||
                    <tr class="hover:bg-gray-50"> | 
				
			|||
                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">{{ $tipoLicencia->id }}</td> | 
				
			|||
                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900"> | 
				
			|||
                            <i class="fas fa-car text-blue-500 mr-2"></i> | 
				
			|||
                            {{ $tipoLicencia->nombre }} | 
				
			|||
                        </td> | 
				
			|||
                        <td class="px-6 py-4 whitespace-nowrap text-sm"> | 
				
			|||
                            <div class="flex gap-2"> | 
				
			|||
                                <a href="#" | 
				
			|||
                                   onclick="confirmarEdicion('{{ route('tiposLicencias.edit', $tipoLicencia->id) }}')" | 
				
			|||
                                   class="text-blue-600 hover:text-blue-900"> | 
				
			|||
                                    <i class="fas fa-edit"></i> | 
				
			|||
                                </a> | 
				
			|||
                                <form action="{{ route('tiposLicencias.destroy', $tipoLicencia->id) }}" | 
				
			|||
                                      method="POST" | 
				
			|||
                                      class="inline" | 
				
			|||
                                      onsubmit="return false;"> | 
				
			|||
                                    @csrf | 
				
			|||
                                    @method('DELETE') | 
				
			|||
                                    <button type="button" | 
				
			|||
                                            onclick="confirmarEliminacion(this)" | 
				
			|||
                                            class="text-red-600 hover:text-red-900"> | 
				
			|||
                                        <i class="fas fa-trash"></i> | 
				
			|||
                                    </button> | 
				
			|||
                                </form> | 
				
			|||
                            </div> | 
				
			|||
                        </td> | 
				
			|||
                    </tr> | 
				
			|||
                    @endforeach | 
				
			|||
                </tbody> | 
				
			|||
            </table> | 
				
			|||
        </div> | 
				
			|||
    </div> | 
				
			|||
</div> | 
				
			|||
 | 
				
			|||
<script> | 
				
			|||
function confirmarEdicion(url) { | 
				
			|||
    Swal.fire({ | 
				
			|||
        title: '¿Editar tipo de licencia?', | 
				
			|||
        text: "¿Estás seguro de que deseas editar este tipo de licencia?", | 
				
			|||
        icon: 'question', | 
				
			|||
        showCancelButton: true, | 
				
			|||
        confirmButtonColor: '#3085d6', | 
				
			|||
        cancelButtonColor: '#d33', | 
				
			|||
        confirmButtonText: 'Sí, editar', | 
				
			|||
        cancelButtonText: 'Cancelar' | 
				
			|||
    }).then((result) => { | 
				
			|||
        if (result.isConfirmed) { | 
				
			|||
            window.location.href = url; | 
				
			|||
        } | 
				
			|||
    }); | 
				
			|||
} | 
				
			|||
function confirmarEliminacion(button) { | 
				
			|||
    Swal.fire({ | 
				
			|||
        title: '¿Estás seguro?', | 
				
			|||
        text: "Esta acción no se puede deshacer", | 
				
			|||
        icon: 'warning', | 
				
			|||
        showCancelButton: true, | 
				
			|||
        confirmButtonColor: '#3085d6', | 
				
			|||
        cancelButtonColor: '#d33', | 
				
			|||
        confirmButtonText: 'Sí, eliminar', | 
				
			|||
        cancelButtonText: 'Cancelar' | 
				
			|||
    }).then((result) => { | 
				
			|||
        if (result.isConfirmed) { | 
				
			|||
            button.closest('form').onsubmit = null; | 
				
			|||
            button.closest('form').submit(); | 
				
			|||
        } | 
				
			|||
    }); | 
				
			|||
} | 
				
			|||
 | 
				
			|||
// Desaparecer el mensaje después de 3 segundos | 
				
			|||
setTimeout(function() { | 
				
			|||
    var message = document.getElementById('success-message'); | 
				
			|||
    if (message) { | 
				
			|||
        message.style.transition = 'opacity 0.5s ease'; | 
				
			|||
        message.style.opacity = '0'; | 
				
			|||
        setTimeout(function() { | 
				
			|||
            message.remove(); | 
				
			|||
        }, 500); // Tiempo para remover el elemento después de la transición | 
				
			|||
    } | 
				
			|||
}, 3000); // Tiempo en milisegundos antes de comenzar a desaparecer | 
				
			|||
</script> | 
				
			|||
@endsection | 
				
			|||
@ -0,0 +1,83 @@ | 
				
			|||
@extends('layouts.dashboard') | 
				
			|||
 | 
				
			|||
@section('content') | 
				
			|||
<div class="container mx-auto px-4 py-6"> | 
				
			|||
    <div class="max-w-lg mx-auto"> | 
				
			|||
        <div class="bg-white rounded-lg shadow-lg overflow-hidden"> | 
				
			|||
            <div class="p-6"> | 
				
			|||
                <!-- Encabezado del formulario --> | 
				
			|||
                <div class="flex items-center justify-between mb-6"> | 
				
			|||
                    <h2 class="text-2xl font-bold text-gray-800"> | 
				
			|||
                        {{ isset($tipoLicencia) ? 'Editar Tipo de Licencia' : 'Nuevo Tipo de Licencia' }} | 
				
			|||
                    </h2> | 
				
			|||
                    <div class="h-10 w-10 bg-blue-100 rounded-full flex items-center justify-center"> | 
				
			|||
                        <i class="fas fa-car text-blue-600"></i> | 
				
			|||
                    </div> | 
				
			|||
                </div> | 
				
			|||
 | 
				
			|||
                <!-- Mensajes de error --> | 
				
			|||
                @if($errors->any()) | 
				
			|||
                <div class="mb-6 bg-red-50 border-l-4 border-red-500 p-4 rounded-r-lg"> | 
				
			|||
                    <div class="flex items-center"> | 
				
			|||
                        <i class="fas fa-exclamation-circle text-red-500 mr-3"></i> | 
				
			|||
                        <div class="text-red-700"> | 
				
			|||
                            <ul> | 
				
			|||
                                @foreach($errors->all() as $error) | 
				
			|||
                                    <li>{{ $error }}</li> | 
				
			|||
                                @endforeach | 
				
			|||
                            </ul> | 
				
			|||
                        </div> | 
				
			|||
                    </div> | 
				
			|||
                </div> | 
				
			|||
                @endif | 
				
			|||
 | 
				
			|||
                <!-- Formulario --> | 
				
			|||
                <form id="tipoLicenciaForm" | 
				
			|||
                      action="{{ isset($tipoLicencia) ? route('tiposLicencias.update', $tipoLicencia->id) : route('tiposLicencias.store') }}" | 
				
			|||
                      method="POST"> | 
				
			|||
                    @csrf | 
				
			|||
                    @if(isset($tipoLicencia)) | 
				
			|||
                        @method('PUT') | 
				
			|||
                    @endif | 
				
			|||
 | 
				
			|||
                    <div class="space-y-6"> | 
				
			|||
                        <!-- Campo Nombre --> | 
				
			|||
                        <div> | 
				
			|||
                            <label for="nombre" class="block text-sm font-medium text-gray-700 mb-2"> | 
				
			|||
                                Nombre del Tipo de Licencia | 
				
			|||
                            </label> | 
				
			|||
                            <div class="relative rounded-md shadow-sm"> | 
				
			|||
                                <div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none"> | 
				
			|||
                                    <i class="fas fa-tag text-gray-400"></i> | 
				
			|||
                                </div> | 
				
			|||
                                <input type="text" | 
				
			|||
                                       name="nombre" | 
				
			|||
                                       id="nombre" | 
				
			|||
                                       class="block w-full pl-10 pr-3 py-2 border border-gray-300 rounded-md focus:ring-2 focus:ring-blue-500 focus:border-blue-500" | 
				
			|||
                                       value="{{ isset($tipoLicencia) ? $tipoLicencia->nombre : old('nombre') }}" | 
				
			|||
                                       placeholder="Ingrese el nombre del tipo de licencia" | 
				
			|||
                                       required> | 
				
			|||
                            </div> | 
				
			|||
                            @error('nombre') | 
				
			|||
                                <p class="mt-1 text-sm text-red-600">{{ $message }}</p> | 
				
			|||
                            @enderror | 
				
			|||
                        </div> | 
				
			|||
 | 
				
			|||
                        <!-- Botones de acción --> | 
				
			|||
                        <div class="flex justify-end space-x-2 pt-4 border-t border-gray-200"> | 
				
			|||
                            <a href="{{ route('tiposLicencias.index') }}" | 
				
			|||
                               class="px-4 py-2 border border-gray-300 rounded-md text-sm font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500"> | 
				
			|||
                                Cancelar | 
				
			|||
                            </a> | 
				
			|||
                            <button type="submit" | 
				
			|||
                                    class="px-4 py-2 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500"> | 
				
			|||
                                {{ isset($tipoLicencia) ? 'Actualizar' : 'Guardar' }} | 
				
			|||
                            </button> | 
				
			|||
                        </div> | 
				
			|||
                    </div> | 
				
			|||
                </form> | 
				
			|||
            </div> | 
				
			|||
        </div> | 
				
			|||
    </div> | 
				
			|||
</div> | 
				
			|||
@endsection | 
				
			|||
					Loading…
					
					
				
		Reference in new issue