@if(!$cont->prin_cont) @endif @foreach($notacontabila->groupBy("luna_anul") as $notacontabilaLuna) @foreach($notacontabilaLuna as $nota) @endforeach @endforeach
{{"Fișă cont ".$selectie}}
Nr
crt
Data Partener Cont
corespondent
Debit Credit Sold Explicatie Document
(tip,nr,data)
{{'Rulaj precedent '.$anul}} {{$rulajDebit}} {{ $rulajCredit}} @if($cont->tip_cont=="Bifunctional") {{ abs($cont->soldinitial)}} @endif @if($cont->tip_cont!="Bifunctional") {{ $cont->soldinitial}} @endif
{{ $i++ }}. {{dateFormatAfisare($nota->data_nota) }} {{$nota->denumire_partener }} @if($nota->contd==$cont->cont) {{ $nota->contc }} @endif @if($nota->contc==$cont->cont) {{ $nota->contd }} @endif @if($nota->contd==$cont->cont) {{ $nota->debit}} @endif @if($nota->contc==$cont->cont) {{ $nota->credit}} @endif @if(!$cont->prin_cont) @if($cont->tip_cont=="Creditor") {{ $sold+=($nota->credit-$nota->debit) }} @endif @if($cont->tip_cont=="Debitor") {{ $sold+=($nota->debit-$nota->credit) }} @endif @if($cont->tip_cont=="Bifunctional") {{ abs($sold+=($nota->debit-$nota->credit)) }} @endif @endif {{ $nota->explicatie}} @if($nota->tip_document||$nota->nr_document||$nota->data_document) {{$nota->tip_document }} {{$nota->nr_document."/".dateFormatAfisare($nota->data_document) }} @endif
TOTAL LUNA {{lunainlitere($notacontabilaLuna[0]->luna)." ".$notacontabilaLuna[0]->anul}} {{ $notacontabilaLuna->sum('debit') }} {{ $notacontabilaLuna->sum('credit') }} @if(!$cont->prin_cont) @if($cont->tip_cont=="Bifunctional") {{ abs($sold)}} @endif @if($cont->tip_cont!="Bifunctional") {{ $sold}} @endif @endif
TOTAL {{ $notacontabila->sum('debit') }} {{ $notacontabila->sum('credit') }} @if(!$cont->prin_cont) @if($cont->tip_cont=="Bifunctional") {{ abs($sold)}} @endif @if($cont->tip_cont!="Bifunctional") {{ $sold}} @endif @endif