@if($collections->isEmpty() && request()->hasAny(['dealer_id','customer_id','transaction_type','payment_method','start_date','end_date']))
No matching data found for your search criteria.
@endif
EMI Collection
@if($collections->isNotEmpty())
@endif
SL
Shop Information
Customer Information
Sale Bill Number
Tra. Type
Transaction ID
Date & Time
Principle
Interest
Amount (TK)
Action
Name
Shop ID
Mobile Number
Customer Name
Mobile Number
Date
Time
@php $totalPrinciple = 0; $totalInterest = 0;$totalAmount = 0;@endphp
@foreach($collections as $index => $row)
@php $totalPrinciple += $row['principal']; $totalInterest += $row['interest']; $totalAmount += $row['amount'];@endphp
{{ $index + 1 }}
{{ $row['shop_owner'] }}
{{ $row['shop_id'] }}
{{ $row['shop_mobile'] }}
{{ $row['customer_name'] }}
{{ $row['customer_mobile'] }}
{{ $row['sale_bill_number'] }}
{{ $row['transaction_type'] ? $row['transaction_type'] : 'Cash' }}
{{ $row['transaction_id'] }}
{{ $row['date'] }}
{{ $row['time'] }}
{{ number_format($row['principal'], 2) }}
{{ number_format($row['interest'], 2) }}
{{ number_format($row['amount'], 2) }}
@endforeach
| Total |
{{ number_format($totalPrinciple, 2) }} |
{{ number_format($totalInterest, 2) }} |
{{ number_format($totalAmount, 2) }} |
|