@props([ 'title' => '', 'rows' => [], 'customerIds' => [], ]) @php $totalAmount = $totalRate = 0; @endphp @forelse($rows as $row) @php $totalAmount += $row->amount; $totalRate += $row->rate; $hasTransaction = in_array($row->customer_id, $customerIds); @endphp @empty @endforelse
{{ $title }}
{{ __('validation.attributes.code') }} {{ __('validation.attributes.name') }} {{ __('validation.attributes.amount') }} %
{{ $row->customer_code }} {{ $row->customer_name }} {{ $row->amount}} {{ $row->rate }}
{{ __('messages.data.not-found') }}
Total {{ $totalAmount }} {{ $totalRate }}