@extends('layout.app') @section('content')
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, '.', '') }} |