This commit is contained in:
2021-12-25 23:17:47 -03:00
parent 7e01974ec8
commit d7d671fb51
68 changed files with 2991 additions and 160 deletions

View File

@ -3,15 +3,18 @@
<head>
<meta charset="utf-8" />
<title>
@hasSection('page_title')
@yield('page_title') -
@endif
@if (isset($titulo))
{{$titulo}} -
@endif
Incoviba S. A.</title>
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/fomantic-ui/2.7.8/semantic.min.css" />
<link rel="stylesheet" type="text/css" href="css/app.css" />
<link rel="stylesheet" type="text/css" href="css/custom.css" />
<link rel="icon" type="image/png" href="images/Isotipo 32.png" />
<script type="text/javascript" src="js/app.js"></script>
<link rel="stylesheet" type="text/css" href="{{$urls->styles}}/app.css" />
<link rel="stylesheet" type="text/css" href="{{$urls->styles}}/custom.css" />
<link rel="icon" type="image/png" href="{{$urls->images}}/Isotipo 32.png" />
<script type="text/javascript" src="{{$urls->scripts}}/app.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/fomantic-ui/2.7.8/semantic.min.js"></script>
@stack('styles')
@ -26,6 +29,53 @@
</div>
</div>
@include('layout.footer')
<script type="text/javascript">
const API_KEY = '{{$api_key}}'
const _urls = {
base: '{{$urls->base}}',
api: 'http://localhost:8081'
}
function buildAjax(uri, method, files=false) {
const url = _urls.api + uri
if (files) {
return {
url,
headers: {
'Authorization': 'Bearer ' + API_KEY
},
method,
processData: false,
contentType: false
}
}
return {
url,
headers: {
'Authorization': 'Bearer ' + API_KEY
},
method,
dataType: 'json'
}
}
function sendGet(uri) {
let ajax_obj = buildAjax(uri, 'GET')
return $.ajax(ajax_obj)
}
function sendPost(uri, data, files=false) {
let ajax_obj = buildAjax(uri, 'POST', files)
ajax_obj['data'] = data
return $.ajax(ajax_obj)
}
function sendPut(uri, data) {
let ajax_obj = buildAjax(uri, 'PUT')
ajax_obj['data'] = data
return $.ajax(ajax_obj)
}
function sendDelete(uri) {
let ajax_obj = buildAjax(uri, 'DELETE')
return $.ajax(ajax_obj)
}
</script>
@stack('scripts')
</body>
</html>

View File

@ -3,7 +3,7 @@
<div class="row">
<div class="col-md-12">
<div class="logo_cabezal">
<a href="."><img src="images/logo_cabezal.png" /></a>
<a href="."><img src="{{$urls->images}}/logo_cabezal.png" /></a>
</div>
</div>
</div>
@ -13,4 +13,4 @@
</div>
</div>
</div>
</header>
</header>

View File

@ -1,8 +1,8 @@
<nav class="navbar navbar-default">
<ul class="nav navbar-nav">
<li><a href=".">Inicio</a></li>
@if (\App\Contract\Auth::isIn())
@if (\App\Contract\Auth::checkAccess('ventas'))
<li><a href="{{$urls->base}}">Inicio</a></li>
@if ($auth->isIn())
@if ($auth->checkAccess('ventas'))
<li role="presentation" class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">
Ventas <span class="caret"></span>
@ -11,7 +11,7 @@
</li>
@endif
@if (\App\Contract\Auth::checkAccess('proyectos'))
@if ($auth->checkAccess('proyectos'))
<li role="presentation" class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">
Proyectos <span class="caret"></span>
@ -20,11 +20,11 @@
</li>
@endif
@if (\App\Contract\Auth::checkAccess('inmobiliarias'))
<li><a href="{{url('', ['p' => 'inmobiliarias', 'a' => 'list'])}}">Inmobiliarias</a></li>
@if ($auth->checkAccess('inmobiliarias'))
<li><a href="{{$urls->base}}/inmobiliarias">Inmobiliarias</a></li>
@endif
@if (\App\Contract\Auth::checkAccess('viewInformesContabilidad'))
@if ($auth->checkAccess('viewInformesContabilidad'))
<li role="presentation" class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">
Contabilidad <span class="caret"></span>
@ -40,7 +40,7 @@
@include('layout.menu.operadores')
</li>
@if (\App\Contract\Auth::checkAccess('viewHerramientas'))
@if ($auth->checkAccess('viewHerramientas'))
<li role="presentation" class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">
Herramientas <span class="caret"></span>
@ -49,19 +49,19 @@
</li>
@endif
@else
<li><a href="{{url('', ['p' => 'auth', 'a' => 'login'])}}">Ingresar</a></li>
<li><a href="{{$urls->base}}/auth/login">Ingresar</a></li>
@endif
</ul>
@if (\App\Contract\Auth::isIn())
@if ($auth->isIn())
<ul class="nav navbar-nav navbar-right">
<li role="presentation" class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">
{{\App\Contract\Auth::User()->name}} <span class="caret"></span>
{{$auth->user()}} <span class="caret"></span>
</a>
@include('layout.menu.login')
</li>
@if (\App\Contract\Auth::checkAccess('buscar'))
<li style="font-size: large; border-left: 1px solid #e7e7e7;"><a href="{{url('', ['p' => 'buscar'])}}"><span class="glyphicon glyphicon-search"></span></a></li>
@if ($auth->checkAccess('buscar'))
<li style="font-size: large; border-left: 1px solid #e7e7e7;"><a href="{{$urls->base}}/buscar"><span class="glyphicon glyphicon-search"></span></a></li>
<li style="margin-right: 15px;">&nbsp;</li>
@endif
</ul>

View File

@ -1,8 +1,8 @@
<nav class="navbar navbar-default">
<ul class="nav navbar-nav">
<li><a href=".">Inicio</a></li>
@if (\App\Contract\Auth::isIn())
@if (\App\Contract\Auth::checkAccess('ventas'))
@if ($auth->isIn())
@if ($auth->checkAccess('ventas'))
<li role="presentation" class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">
Ventas <span class="caret"></span>
@ -11,7 +11,7 @@
</li>
@endif
@if (\App\Contract\Auth::checkAccess('proyectos'))
@if ($auth->checkAccess('proyectos'))
<li role="presentation" class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">
Proyectos <span class="caret"></span>
@ -20,11 +20,11 @@
@endif
@if (\App\Contract\Auth::checkAccess('inmobiliarias'))
@if ($auth->checkAccess('inmobiliarias'))
<li><a href="{{url('', ['p' => 'inmobiliarias', 'a' => 'list'])}}">Inmobiliarias</a></li>
@endif
@if (\App\Contract\Auth::checkAccess('viewInformesContabilidad'))
@if ($auth->checkAccess('viewInformesContabilidad'))
<li role="presentation" class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">
Contabilidad <span class="caret"></span>
@ -33,7 +33,7 @@
</li>
@endif
@if (\App\Contract\Auth::checkAccess('viewHerramientas'))
@if ($auth->checkAccess('viewHerramientas'))
<li role="presentation" class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">
Herramientas <span class="caret"></span>
@ -45,15 +45,15 @@
<li><a href="{{url('', ['p' => 'auth', 'a' => 'login'])}}">Ingresar</a></li>
@endif
</ul>
@if (\App\Contract\Auth::isIn())
@if ($auth->isIn())
<ul class="nav navbar-nav navbar-right">
<li role="presentation" class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">
{{\App\Contract\Auth::User()->name}} <span class="caret"></span>
{{$auth->User()->name}} <span class="caret"></span>
</a>
@include('layout.menu.login')
</li>
@if (\App\Contract\Auth::checkAccess('buscar'))
@if ($auth->checkAccess('buscar'))
<li style="font-size: large; border-left: 1px solid #e7e7e7;"><a href="{{url('', ['p' => 'buscar'])}}"><span class="glyphicon glyphicon-search"></span></a></li>
<li style="margin-right: 15px;">&nbsp;</li>
@endif

View File

@ -1,3 +1,3 @@
<ul class="dropdown-menu">
<li><a href="http://{{config('locations.money')}}">Valores Monetarios</a></li>
<li><a href="http://{{$urls->money}}">Valores Monetarios</a></li>
</ul>

View File

@ -1,4 +1,4 @@
<ul class="dropdown-menu">
<li><a href="{{url('', ['p' => 'informes', 'a' => 'contabilidad'])}}">Pagos Mes</a></li>
<li><a href="{{url('', ['p' => 'informes', 'a' => 'resumen_contabilidad'])}}">Resumen</a></li>
<li><a href="{{$urls->base}}/informes/contabilidad">Pagos Mes</a></li>
<li><a href="{{$urls->base}}/informes/contabilidad/resumen">Resumen</a></li>
</ul>

View File

@ -1,8 +1,8 @@
<ul class="dropdown-menu">
<li><a href="{{url('', ['p' => 'auth', 'a' => 'change_pass'])}}">Cambiar Cl&aacute;ve</a></li>
@if (\App\Contract\Auth::checkAccess('admin'))
<li><a href="{{url('', ['p' => 'admin'])}}">Administraci&oacute;n</a></li>
<li><a href="{{$urls->base}}/auth/password">Cambiar Cl&aacute;ve</a></li>
@if ($auth->checkAccess('admin'))
<li><a href="{{$urls->base}}/admin">Administraci&oacute;n</a></li>
@endif
<li><a href="{{url('', ['p' => 'auth', 'a' => 'logout'])}}">Salir</a></li>
<li><a href="{{$urls->base}}/auth/logout">Salir</a></li>
</ul>

View File

@ -1,4 +1,4 @@
<ul class="dropdown-menu">
<li><a href="{{url('', ['p' => 'proyectos', 'a' => 'list'])}}">Listado</a></li>
<li><a href="{{url('', ['p' => 'proyectos', 'a' => 'unidades'])}}">Unidades</a></li>
<li><a href="{{$urls->base}}/proyectos">Listado</a></li>
<li><a href="{{$urls->base}}/proyectos/unidades">Unidades</a></li>
</ul>

View File

@ -1,24 +1,24 @@
<ul class="dropdown-menu">
<li class="dropdown-submenu"><a>Listado</a>
<ul class="dropdown-menu">
<li><a href="{{nUrl('precios', 'listProyectos')}}">Precios</a></li>
<li><a href="{{url('', ['p' => 'cierres', 'a' => 'list'])}}">Cierres</a></li>
<li><a href="{{url('', ['p' => 'ventas', 'a' => 'list'])}}">Ventas</a></li>
<li><a href="{{url('', ['p' => 'cuotas', 'a' => 'pendientes'])}}">Cuotas Pendientes</a></li>
<li><a href="{{url('', ['p' => 'cuotas', 'a' => 'para_abonar'])}}">Abonar Cuotas</a></li>
<li><a href="{{url('', ['p' => 'pagos', 'a' => 'pendientes'])}}">Pagos Pendientes</a></li>
<li><a href="{{url('', ['p' => 'ventas', 'a' => 'consolidacion'])}}">Consolidado Ventas</a>
<li><a href="{{$urls->base}}/precios">Precios</a></li>
<li><a href="{{$urls->base}}/cierres">Cierres</a></li>
<li><a href="{{$urls->base}}/ventas">Ventas</a></li>
<li><a href="{{$urls->base}}/cuotas/pendientes">Cuotas Pendientes</a></li>
<li><a href="{{$urls->base}}/cuotas/abonar">Abonar Cuotas</a></li>
<li><a href="{{$urls->base}}/pagos/pendientes">Pagos Pendientes</a></li>
<li><a href="{{$urls->base}}/ventas/consolidado">Consolidado Ventas</a>
</ul>
</li>
<li class="dropdown-submenu"><a>Informes</a>
<ul class="dropdown-menu">
<li><a href="{{url('', ['p' => 'informes', 'a' => 'ventas'])}}">Ventas</a></li>
<li><a href="{{url('', ['p' => 'informes', 'a' => 'escrituras'])}}">Escrituras</a></li>
<li><a href="{{url('', ['p' => 'informes', 'a' => 'gantt_entregas'])}}">Gantt de Entregas</a></li>
<li><a href="{{nUrl('informes', 'resciliaciones')}}">Resciliaciones</a></li>
<li><a href="{{$urls->base}}/informes/ventas">Ventas</a></li>
<li><a href="{{$urls->base}}/informes/escrituras">Escrituras</a></li>
<li><a href="{{$urls->base}}/informes/entregas/gantt">Gantt de Entregas</a></li>
<li><a href="{{$urls->base}}/informes/resciliaciones">Resciliaciones</a></li>
</ul>
</li>
<li><a href="{{nUrl('precios', 'import')}}">Importar Precios</a></li>
<li><a href="{{nUrl('cierres', 'evalue')}}">Evaluar Cierre</a></li>
<li><a href="{{url('', ['p' => 'ventas', 'a' => 'new'])}}">Nueva Venta <span class="glyphicon glyphicon-plus"></span></a></li>
<li><a href="{{$urls->base}}/precios/import">Importar Precios</a></li>
<li><a href="{{$urls->base}}/cierres/evaluar">Evaluar Cierre</a></li>
<li><a href="{{$urls->base}}/ventas/add">Nueva Venta <span class="glyphicon glyphicon-plus"></span></a></li>
</ul>