@extends('plantillas.app') @section('titulo') {{-- {{ $datoCuenta->cuenta }} - {{ $datoCuenta->descripcion }} --}} @endsection @section('breadcrumbs') {!! Breadcrumbs::render('inicio.cuenta.detalle',$registros->first(),date('n',strtotime($registros->first()->fecha)),$tipo) !!} @endsection @section('contenido')

{{ nombreMes(date('n',strtotime($registros->first()->fecha))) }} - Reporte detallado @if($tipo=="costos") {{ $registros->first()->cuenta_contable_costos }} - {{ $registros->first()->descripcion_contable_costos }} @else {{ $registros->first()->cuenta_contable }} - {{ $registros->first()->descripcion_cuenta_contable }} @endif

@php $suma=0; @endphp @foreach($registros as $registro) @php $numero=$registro->flag=="D"?$registro->valor:$registro->valor*-1; $suma= $suma + $numero; @endphp @endforeach
Local Fecha Tipo comprobante Comprobante Glosa Cuenta elemento 6 Centro de costo Cuenta elemento 9 Valor
{{ $registro->local }} {{ $registro->fecha }} {{ $registro->tipo }} - {{ $registro->descripcion_tipo }} {{ $registro->numero }} {{ $registro->glosa }} {{ $registro->cuenta_contable }} - {{ $registro->descripcion_cuenta_contable }} {{ $registro->centro_costos }} - {{ $registro->descripcion_centro_costos }} {{ $registro->cuenta_contable_costos }} - {{ $registro->descripcion_contable_costos }} {{ number_format($registro->flag=="D"?$registro->valor:$registro->valor*-1,2) }}
Total {{ number_format($suma,2) }}
@endsection