@extends('admin.layouts.dashboard') @section('title', 'Daily Transactions') @section('content') @php $dt = $start_dt ?? date('d-m-Y'); @endphp
@csrf
@php $anyRows = collect($daily_details_transaction)->contains(fn ($day) => count($day->ttl_paid) > 0); @endphp @if (! $anyRows) @else
@foreach ($daily_details_transaction as $val) @php $total = 0; @endphp @foreach ($val->ttl_paid as $j => $att) @php $total += $att->paid_total; @endphp @endforeach @if (count($val->ttl_paid) > 0) @endif @endforeach
SL Date Name Paid amount Remark
{{ $j + 1 }} {{ date('d-m-Y', strtotime($att->payment_date)) }} {{ ucwords($att->fullname) }} {{ $att->paid_total }}
Total {{ number_format($total, 2) }}
@endif
@endsection