"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'));
}
}
class Documento {
protected $icono;
protected $texto;
protected $uri;
public function __construct(Container $container, string $nombre) {
$this->icono = implode('/', [$container->get('urls.images'), $nombre . '.png']);
$this->texto = $nombre;
$this->uri = implode('/', [$container->get('urls.base'), 'documentos', strtolower($nombre)]);
}
public function show(): string {
return '
' . $this->texto . '';
}
}
class Link {
protected $uri;
protected $texto;
public function __construct(string $texto, string $uri) {
$this->texto = $texto;
$this->uri = $uri;
}
public function show(): string {
return '' . $this->texto . '';
}
}