@php use Carbon\Carbon; @endphp @if(!empty($items)) @php $tota_amount=$total_amounts;@endphp @foreach($items as $item)
Amount : {{$item->amount}}
@if($item->is_paid=='1') icon

Success

@endif @if($item->is_approved=='0') icon

Pending..

@endif @if($item->is_approved=='1') icon

Approved..

@endif
@php $Transdate = Carbon::parse($item->created_at); @endphp

By : {{$item->user->name}}   |   Date : {{$Transdate->format('Y-m-d h:i:s A')}}

Sum : {{$tota_amount}} - {{$item->amount}} = {{$tota_amount-$item->amount}}

icon

Account Details

@if($item->payment_type=='Cash')

Payment Mode : Cash   |   Payment Note : {{$item->payment_note}}

@endif @if($item->payment_type=='Passbook')

Payment Mode : Passbook Photo Copy   |   Payment Note : {{$item->payment_note}}

@endif @if($item->payment_type=='BANK')

Bank Name : {{$item->bank_details->bank_name}}   |   A/C No. : {{$item->bank_details->account_number}}

Account Holder Name : {{$item->bank_details->account_holder_name}}   |  IFSC Code : {{$item->bank_details->ifsc_code}}

@endif
@if($item->is_approved=='0') Not Approved @endif @if($item->is_approved=='1') Approved @endif @if($item->payment_type=='Passbook') View passbook @endif
@php $tota_amount=$tota_amount-$item->amount;@endphp @endforeach @endif