@extends('layout.app') @section('content')
@php $total = 0; $dueOtc = 0; @endphp @foreach ($Otc as $r) @endforeach
ID C. date Clients Name Area Contact No OTC Due OTC
{{ $r->id }} {{ $r->client_create_date }} {{ $r->clients_name }} {{ $r->area }} {{ $r->contact_no }} @php $total += $r->otc @endphp {{ $r->otc }} @php $dueOtc += $r->otc_due @endphp {{ $r->otc_due }}
Total: {{ number_format($total, 2, '.', '') }} {{ number_format($dueOtc, 2, '.', '') }}
@endsection