@php $sl = 0; @endphp @foreach ($purchases as $purchase) @php $is_init = true; ++$sl; $rowspan = $purchase->getTransactions->count(); @endphp @if($rowspan == 0) @continue @endif @foreach ($purchase->getTransactions as $tr) @if($is_init) @endif @if($is_init) @php $is_init = false; @endphp @endif @endforeach @endforeach
{{__('msg.sl')}} {{__('msg.date')}} {{__('msg.vendor')}} {{__('msg.item')}} {{__('msg.qty')}} {{ __('msg.rate')}} {{ __('msg.total')}} {{ __('msg.gross_total')}}
{{$sl }}.{{ $loop->iteration }}{{ cdate($purchase->date) }} {{ $purchase->getParty->name ?? '' }}{{ $tr->description ?? '' }} {{ $tr->qty ?? '' }} {{ $tr->rate ?? '' }} {{ $tr->total ?? '' }}{{ $purchase->gross_total }}
{{ __('msg.total') }} {{ $purchases->sum('gross_total') }}