#id | Date | Username | Name | Paid | Discount | @if (auth()->user()->id == 1)OTC | @endif
---|---|---|---|---|---|---|
{{ $p->id }} | {{ date('d-M-Y h:i:s A', strtotime($p->created_at)) }} | {{ $p->clients->userid ?? '' }} | {{ $p->clientsinfo->clients_name ?? '' }} | {{ $p->paid_amount }} | {{ $p->discount_amount }} | @if (auth()->user()->id == 1){{ $p->clientsinfo->otc ?? '' }} | @endif
Total | {{ number_format($totalOtc, 2, '.', '') }} | {{ number_format($totalOtcDiscount, 2, '.', '') }} |