{{ $dt['codigo']}} |
{{ utf8_decode($dt['nombre_cuenta'])}} |
0.00 |
{{ $dt['debe']}} |
{{ $dt['haber']}} |
@php
$total = 0;
@endphp
@if ($dt['naturaleza'] =="1")
@php
$total = $dt['debe']-$dt['haber'];
@endphp
@else
@php
$total = $dt['haber']-$dt['debe'];
@endphp
@endif
{{$total }} |
@endif
@endforeach
@if (count($data1)>0 )
@if (($data1[0]['debe'] > 0 || $data1[0]['haber'] > 0))
@php
$total = 0;
if ($dt['naturaleza'] =="1") {
$total = $data1[0]['debe']-$data1[0]['haber'];
}else{
$total = $data1[0]['haber']-$data1[0]['debe'];
}
@endphp