Pārlūkot izejas kodu

"/hr" only applicable for "treatment services"

Vijayakrishnan 4 gadi atpakaļ
vecāks
revīzija
f8283ba013

+ 3 - 1
resources/views/app/patient/note/_create-bill.blade.php

@@ -17,7 +17,9 @@
                     <select autofocus class="form-control" name="code" onchange="switchNumberOfUnitsByType(this)">
                         <option value="">-- Select Code --</option>
                         @foreach($noteRates as $noteRate)
-                            <option data-amount="{{ $noteRate->amount }}" value="{{ $noteRate->code }}">{{ $noteRate->code }} (${{ $noteRate->amount }}/hr)</option>
+                            <option data-amount="{{ $noteRate->amount }}" value="{{ $noteRate->code }}">
+                                {{ $noteRate->code }} (${{ $noteRate->amount }}{{ $noteRate->code === 'Treatment Services' ? '/hr' : '' }})
+                            </option>
                         @endforeach
                     </select>
                 @endif