Order wasnt showing all accounts for the logged in user
This commit is contained in:
parent
8179ad60e1
commit
b4c7c3ad20
@ -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=""> </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>
|
||||
|
Loading…
Reference in New Issue
Block a user