[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([
|
return view('home')->with([
|
||||||
'usage' => $usage,
|
'usage' => $usage,
|
||||||
'credits' => $credits,
|
'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,
|
'bg' => $bg,
|
||||||
'boxText' => $boxText,
|
'boxText' => $boxText,
|
||||||
'unit' => $unit,
|
'unit' => $unit,
|
||||||
|
|
|
@ -95,6 +95,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
<label for="position">{{__('Position')}}</label>
|
||||||
<select id="position" style="width:100%" class="custom-select" name="position[]"
|
<select id="position" style="width:100%" class="custom-select" name="position[]"
|
||||||
required multiple autocomplete="off" @error('position') is-invalid @enderror>
|
required multiple autocomplete="off" @error('position') is-invalid @enderror>
|
||||||
@foreach ($positions as $position)
|
@foreach ($positions as $position)
|
||||||
|
|
|
@ -96,6 +96,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
<label for="position">{{__('Position')}}</label>
|
||||||
<select id="position" style="width:100%" class="custom-select" name="position[]"
|
<select id="position" style="width:100%" class="custom-select" name="position[]"
|
||||||
required multiple autocomplete="off" @error('position') is-invalid @enderror>
|
required multiple autocomplete="off" @error('position') is-invalid @enderror>
|
||||||
@foreach ($positions as $position)
|
@foreach ($positions as $position)
|
||||||
|
|
|
@ -133,7 +133,7 @@
|
||||||
</div>
|
</div>
|
||||||
<!-- /.card-header -->
|
<!-- /.card-header -->
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
@foreach ($useful_links as $useful_link)
|
@foreach ($useful_links_dashboard as $useful_link)
|
||||||
<div class="alert alert-dismissible">
|
<div class="alert alert-dismissible">
|
||||||
<button type="button" class="close" data-dismiss="alert"
|
<button type="button" class="close" data-dismiss="alert"
|
||||||
aria-hidden="true">×</button>
|
aria-hidden="true">×</button>
|
||||||
|
|
Loading…
Reference in a new issue