|
@@ -12,6 +12,7 @@ $invoices = \App\Models\Invoice::where($parentType === 'Note' ? 'note_id' : 'car
|
|
|
<a href="" start show>
|
|
|
+ Add Invoice
|
|
|
</a>
|
|
|
+
|
|
|
<form url="/api/invoice/create" class="mcp-theme-1">
|
|
|
<p class="mb-2 text-secondary font-weight-bold">Add Invoice</p>
|
|
|
<input type="hidden" name="{{$parentType === 'Note' ? 'noteUid' : 'careMonthUid'}}" value="{{$parentUid}}">
|
|
@@ -20,7 +21,7 @@ $invoices = \App\Models\Invoice::where($parentType === 'Note' ? 'note_id' : 'car
|
|
|
<select name="customerUid" class="form-control form-control-sm" required>
|
|
|
<option value="">-- select --</option>
|
|
|
@foreach($patient->customers as $customer)
|
|
|
- <option value="{{$customer->uid}}">{{$customer->company->name}}</option>
|
|
|
+ <option value="{{$customer->uid}}">{{$customer->client->name_first}} {{$customer->client->name_last}}</option>
|
|
|
@endforeach
|
|
|
</select>
|
|
|
</div>
|
|
@@ -260,4 +261,4 @@ $invoices = \App\Models\Invoice::where($parentType === 'Note' ? 'note_id' : 'car
|
|
|
}
|
|
|
addMCInitializer('generic-invoices-{{camel_case($parentType)}}-{{$parentID}}', init, '#generic-invoices-{{camel_case($parentType)}}-{{$parentID}}')
|
|
|
}).call(window);
|
|
|
-</script>
|
|
|
+</script>
|