Order wasnt showing all accounts for the logged in user
All checks were successful
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 34s
Create Docker Image / Final Docker Image Manifest (push) Successful in 9s

This commit is contained in:
Deon George 2024-08-15 20:19:39 +10:00
parent 8179ad60e1
commit b4c7c3ad20

View File

@ -9,7 +9,9 @@
<div class="container">
<div class="col-12">
<h1>Order Service</h1>
@if($errors->count())<h4><span class="note-danger">There were errors with your order, please try again.</span></h4>@endif
@if($errors->count())
<h4><span class="note-danger">There were errors with your order, please try again.</span></h4>
@endif
<div class="order-page" id="order-page">
<div class="row">
<div class="col-3">
@ -51,7 +53,7 @@
<label for="account_id">Client Account</label>
<select class="form-control" id="account_id" name="account_id">
<option value="">&nbsp;</option>
@foreach ($user->accounts->sortBy('name') as $o)
@foreach ($user->accounts_all->sortBy('name') as $o)
<option value="{{ $o->id }}" @if($o->id == old('account_id')) selected @endif>{{ $o->name }}</option>
@endforeach
</select>