@php $sl = 0; $total = 0; @endphp @foreach($withdraws as $withdraw) @php $sl++; $total += $withdraw->amount ?? 0; @endphp @if($withdraw->paidDate) @else @endif @if($withdraw->isPaid == 0) @else @endif @endforeach
SL# Member Name Member Code Unsettle Date Payment Date Amount Action
{{$sl}} {{ $withdraw->name }} {{ $withdraw->code }} {{ date('d-m-Y', strtotime($withdraw->date)) }}{{ date('d-m-Y', strtotime($withdraw->paidDate)) }} - {{ number_format($withdraw->amount, 2) }} Pay   Paid  
Total Amount {{number_format($total,2)}}