[FIX] Useful_links: Add Label for Position and links on home (#705)
This commit is contained in:
commit
1d2e453fc2
4 changed files with 4 additions and 2 deletions
|
@ -111,7 +111,7 @@ class HomeController extends Controller
|
|||
return view('home')->with([
|
||||
'usage' => $usage,
|
||||
'credits' => $credits,
|
||||
'useful_links' => UsefulLink::where("position","like","%dashboard%")->get()->sortby("id"),
|
||||
'useful_links_dashboard' => UsefulLink::where("position","like","%dashboard%")->get()->sortby("id"),
|
||||
'bg' => $bg,
|
||||
'boxText' => $boxText,
|
||||
'unit' => $unit,
|
||||
|
|
|
@ -95,6 +95,7 @@
|
|||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="position">{{__('Position')}}</label>
|
||||
<select id="position" style="width:100%" class="custom-select" name="position[]"
|
||||
required multiple autocomplete="off" @error('position') is-invalid @enderror>
|
||||
@foreach ($positions as $position)
|
||||
|
|
|
@ -96,6 +96,7 @@
|
|||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="position">{{__('Position')}}</label>
|
||||
<select id="position" style="width:100%" class="custom-select" name="position[]"
|
||||
required multiple autocomplete="off" @error('position') is-invalid @enderror>
|
||||
@foreach ($positions as $position)
|
||||
|
|
|
@ -133,7 +133,7 @@
|
|||
</div>
|
||||
<!-- /.card-header -->
|
||||
<div class="card-body">
|
||||
@foreach ($useful_links as $useful_link)
|
||||
@foreach ($useful_links_dashboard as $useful_link)
|
||||
<div class="alert alert-dismissible">
|
||||
<button type="button" class="close" data-dismiss="alert"
|
||||
aria-hidden="true">×</button>
|
||||
|
|
Loading…
Reference in a new issue