diff --git a/bootstrap/web/config.php b/bootstrap/web/config.php index 2f81773..2542315 100644 --- a/bootstrap/web/config.php +++ b/bootstrap/web/config.php @@ -40,35 +40,29 @@ return [ ])), 'urls.metro.logo' => 'https://img.freepik.com/free-icon/santiago-metro-logo_318-66588.jpg?size=338&ext=jpg', 'urls.notaria.turno' => 'http://www.notariasdeturno.cl', - 'urls.play.store' => 'https://zeroq.cl/#/local/notaria-patricio-raby', - 'urls.play.store.logo' => 'https://zeroq.cl/img/logo-small.png', - 'assets' => (object) [ - (object) [ - 'script' => 'https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js' + 'urls.atencion' => 'https://zeroq.cl/#/local/notaria-patricio-raby/48', + 'urls.atencion.logo' => 'https://zeroq.cl/img/logo-small.png', + 'styles' => [ + 'https://cdnjs.cloudflare.com/ajax/libs/fomantic-ui/2.8.4/semantic.min.css', + DI\string(implode('/', ['{urls.styles}', 'metro.css'])), + 'https://fonts.googleapis.com/css?family=Roboto&subset=latin&display=swap' + ], + 'fonts' => [ + 'application/octet-stream' => [ + 'https://cdnjs.cloudflare.com/ajax/libs/fomantic-ui/2.8.4/themes/default/assets/fonts/brand-icons.ttf', + 'https://cdnjs.cloudflare.com/ajax/libs/fomantic-ui/2.8.4/themes/default/assets/fonts/icons.ttf', + 'https://cdnjs.cloudflare.com/ajax/libs/fomantic-ui/2.8.4/themes/default/assets/fonts/outline-icons.ttf', + 'https://cdnjs.cloudflare.com/ajax/libs/fomantic-ui/2.8.4/themes/default/assets/fonts/brand-icons.woff2', + 'https://cdnjs.cloudflare.com/ajax/libs/fomantic-ui/2.8.4/themes/default/assets/fonts/icons.woff2', + 'https://cdnjs.cloudflare.com/ajax/libs/fomantic-ui/2.8.4/themes/default/assets/fonts/outline-icons.woff2' ], - (object) [ - 'script' => 'https://cdnjs.cloudflare.com/ajax/libs/fomantic-ui/2.8.4/semantic.min.js', - 'style' => 'https://cdnjs.cloudflare.com/ajax/libs/fomantic-ui/2.8.4/semantic.min.css', - 'octet' => [ - 'https://cdnjs.cloudflare.com/ajax/libs/fomantic-ui/2.8.4/themes/default/assets/fonts/brand-icons.ttf', - 'https://cdnjs.cloudflare.com/ajax/libs/fomantic-ui/2.8.4/themes/default/assets/fonts/icons.ttf', - 'https://cdnjs.cloudflare.com/ajax/libs/fomantic-ui/2.8.4/themes/default/assets/fonts/outline-icons.ttf', - 'https://cdnjs.cloudflare.com/ajax/libs/fomantic-ui/2.8.4/themes/default/assets/fonts/brand-icons.woff2', - 'https://cdnjs.cloudflare.com/ajax/libs/fomantic-ui/2.8.4/themes/default/assets/fonts/icons.woff2', - 'https://cdnjs.cloudflare.com/ajax/libs/fomantic-ui/2.8.4/themes/default/assets/fonts/outline-icons.woff2' - ] - ], - (object) [ - 'script' => 'https://friconix.com/cdn/friconix.js' - ], - (object) [ - 'style' => implode('/', ['assets', 'styles', 'metro.css']), - 'fonts' => [ - 'https://fonts.googleapis.com/css?family=Roboto&subset=latin&display=swap' - ], - 'xfont' => [ - implode('/', ['assets', 'fonts', 'metro.ttf']) - ] + 'application/x-font-ttf' => [ + DI\string(implode('/', ['{urls.fonts}', 'metro.ttf'])) ] + ], + 'scripts' => [ + 'https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js', + 'https://cdnjs.cloudflare.com/ajax/libs/fomantic-ui/2.8.4/semantic.min.js', + 'https://friconix.com/cdn/friconix.js' ] ]; diff --git a/bootstrap/web/setup.php b/bootstrap/web/setup.php index 47e0359..0e93e81 100644 --- a/bootstrap/web/setup.php +++ b/bootstrap/web/setup.php @@ -17,10 +17,14 @@ return [ 'fonts' => $container->get('urls.fonts') ], 'notaria_turno' => $container->get('urls.notaria.turno'), - 'play_store' => $container->get('urls.play.store'), - 'play_store_logo' => $container->get('urls.play.store.logo') + 'atencion' => (object) [ + 'url' => $container->get('urls.atencion'), + 'logo' => $container->get('urls.atencion.logo') + ] ], - 'assets' => $container->get('assets') + 'styles' => $container->get('styles'), + 'fonts' => $container->get('fonts'), + 'scripts' => $container->get('scripts') ] ); }, diff --git a/common/Controller/Web/Admin/Admin.php b/common/Controller/Web/Admin/Admin.php index d10cbc6..31d7eaa 100644 --- a/common/Controller/Web/Admin/Admin.php +++ b/common/Controller/Web/Admin/Admin.php @@ -4,9 +4,20 @@ namespace ProVM\NotariaRaby\Common\Controller\Web\Admin; use Psr\Http\Message\ServerRequestInterface as Request; use Psr\Http\Message\ResponseInterface as Response; use Slim\Views\Blade as View; +use ProVM\Common\Service\Filemanager; class Admin { - public function __invoke(Request $request, Response $response, View $view): Response { - return $view->render($response, 'admin.admin'); + public function __invoke(Request $request, Response $response, Filemanager $filemanager, View $view): Response { + $filename = 'aviso.yml'; + $aviso = $filemanager->folder('data')->load($filename); + if (!$aviso) { + $aviso = (object) [ + 'titulo' => '', + 'contenido' => '', + 'activo' => false + ]; + } + $transparencia = $filemanager->folder('data')->load('transparencia.yml')->activo; + return $view->render($response, 'admin.admin', compact('aviso', 'transparencia')); } } diff --git a/common/Controller/Web/Admin/Notificacion.php b/common/Controller/Web/Admin/Notificacion.php index 1e2bd6c..b116960 100644 --- a/common/Controller/Web/Admin/Notificacion.php +++ b/common/Controller/Web/Admin/Notificacion.php @@ -3,43 +3,36 @@ namespace ProVM\NotariaRaby\Common\Controller\Web\Admin; use Psr\Http\Message\ServerRequestInterface as Request; use Psr\Http\Message\ResponseInterface as Response; -use Slim\Views\Blade as View; use ProVM\Common\Service\Filemanager; class Notificacion { - public function __invoke(Request $request, Response $response, View $view, Filemanager $filemanager): Response { - $filename = 'notificacion.yml'; - $notificacion = $filemanager->load($filename); - if (!$notificacion) { - $notificacion = (object) [ - 'title' => '', - 'text' => '', - 'active' => false - ]; - } - return $view->render($response, 'admin.notificacion.show', compact('notificacion')); - } - public function do_edit(Request $request, Response $response, View $view, Filemanager $filemanager): Response { + public function do_edit(Request $request, Response $response, Filemanager $filemanager): Response { $post = $request->getParsedBody(); - $filename = 'notificacion.yml'; - $notificacion = $filemanager->load($filename); + $filename = 'aviso.yml'; + $notificacion = $filemanager->folder('data')->load($filename); if (!$notificacion) { $notificacion = (object) [ - 'title' => '', - 'text' => '', - 'active' => false + 'titulo' => '', + 'contenido' => '', + 'activo' => false ]; } - $notificacion->title = $post['title']; - $notificacion->text = $post['text']; - $notificacion->active = (isset($post['active']) and $post['active'] == 'on') ? true : false; - $filemanager->save($filename, $notificacion); + if (isset($post['titulo'])) { + $notificacion->titulo = trim($post['titulo']); + $notificacion->contenido = trim($post['contenido']); + } + if (isset($post['activo'])) { + $notificacion->activo = json_decode($post['activo']); + } + $filemanager->folder('data')->save($filename, $notificacion); + + $output = [ + 'informacion' => $post, + 'editado' => $notificacion + ]; + $response->getBody()->write(json_encode($output)); return $response - ->withHeader('Location', implode('/', [ - $container->get('urls.base'), - 'admin', - 'notificacion' - ])) - ->withStatus(302); + ->withHeader('Content-Type', 'application/json') + ->withStatus(201); } } diff --git a/common/Controller/Web/Admin/Transparencia.php b/common/Controller/Web/Admin/Transparencia.php new file mode 100644 index 0000000..f8ac9c5 --- /dev/null +++ b/common/Controller/Web/Admin/Transparencia.php @@ -0,0 +1,34 @@ +getParsedBody(); + $filename = 'transparencia.yml'; + $transparencia = $filemanager->folder('data')->load($filename); + if (!$transparencia) { + $transparencia = (object) [ + 'descripcion' => '', + 'funciones' => '', + 'activo' => false + ]; + } + if (isset($post['activo'])) { + $transparencia->activo = json_decode($post['activo']); + } + $filemanager->folder('data')->save($filename, $transparencia); + + $output = [ + 'informacion' => $post, + 'editado' => $transparencia + ]; + $response->getBody()->write(json_encode($output)); + return $response + ->withHeader('Content-Type', 'application/json') + ->withStatus(201); + } +} diff --git a/common/Controller/Web/Contacto.php b/common/Controller/Web/Contacto.php index 47b8ea7..c2df839 100644 --- a/common/Controller/Web/Contacto.php +++ b/common/Controller/Web/Contacto.php @@ -7,6 +7,26 @@ use Slim\Views\Blade as View; class Contacto { public function __invoke(Request $request, Response $response, View $view): Response { - return $view->render($response, 'contacto'); + $google = (object) [ + 'api' => '' + ]; + $map = (object) [ + 'lat' => -33.415938, + 'long' => -70.591688 + ]; + $url = 'https://www.google.com/maps/embed/v1/place?q=notaria+patricio+raby&key=AIzaSyBFw0Qbyq9zTFTd-tUY6dZWTgaQzuU17R8'; + $url = 'https://maps.google.com/maps?hl=es&q=Notaria%20Patricio%20Raby+(Notaria%20Patricio%20Raby)&ie=UTF8&z=16&iwloc=B&output=embed'; + return $view->render($response, 'contacto', compact('url')); + } + public function formulario(Request $request, Response $response): Response { + $post = $request->getParsedBody(); + + $output = [ + 'informacion' => $post + ]; + $response->getBody()->write(json_encode($output)); + return $response + ->withHeader('Content-Type', 'application/json') + ->withStatus(201); } } diff --git a/common/Controller/Web/Home.php b/common/Controller/Web/Home.php index da140ee..3044095 100644 --- a/common/Controller/Web/Home.php +++ b/common/Controller/Web/Home.php @@ -5,39 +5,24 @@ use Psr\Http\Message\ServerRequestInterface as Request; use Psr\Http\Message\ResponseInterface as Response; use Psr\Container\ContainerInterface as Container; use Slim\Views\Blade as View; +use ProVM\Common\Service\Filemanager; class Home { - public function __invoke(Request $request, Response $response, View $view, Container $container): Response { + public function __invoke(Request $request, Response $response, View $view, Filemanager $manager, Container $container): Response { $banner = (object) [ 'titulo' => "5° NOTARÍA DE SANTIAGO\nPATRICIO RABY BENAVENTE", 'contenido' => "Gertrudis Echenique 30, of. 32, El Golf\n Metro Alcantara" ]; - $suplente = (object) [ - 'datos' => (object) [ - 'fechas' => "DEL 1 DE ABRIL AL 15 DE MAYO", - 'nombre' => "MARIA VIRGINIA\nWIELANDT COVARRUBIAS" - ] - ]; - $links = (object) [ - 'documentos' => [ - new Documento($container, 'Autorizaciones'), - new Documento($container, 'Declaraciones'), - new Documento($container, 'Certificados'), - new Documento($container, 'Poderes'), - new Documento($container, 'Contratos'), - new Documento($container, 'Otros') - ], - 'consulta' => [ - new Link('Servicios de Impuestos Internos', 'http://www.sii.cl'), - new Link('Registro Civil', 'http://www.registrocivil.cl'), - new Link('Conservador de Bienes Raices', ''), - new Link('Diario Oficial', ''), - new Link('Tesorería General de la República', ''), - new Link('Fojas', '') - ] - ]; - return $view->render($response, 'home', compact('banner', 'suplente', 'links')); + $links = $manager->folder('data')->load('documentos.yml'); + array_walk($links->documentos, function(&$item) use ($container) { + $item = new Documento($container, $item->texto, $item->uri); + }); + array_walk($links->consulta, function(&$item) { + $item = new Link($item->texto, $item->uri); + }); + $aviso = $manager->folder('data')->load('aviso.yml'); + return $view->render($response, 'home', compact('banner', 'aviso', 'links')); } } @@ -46,16 +31,18 @@ class Documento { protected $texto; protected $uri; - public function __construct(Container $container, string $nombre) { + public function __construct(Container $container, string $nombre, string $uri = '') { $this->icono = implode('/', [$container->get('urls.images'), $nombre . '.png']); $this->texto = $nombre; - $this->uri = implode('/', [$container->get('urls.base'), 'documentos', strtolower($nombre)]); + $this->uri = $uri; + if ($uri == '') { + $this->uri = implode('/', [$container->get('urls.base'), 'documentos', strtolower($nombre)]); + } } public function show(): string { return ' ' . $this->texto . ''; } } - class Link { protected $uri; protected $texto; diff --git a/common/Controller/Web/Notaria.php b/common/Controller/Web/Notaria.php index d519452..f40ebe4 100644 --- a/common/Controller/Web/Notaria.php +++ b/common/Controller/Web/Notaria.php @@ -10,6 +10,8 @@ class Notaria { public function __invoke(Request $request, Response $response, View $view, Filemanager $filemanager): Response { $filename = 'equipos.yml'; $equipos = $filemanager->folder('data')->load($filename); - return $view->render($response, 'notaria', compact('equipos')); + $filename = 'transparencia.yml'; + $transparencia = $filemanager->folder('data')->load($filename); + return $view->render($response, 'notaria', compact('equipos', 'transparencia')); } } diff --git a/provm/common/Service/Filemanager.php b/provm/common/Service/Filemanager.php index 27c9234..b73feca 100644 --- a/provm/common/Service/Filemanager.php +++ b/provm/common/Service/Filemanager.php @@ -72,7 +72,7 @@ class Filemanager { $data = (array) $data; } if (is_array($data)) { - $data = implode(PHP_EOL, $data); + $data = Yaml::YAMLDump($data, false, false, true); } $filename = $this->fullPath($filename); file_put_contents($filename, $data); diff --git a/public/assets/images/Certificaciones.png b/public/assets/images/Certificaciones.png deleted file mode 100644 index 321581f..0000000 Binary files a/public/assets/images/Certificaciones.png and /dev/null differ diff --git a/public/assets/images/Contratos.png b/public/assets/images/Contratos y Otros.png similarity index 100% rename from public/assets/images/Contratos.png rename to public/assets/images/Contratos y Otros.png diff --git a/public/assets/images/banner2.webp b/public/assets/images/banner2.webp new file mode 100644 index 0000000..fb1bd1c Binary files /dev/null and b/public/assets/images/banner2.webp differ diff --git a/public/assets/images/numero.jpg b/public/assets/images/numero.jpg new file mode 100644 index 0000000..772e9f6 Binary files /dev/null and b/public/assets/images/numero.jpg differ diff --git a/public/assets/styles/contacto.css b/public/assets/styles/contacto.css new file mode 100644 index 0000000..43bc0aa --- /dev/null +++ b/public/assets/styles/contacto.css @@ -0,0 +1,7 @@ +#contacto { + padding-top: 1rem; + padding-bottom: 1rem; +} +#contacto #map { + margin-top: 3rem; +} diff --git a/public/assets/styles/home.css b/public/assets/styles/home.css new file mode 100644 index 0000000..6d59e9b --- /dev/null +++ b/public/assets/styles/home.css @@ -0,0 +1,128 @@ +#banner { + background-repeat: no-repeat; + background-position: center; + background-size: 1900px auto; + background-blend-mode: multiply; + color: white; +} +#banner .segment { + padding-left: 0 !important; +} +#banner .content { + padding-top: 3rem; + padding-bottom: 3rem; +} +#banner .content .header { + font-size: 1.5rem; +} +#banner .content .description { + font-size: 1.3rem; +} + +#suplente { + min-height: 20rem; + padding-top: 3rem !important; + padding-bottom: 3rem !important; +} +#suplente .grid { + margin: 0 !important; +} +#suplente .row { + padding: 0 !important; +} +#suplente .horario { + padding-left: 0 !important; +} +#suplente .horario .header { + font-size: 1.3rem; +} +#suplente .mensaje { + background-repeat: no-repeat; + background-position: center; + background-size: 100% auto; + height: 14rem; + display: table; +} +#suplente .mensaje .middle { + display: table-cell; + vertical-align: bottom; +} +#suplente .mensaje .button { + margin-bottom: 1rem; +} + +#numero { + background-position: center; + background-attachment: fixed; + height: 15rem; + margin: 0 !important; + display: block; +} +#numero::before { + clear: both; +} +#numero .grid { + margin: 0 !important; +} +#numero .column { + display: table; + height: 13rem; +} +#numero a { + display: table-cell; + vertical-align: middle; +} +#numero a .button { + font-family: Roboto !important; + font-size: 1.3rem !important; + font-weight: 900 !important; + background-color: rgba(0, 30, 70, 0.8) !important; +} + +#servicios { + background-color: rgba(0, 0, 0, .05); + padding-top: 3rem; + padding-bottom: 3rem; + min-height: 25rem; + font-family: Roboto; +} +#servicios .list img { + height: 1.2rem; + margin-right: 1rem; +} +#servicios .list a { + color: inherit; +} +#servicios .titulo { + font-weight: bold; + font-size: 16pt; +} + +#servicios .seguimiento { + background-repeat: no-repeat; + background-position: center; + background-size: cover; +} + +#indice .grid { + margin: 0 !important; +} +#indice .row { + padding: 0 !important; +} +#indice .img, +#indice .img img { + max-height: 20rem !important; +} +#indice .contenido { + padding-top: 9rem !important; + color: rgba(0, 0, 0, 0.9) !important; +} +#indice .contenido .titulo { + font-size: 20pt; + font-weight: bold; +} +#indice .contenido .list .item { + font-size: 14pt !important; + color: inherit; +} diff --git a/public/assets/styles/main.css b/public/assets/styles/main.css index 89e2bd9..e06bfce 100644 --- a/public/assets/styles/main.css +++ b/public/assets/styles/main.css @@ -1,129 +1,20 @@ html { font-family: Roboto, Arial !important; } -#page_menu { - height: 60px; - font-size: 12pt !important; +.inverted.dark-blue { + background-color: #003662 !important; +} +.inverted.dark-blue.button { + border: 0; + box-shadow: none !important; } #page_menu .brand { font-family: Helvetica, Arial !important; font-weight: 900 !important; - font-size: 25pt; + font-size: 2rem; } - -.banner { - background-repeat: no-repeat; - background-position: center; - background-size: 100% 330px; - height: 330px; -} -.banner .mensaje { - font-size: 18pt; - color: white; - width: 550px; - padding: 75px; -} -.banner .mensaje .titulo { - font-size: 20pt; - font-weight: bold; -} - -.suplente { - height: 330px; - padding-top: 50px !important; -} -.suplente>div { - display: inline-block; -} -.suplente .mensaje { - background-repeat: no-repeat; - background-position: center; - height: 230px; -} -.suplente .mensaje .row { - margin-top: 50px; - height: 160px; -} -.suplente .mensaje .row .column, -.suplente .mensaje .row .column .segment { - width: 340px !important; - border: 0; - padding: 0 !important; - background-color: rgb(255, 255, 255, 0.5) -} - -.numero { - background-position: center; - background-attachment: fixed; - height: 200px; -} -.numero .segment { - background-color: rgba(0, 0, 30, .9) !important; - margin-top: 50px !important; - padding: 0 !important; - padding-top: 10px !important; - border: 0 !important; - height: 70px; - width: 290px !important; -} -.numero a { - font-family: Roboto; - color: white; - font-size: 12pt; - font-weight: 900; -} - -#servicios { - background-color: rgba(0, 0, 0, .05); - padding-top: 50px; - padding-bottom: 50px; - height: 440px; - font-family: Roboto; -} -#servicios .separator { - width: 60px; -} -#servicios .list { - width: 285px !important; - font-size: 14pt; - color: rgba(0, 0, 0, 0.9) -} -#servicios .list img { - width: 20px; - margin-right: 20px; -} -#servicios .list a { - color: inherit; -} -#servicios .titulo { - font-weight: bold; - font-size: 16pt; -} - -#servicios .seguimiento { - background-repeat: no-repeat; - background-position: center; - background-size: 345px 340px; - width: 345px !important; -} - -#indice .img, -#indice .img img { - width: 780px !important; - height: 310px !important; -} -#indice .contenido { - padding-top: 60px !important; - width: 300px !important; - color: rgba(0, 0, 0, 0.9) !important; -} -#indice .contenido .titulo { - font-size: 20pt; - font-weight: bold; -} -#indice .contenido .list .item { - font-size: 14pt !important; - color: inherit; +#page_menu .item:first-child { + padding-left: 0 !important; } footer { @@ -131,18 +22,27 @@ footer { height: 260px; font-family: Roboto; } +footer .grid { + margin: 0 !important; +} footer .main { - height: 230px !important; + min-height: 16rem !important; padding-top: 30px !important; } footer a { color: inherit; } -footer>.menu { - font-size: 10pt !important; - color: rgba(0, 0, 0, 0.7) !important; +footer .grey { background-color: rgba(0, 0, 0, 0.1) !important; - height: 30px !important; + color: rgba(0, 0, 0, 0.7) !important; + min-height: 3rem !important; +} +footer nav.menu { + font-size: 10pt !important; + border: 0 !important; +} +footer nav.menu .item:first-child { + padding-left: 0 !important; } diff --git a/resources/data/aviso.yml b/resources/data/aviso.yml new file mode 100644 index 0000000..208f5f9 --- /dev/null +++ b/resources/data/aviso.yml @@ -0,0 +1,3 @@ +activo: false +titulo: "" +contenido: "" diff --git a/resources/data/documentos.yml b/resources/data/documentos.yml index bc98406..b01bf58 100644 --- a/resources/data/documentos.yml +++ b/resources/data/documentos.yml @@ -1,7 +1,38 @@ documentos: - - titulo: Autorizaciones - - titulo: Declaraciones - - titulo: Certificados - - titulo: Poderes - - titulo: Contratos - - titulo: Otros + - texto: Autorizaciones + uri: https://www.notarial.cl/autorizacion-viajes.php + - texto: Vehículos + uri: https://www.notarial.cl/vehiculos.php + - texto: Poderes bancarios + uri: https://www.notarial.cl/notarial_ingreso_sbif2.php + - texto: Poder + uri: https://www.notarial.cl/poder.php + - texto: Renovación de Poderes + uri: https://www.notarial.cl/revocacion-de-poder.php + - texto: Declaraciones + uri: https://www.notarial.cl/declaracion.php + - texto: Contratos y Otros + uri: https://www.notarial.cl/contratos-otros.php + - texto: Laboral + uri: https://www.notarial.cl/laboral.php + - texto: Extranjeros + uri: https://www.notarial.cl/inv-extranjero.php +consulta: + - texto: Servicio de Impuestos Internos + uri: http://www.sii.cl + - texto: Registro Civil + uri: http://www.registrocivil.cl + - uri: http://www.conservador.cl + texto: Conservador + - uri: http://www.diarioficial.cl + texto: Diario Oficial + - uri: http://www.tesoreria.cl + texto: Tesorería + - uri: http://www.notariosyconservadores.cl + texto: Notarios y Conservadores + - uri: http://www.poderjudicial.cl + texto: Poder Judicial + - uri: http://www.bcn.cl + texto: Biblioteca del Congreso Nacional + - uri: http://www.fojas.cl + texto: Fojas diff --git a/resources/data/transparencia.yml b/resources/data/transparencia.yml new file mode 100644 index 0000000..2b5a998 --- /dev/null +++ b/resources/data/transparencia.yml @@ -0,0 +1,44 @@ +activo: false +descripcion: 'La función del notario Público se encuentra regida por las normas establecidas en el Título XI párrafo 7 artículo 399 al 445 del Código Orgánico de tribunales. Son funciones del Notario, entre otras, las contenidas en el artículo 401 del código señalado y que se expresan a continuación:' +funciones: + - > + Extender los instrumentos públicos con + arreglo a las instrucciones que, de + palabra o por escrito, les dieren las + partes otorgantes. + - Levantar inventarios solemnes. + - > + Efectuar protestos de letras de cambio y + demás documentos mercantiles. + - > + Notificar los traspasos de acciones, + constituciones y notificaciones de + prendas que se les solicitaren. + - > + Asistir a las juntas generales de + accionistas de sociedades anónimas, + para los efectos que la ley o reglamento + de ellas lo exigieren. + - > + En general dar fe de los hechos para que + fueren requeridos y que no estuvieren + encomendados a otros funcionarios. + - > + Guardar y conservar en riguroso orden + cronológico los documentos que ante + ellos se otorguen, en forma de precaver + todo extravío y hacer fácil y expedito + su examen. + - > + Otorgar certificados o testimonios de + los actos celebrados ante ellos o + protocolizados en sus registros. + - > + Facilitar a cualquiera persona que lo + solicite el examen de los instrumentos + públicos que ante ellos se otorguen y + documentos que se protocolicen. + - > + Autorizar las firmas que se estampen en + documentos privados, sea en su presencia + o cuya autenticidad les conste. diff --git a/resources/data/transparencia0.yml b/resources/data/transparencia0.yml new file mode 100644 index 0000000..4a0e80f --- /dev/null +++ b/resources/data/transparencia0.yml @@ -0,0 +1,13 @@ +activo: true +descripcion: "La función del notario Público se encuentra regida por las normas establecidas en el Título XI párrafo 7 artículo 399 al 445 del Código Orgánico de tribunales. Son funciones del Notario, entre otras, las contenidas en el artículo 401 del código señalado y que se expresan a continuación:" +funciones: + - Extender los instrumentos públicos con arreglo a las instrucciones que, de palabra o por escrito, les dieren las partes otorgantes. + - Levantar inventarios solemnes. + - Efectuar protestos de letras de cambio y demás documentos mercantiles. + - "Notificar los traspasos de acciones, constituciones y notificaciones de prendas que se les solicitaren." + - Asistir a las juntas generales de accionistas de sociedades anónimas, para los efectos que la ley o reglamento de ellas lo exigieren. + - En general dar fe de los hechos para que fueren requeridos y que no estuvieren encomendados a otros funcionarios. + - Guardar y conservar en riguroso orden cronológico los documentos que ante ellos se otorguen, en forma de precaver todo extravío y hacer fácil y expedito su examen. + - Otorgar certificados o testimonios de los actos celebrados ante ellos o protocolizados en sus registros. + - Facilitar a cualquiera persona que lo solicite el examen de los instrumentos públicos que ante ellos se otorguen y documentos que se protocolicen. + - Autorizar las firmas que se estampen en documentos privados, sea en su presencia o cuya autenticidad les conste. diff --git a/resources/routes/web/admin/notificacion.php b/resources/routes/web/admin/notificacion.php index e4a96e8..142c802 100644 --- a/resources/routes/web/admin/notificacion.php +++ b/resources/routes/web/admin/notificacion.php @@ -2,6 +2,5 @@ use ProVM\NotariaRaby\Common\Controller\Web\Admin\Notificacion; $app->group('/notificacion', function($app) { - $app->get('[/]', Notificacion::class); $app->post('[/]', [Notificacion::class, 'do_edit']); }); diff --git a/resources/routes/web/admin/transparencia.php b/resources/routes/web/admin/transparencia.php new file mode 100644 index 0000000..4daf7c0 --- /dev/null +++ b/resources/routes/web/admin/transparencia.php @@ -0,0 +1,6 @@ +group('/transparencia', function($app) { + $app->post('[/]', [Transparencia::class, 'do_edit']); +}); diff --git a/resources/routes/web/contacto.php b/resources/routes/web/contacto.php index 8d4a373..4938a46 100644 --- a/resources/routes/web/contacto.php +++ b/resources/routes/web/contacto.php @@ -2,5 +2,6 @@ use ProVM\NotariaRaby\Common\Controller\Web\Contacto; $app->group('/contacto', function($app) { + $app->post('[/]', [Contacto::class, 'formulario']); $app->get('[/]', Contacto::class); }); diff --git a/resources/views/admin/admin.blade.php b/resources/views/admin/admin.blade.php index 74d0f0b..27e6ef4 100644 --- a/resources/views/admin/admin.blade.php +++ b/resources/views/admin/admin.blade.php @@ -1,5 +1,17 @@ @extends('admin.layout.base') @section('content') - +
+
+
+
+ @include('admin.formulario') +
+
+ @include('admin.documentos') +
+
+
+
+
@endsection diff --git a/resources/views/admin/documento.blade.php b/resources/views/admin/documento.blade.php new file mode 100644 index 0000000..9a6c6a7 --- /dev/null +++ b/resources/views/admin/documento.blade.php @@ -0,0 +1,12 @@ +
+
+
+ {{$descripcion}} +
+ +
+
diff --git a/resources/views/admin/documentos.blade.php b/resources/views/admin/documentos.blade.php new file mode 100644 index 0000000..6a84554 --- /dev/null +++ b/resources/views/admin/documentos.blade.php @@ -0,0 +1,33 @@ +

+ Carga de documentos +

+
+ @include('admin.documento', ['descripcion' => 'Escrituras Públicas', 'link' => '#']) + @include('admin.documento', ['descripcion' => 'Balances Anuales', 'link' => '#']) + @include('admin.documento', ['descripcion' => 'Interés y Patrimonio', 'link' => '#']) + @include('admin.documento', ['descripcion' => 'Infrormes Fiscalía', 'link' => '#']) + @include('admin.documento', ['descripcion' => 'Valores', 'link' => '#']) +
+

+ Transparencia +

+
+ + +
+ +@push('scripts') + +@endpush diff --git a/resources/views/admin/formulario.blade.php b/resources/views/admin/formulario.blade.php new file mode 100644 index 0000000..cb59dee --- /dev/null +++ b/resources/views/admin/formulario.blade.php @@ -0,0 +1,49 @@ +
+
+

+ Aviso +

+
+
+ +
+
+ +
+
+ +
+
+
+ + activo) + checked="checked" + @endif + /> +
+
+
+ +@push('scripts') + +@endpush diff --git a/resources/views/admin/layout/base.blade.php b/resources/views/admin/layout/base.blade.php index ce54817..126eac2 100644 --- a/resources/views/admin/layout/base.blade.php +++ b/resources/views/admin/layout/base.blade.php @@ -5,8 +5,8 @@ @endsection @section('page_content') -
- @include('admin.layout.menu') +
+
@yield('content')
@endsection diff --git a/resources/views/admin/notificacion/show.blade.php b/resources/views/admin/notificacion/show.blade.php deleted file mode 100644 index aa5c969..0000000 --- a/resources/views/admin/notificacion/show.blade.php +++ /dev/null @@ -1,36 +0,0 @@ -@extends('admin.layout.base') - -@section('content') -
-
- - -
-
- - -
-
-
- - active) - checked="checked" - @endif - /> -
-
- -
-
-@endsection - -@push('scripts') - -@endpush diff --git a/resources/views/admin/uicon.blade.php b/resources/views/admin/uicon.blade.php new file mode 100644 index 0000000..0d31544 --- /dev/null +++ b/resources/views/admin/uicon.blade.php @@ -0,0 +1,4 @@ + + + + diff --git a/resources/views/contacto.blade.php b/resources/views/contacto.blade.php index e69de29..5e28450 100644 --- a/resources/views/contacto.blade.php +++ b/resources/views/contacto.blade.php @@ -0,0 +1,68 @@ +@extends('layout.base') + +@section('page_content') +
+
+
+
+
+
+
+

+ CONTACTO +

+
+
+ Canal de consultas, reclamos y sugerencias +
+
+
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+
+
+
+
+
+
+@endsection + +@push('styles') + +@endpush + +@push('scripts') + +@endpush diff --git a/resources/views/home.blade.php b/resources/views/home.blade.php index a05ca23..c1c7fd9 100644 --- a/resources/views/home.blade.php +++ b/resources/views/home.blade.php @@ -6,4 +6,9 @@ @include('home.numero') @include('home.links') @include('home.indice') + @include('home.aviso') @endsection + +@push('styles') + +@endpush diff --git a/resources/views/home/aviso.blade.php b/resources/views/home/aviso.blade.php new file mode 100644 index 0000000..89b0d00 --- /dev/null +++ b/resources/views/home/aviso.blade.php @@ -0,0 +1,22 @@ + + +@push('scripts') + +@endpush diff --git a/resources/views/home/banner.blade.php b/resources/views/home/banner.blade.php index e59917d..e048548 100644 --- a/resources/views/home/banner.blade.php +++ b/resources/views/home/banner.blade.php @@ -1,13 +1,15 @@ -