Simplificacion a contabilidad clasica
This commit is contained in:
@ -1,4 +0,0 @@
|
||||
<?php
|
||||
use Contabilidad\Common\Controller\Bancos;
|
||||
|
||||
$app->get('/bancos/add', [Bancos::class, 'add']);
|
@ -2,3 +2,4 @@
|
||||
use Contabilidad\Common\Controller\Cuentas;
|
||||
|
||||
$app->get('/cuentas', Cuentas::class);
|
||||
$app->get('/cuenta/{cuenta_id}', [Cuentas::class, 'show']);
|
||||
|
@ -1,4 +0,0 @@
|
||||
<?php
|
||||
use Contabilidad\Common\Controller\Fuentes;
|
||||
|
||||
$app->get('/fuente/{fuente_id}', [Fuentes::class, 'show']);
|
@ -1,4 +0,0 @@
|
||||
<?php
|
||||
use Contabilidad\Common\Controller\TiposFuentes;
|
||||
|
||||
$app->get('/tipos_fuentes/add', [TiposFuentes::class, 'add']);
|
@ -1,14 +0,0 @@
|
||||
@extends('layout.base')
|
||||
|
||||
@section('page_content')
|
||||
<h1 class="ui header">
|
||||
@hasSection('bancos_title')
|
||||
Banco @yield('bancos_title')
|
||||
@else
|
||||
Bancos
|
||||
@endif
|
||||
</h1>
|
||||
<div class="ui segment">
|
||||
@yield('bancos_content')
|
||||
</div>
|
||||
@endsection
|
@ -1,27 +1,30 @@
|
||||
@extends('fuentes.base')
|
||||
@extends('cuentas.base')
|
||||
|
||||
@section('fuentes_title')
|
||||
<span id="fuente"></span>
|
||||
@section('cuentas_title')
|
||||
<span id="cuenta"></span>
|
||||
@endsection
|
||||
|
||||
@section('fuentes_content')
|
||||
<table class="ui table">
|
||||
@section('cuentas_content')
|
||||
<table class="ui striped table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
Fecha
|
||||
</th>
|
||||
<th>
|
||||
Cuenta
|
||||
</th>
|
||||
<th>
|
||||
Glosa
|
||||
Categoría
|
||||
</th>
|
||||
<th>
|
||||
Detalle
|
||||
</th>
|
||||
<th class="right aligned">
|
||||
Valor
|
||||
Debe
|
||||
</th>
|
||||
<th class="right aligned">
|
||||
Haber
|
||||
</th>
|
||||
<th class="right aligned">
|
||||
Saldo
|
||||
</th>
|
||||
<th class="right aligned">
|
||||
<button class="ui tiny green circular icon button">
|
||||
@ -30,9 +33,10 @@
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="entradas">
|
||||
<tbody id="transacciones">
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div class="ui modal">
|
||||
<i class="close icon"></i>
|
||||
<div class="content">
|
||||
@ -71,11 +75,11 @@
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script type="text/javascript" src="{{$urls->scripts}}/fuentes.show.js"></script>
|
||||
<script type="text/javascript" src="{{$urls->scripts}}/cuentas.show.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(() => {
|
||||
entradas.fuente = {{$fuente_id}}
|
||||
entradas.setup()
|
||||
transacciones.cuenta_id = {{$cuenta_id}}
|
||||
transacciones.setup()
|
||||
})
|
||||
</script>
|
||||
@endpush
|
@ -1,14 +0,0 @@
|
||||
@extends('layout.base')
|
||||
|
||||
@section('page_content')
|
||||
<h1 class="ui header">
|
||||
@hasSection('fuentes_title')
|
||||
Fuente @yield('fuentes_title')
|
||||
@else
|
||||
Fuentes
|
||||
@endif
|
||||
</h1>
|
||||
<div class="ui segment">
|
||||
@yield('fuentes_content')
|
||||
</div>
|
||||
@endsection
|
@ -4,31 +4,13 @@
|
||||
<h1 class="ui header">
|
||||
Contabilidad
|
||||
</h1>
|
||||
<div class="ui modal">
|
||||
<i class="close icon"></i>
|
||||
<div class="content">
|
||||
<form class="ui form">
|
||||
<div class="field">
|
||||
<label>Tipo</label>
|
||||
<select name="tipo"></select>
|
||||
</div>
|
||||
<div class="field">
|
||||
<label>Banco</label>
|
||||
<select name="banco"></select>
|
||||
</div>
|
||||
<button class="ui icon button">
|
||||
<i class="plus icon"></i>
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script type="text/javascript" src="{{$urls->scripts}}/home.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(() => {
|
||||
fuentes.setup()
|
||||
cuentas.setup()
|
||||
})
|
||||
</script>
|
||||
@endpush
|
||||
|
@ -1,5 +1,7 @@
|
||||
<body>
|
||||
@include('layout.body.header')
|
||||
@yield('page_content')
|
||||
<div class="ui bottom attached segment">
|
||||
@yield('page_content')
|
||||
</div>
|
||||
@include('layout.body.footer')
|
||||
</body>
|
||||
|
@ -1,4 +1,4 @@
|
||||
<nav class="ui menu">
|
||||
<nav class="ui top attached menu">
|
||||
<a class="item" href="{{$urls->base}}">Inicio</a>
|
||||
@include('layout.body.menu.cuentas')
|
||||
@include('layout.body.menu.categorias')
|
||||
|
@ -1,14 +0,0 @@
|
||||
@extends('layout.base')
|
||||
|
||||
@section('page_content')
|
||||
<h1 class="ui header">
|
||||
@hasSection('tipos_fuentes_title')
|
||||
Tipo Fuente @yield('tipos_fuentes_title')
|
||||
@else
|
||||
Tipos Fuentes
|
||||
@endif
|
||||
</h1>
|
||||
<div class="ui segment">
|
||||
@yield('tipos_fuentes_content')
|
||||
</div>
|
||||
@endsection
|
Reference in New Issue
Block a user