Added Layout to Admin Pages
Plugged in the new layout to the admin pages
This commit is contained in:
parent
7151314122
commit
e78c2a04fe
8 changed files with 51 additions and 25 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -3,6 +3,7 @@
|
||||||
/public/build
|
/public/build
|
||||||
/public/hot
|
/public/hot
|
||||||
/public/storage
|
/public/storage
|
||||||
|
/public/reference
|
||||||
/storage/*.key
|
/storage/*.key
|
||||||
/vendor
|
/vendor
|
||||||
.env
|
.env
|
||||||
|
|
|
@ -11,18 +11,26 @@ class DenController extends Controller
|
||||||
public function start(Request $request)
|
public function start(Request $request)
|
||||||
{
|
{
|
||||||
$member = Auth::user();
|
$member = Auth::user();
|
||||||
return view('back.start', ['handle' => $member->handle]);
|
return view('back.start', [
|
||||||
|
'handle' => $member->handle,
|
||||||
|
'title' => "This is The Den"
|
||||||
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function member(Request $request)
|
public function member(Request $request)
|
||||||
{
|
{
|
||||||
$member = Auth::user();
|
$member = Auth::user();
|
||||||
return view('back.member', ['handle' => $member->handle]);
|
return view('back.member', [
|
||||||
|
'handle' => $member->handle,
|
||||||
|
'title' => "Manage Members"]);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function location(Request $request, string $action = "index")
|
public function location(Request $request, string $action = "index")
|
||||||
{
|
{
|
||||||
$member = Auth::user();
|
$member = Auth::user();
|
||||||
return view('back.locations', ['handle' => $member->handle, "action" => $action]);
|
return view('back.locations', [
|
||||||
|
'handle' => $member->handle,
|
||||||
|
'title' => "Manage Locations",
|
||||||
|
"action" => $action]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -50,7 +50,7 @@ h1 {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 20px;
|
bottom: 20px;
|
||||||
width: 70%;
|
width: 66%;
|
||||||
}
|
}
|
||||||
|
|
||||||
h2 {
|
h2 {
|
||||||
|
|
|
@ -1,14 +1,12 @@
|
||||||
@extends('frame')
|
@extends('frame')
|
||||||
|
|
||||||
@section('title', 'Den|Locations')
|
@section('title', 'Den | Location Admin')
|
||||||
|
|
||||||
@section('main-content')
|
@section('main-content')
|
||||||
@parent
|
@parent
|
||||||
<section role="loc-index">
|
<section>
|
||||||
<div>
|
<article>
|
||||||
<h1>Locations</h1>
|
<h2>Location Listings</h2>
|
||||||
Hey {{$handle}}<br />
|
|
||||||
|
|
||||||
@if($action === "add")
|
@if($action === "add")
|
||||||
@include('forms.add-location')
|
@include('forms.add-location')
|
||||||
@elseif($action === "edit")
|
@elseif($action === "edit")
|
||||||
|
@ -18,6 +16,6 @@
|
||||||
@else
|
@else
|
||||||
START
|
START
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</article>
|
||||||
</section>
|
</section>
|
||||||
@endsection
|
@endsection
|
|
@ -1,4 +1,11 @@
|
||||||
<div>
|
@extends('frame')
|
||||||
<h1>Mmeber Stuff</h1>
|
|
||||||
Hey {{$handle}}
|
@section('title', 'Den | Member Admin')
|
||||||
</div>
|
|
||||||
|
@section('main-content')
|
||||||
|
<section>
|
||||||
|
<article>
|
||||||
|
<h2>Member Listing </h2>
|
||||||
|
</article>
|
||||||
|
</section>
|
||||||
|
@endsection
|
|
@ -4,8 +4,9 @@
|
||||||
|
|
||||||
@section('main-content')
|
@section('main-content')
|
||||||
|
|
||||||
<div>
|
<section>
|
||||||
<h1>The Den</h1>
|
<article>
|
||||||
Hey {{$handle}}
|
<h2>Hey {{$handle}} </h2>
|
||||||
</div>
|
</article>
|
||||||
|
</section>
|
||||||
@endsection
|
@endsection
|
|
@ -30,9 +30,21 @@
|
||||||
<a href="/listings/1" title="instance listing" class="nav-links">
|
<a href="/listings/1" title="instance listing" class="nav-links">
|
||||||
Listings
|
Listings
|
||||||
</a><br />
|
</a><br />
|
||||||
|
@if(Auth::check())
|
||||||
|
<a href="/den/member" title="den-member" class="nav-links">
|
||||||
|
Member
|
||||||
|
</a><br />
|
||||||
|
<a href="/den/locations" title="den-locations" class="nav-links">
|
||||||
|
Locations
|
||||||
|
</a><br />
|
||||||
|
<a href="/logout" title="logout" class="nav-links">
|
||||||
|
Logout
|
||||||
|
</a><br />
|
||||||
|
@else
|
||||||
<a href="/den" title="login" class="nav-links">
|
<a href="/den" title="login" class="nav-links">
|
||||||
The Den
|
The Den
|
||||||
</a>
|
</a><br />
|
||||||
|
@endif
|
||||||
</nav>
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -3,14 +3,13 @@
|
||||||
@section('main-content')
|
@section('main-content')
|
||||||
@parent
|
@parent
|
||||||
<section>
|
<section>
|
||||||
<article>
|
<article role="list">
|
||||||
<h2>Page {{$pageNum}}</h2>
|
<h2>Page {{$pageNum}}</h2>
|
||||||
|
|
||||||
<a href="/listings/{{$prev}}">PREV</a>
|
<a href="/listings/{{$prev}}">PREV</a>
|
||||||
{{$pageNum}} of {{$totalPages}}
|
{{$pageNum}} of {{$totalPages}}
|
||||||
<a href="/listings/{{$next}}">NEXT</a><br />
|
<a href="/listings/{{$next}}">NEXT</a><br />
|
||||||
@foreach($locations as $location)
|
@foreach($locations as $location)
|
||||||
<a href="/location/{{$location->uuid}}">{{$location->name}}</a></a><br />
|
<a role="listitem" href="/location/{{$location->uuid}}">{{$location->name}}</a></a><br />
|
||||||
@endforeach
|
@endforeach
|
||||||
<a href="/listings/{{$prev}}">PREV</a>
|
<a href="/listings/{{$prev}}">PREV</a>
|
||||||
{{$pageNum}} of {{$totalPages}}
|
{{$pageNum}} of {{$totalPages}}
|
||||||
|
|
Loading…
Reference in a new issue