EVOLUTION-MANAGER
Edit File: directorio_telefonico.blade.php
@extends('layouts.master') @section('contenido') <link rel="stylesheet" type="text/css" href="{{ asset('admin/frontend/css/sweetalert2.min.css') }}"> <style type="text/css"> .btn-green{ color: #fff; background-color: #2eb733; border-color: #2eb733; } .btn-green:hover { color: #fff; background-color: #08770c; border-color: #08770c; } @media (min-width: 992px){ #divv{ margin-left: 100px; } } h3{ color: #16a71b; } .table_telefono{ border: 1px solid #dee2e6; } .table_telefono tbody td,th{ padding: 0.2rem 0.75rem !important; } </style> <main id="container"> <div class="single" id="main"> <div class="container-fluid"> <div class="col-12" style="display: flex;justify-content: center;"> @include('alerts.success') @include('alerts.errors') </div> <br> <div class="row" align="center"> <section class="col-md-12 col-sm-12 line-right" id="postcontent" > <div class="col-md-6"> <h3> <strong> Directorio Telefónico </strong> </h3> </div> <div class="col-lg-4 col-md-6 col-sm-8"> <br> @php $lista_codigos = DB::table('directorio_telefonico')->orderBy('orden', 'asc')->get(); @endphp <table class="table table_telefono" style="font-size: 20px;"> <thead> <tr style="background-color: #dee2e6;"> <th>Teléfono</th> </tr> </thead> <tbody> <tr> <td style="color: #0083a1; font-weight: 800;">(+593) 52593180</td> </tr> </tbody> </table> <br> </div> <div class="col-md-6"> <table class="table table_telefono"> <thead> <tr> <th scope="col">#</th> <th scope="col">ÁREA RESPONSABLE</th> <th scope="col"><center>EXTENSIÓN</center></th> </tr> </thead> <tbody> @foreach ($lista_codigos as $x => $item) <tr> <th scope="row">{{ $x+1 }}</th> <td>{{ $item->departamento }}</td> <td><center>{{ $item->codigo }}</center></td> </tr> @endforeach </tbody> </table> <br> </br> </div> </section> </div> <div class="row"> <div class="col-md-12"> </div> </div> </div> </div> </main> @stop @section('script') <script src="{{ asset('admin/frontend/js/sweetalert2.min.js') }}"></script> <script type="text/javascript"> function confirmar_datos(){ var nombre=$('#nombre').val(); var apellido=$('#email').val(); var mensaje=$('#mensaje').val(); console.log(nombre); debugger; if(nombre ==''){ mensaje('error','No ha ingresado el nombre'); return false; }else if(mensaje==''){ mensaje('error','No ha ingresado el mensaje'); return false; } return true; } function mensaje(tipo,mensaje){ swal({ type: tipo, title: 'Advertencia', text: mensaje, buttonsStyling: false, confirmButtonClass: 'btn btn-lg btn-warning' }); } </script> @stop