@extends('admin.layout') @section('content')
| Patient Name | Age | Phone | Visit ID | Tests | Total Discount | {{-- ✅ Added Discount Column --}}Total Amount | Action |
|---|---|---|---|---|---|---|---|
| {{ $tests->first()->patient->patient_name }} | {{ $tests->first()->patient->age }} | {{ $tests->first()->patient->phone }} | {{ $visitId }} |
@foreach ($tests as $test)
{{ $test->healthTest->test_name }} (₹{{ $test->price }}) @endforeach |
₹{{ $tests->sum('discount') }} | {{-- ✅ Discount Total --}}₹{{ $tests->sum('price') - $tests->sum('discount') }} |