@extends('admin.layouts.dashboard') @section('title', 'Date Range Transactions') @section('content') @php $sdt = $start_dt ?? date('d-m-Y'); $edt = $end_dt ?? date('d-m-Y'); $ttl_subs = 0; $ttl_paid = 0; @endphp
@csrf
@if (count($transaction_details) === 0) @else
@foreach ($transaction_details as $i => $att) @php $ttl_subs += $att->ttl_amt; $ttl_paid += $att->ttl_paid; @endphp @endforeach
SL Date Subscription Paid Remark
{{ $i + 1 }} {{ date('d-m-Y', strtotime($att->calendar_date)) }} {{ $att->ttl_amt }} {{ $att->ttl_paid }}
Total {{ number_format($ttl_subs, 2) }} {{ number_format($ttl_paid, 2) }}
@endif
@endsection