@extends('layout.app') @section('content')
Total Row: {{ $dueOtc->count() }}
@php $total = 0; @endphp @php $totalOtc = 0; @endphp @foreach ($dueOtc as $r) @endforeach
ID Date Username Name Contact OTC Due OTC
{{ $r->clients->id ?? '' }} {{ date('d-M-Y h:i:s A', strtotime($r->created_at)) }} {{ $r->clients->userid ?? '' }} {{ $r->clientsinfo->clients_name ?? '' }} {{ $r->clientsinfo->contact_no ?? '' }} @php $totalOtc += $r->bill_amount @endphp {{ $r->bill_amount }} @php $total += $r->clientsinfo->otc_due @endphp {{ $r->clientsinfo->otc_due }}
Total: {{ number_format($totalOtc, 2, '.', '') }} {{ number_format($total, 2, '.', '') }}
@endsection