@foreach ($transactions as $item) @php $tbd = ' '.$tbody; @endphp {!! newBladeStringCompiler($tbd, $item->toArray()) !!} @endforeach @if (count($otherTransactions)) {{ getInvoiceViewName($invoice->transaction_type, 2) }} {{ $print_settings["total_tfoot"]->label }} {!! newBladeStringCompiler($tfoot, $transactions->toArray()) !!} @php $title = getInvoiceViewName($otherTransactions->first()->transaction_type, 2); @endphp {{ $title }} @foreach ($otherTransactions as $item) @php $tbd = ' '.$tbody; @endphp {!! newBladeStringCompiler($tbd, $item->toArray()) !!} @endforeach span }}"> {{ $title }} {{ $print_settings["total_tfoot"]->label }} {!! newBladeStringCompiler($tfoot, $otherTransactions->toArray()) !!} @endif