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