Added Layout to Admin Pages

Plugged in the new layout to the admin pages
This commit is contained in:
Ro 2023-08-18 18:50:33 -07:00
parent 7151314122
commit e78c2a04fe
No known key found for this signature in database
GPG key ID: 29B551CDBD4D3B50
8 changed files with 51 additions and 25 deletions

1
.gitignore vendored
View file

@ -3,6 +3,7 @@
/public/build
/public/hot
/public/storage
/public/reference
/storage/*.key
/vendor
.env

View file

@ -11,18 +11,26 @@ class DenController extends Controller
public function start(Request $request)
{
$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)
{
$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")
{
$member = Auth::user();
return view('back.locations', ['handle' => $member->handle, "action" => $action]);
return view('back.locations', [
'handle' => $member->handle,
'title' => "Manage Locations",
"action" => $action]);
}
}

View file

@ -50,7 +50,7 @@ h1 {
margin: 0;
position: absolute;
bottom: 20px;
width: 70%;
width: 66%;
}
h2 {

View file

@ -1,14 +1,12 @@
@extends('frame')
@section('title', 'Den|Locations')
@section('title', 'Den | Location Admin')
@section('main-content')
@parent
<section role="loc-index">
<div>
<h1>Locations</h1>
Hey {{$handle}}<br />
<section>
<article>
<h2>Location Listings</h2>
@if($action === "add")
@include('forms.add-location')
@elseif($action === "edit")
@ -18,6 +16,6 @@
@else
START
@endif
</div>
</article>
</section>
@endsection

View file

@ -1,4 +1,11 @@
<div>
<h1>Mmeber Stuff</h1>
Hey {{$handle}}
</div>
@extends('frame')
@section('title', 'Den | Member Admin')
@section('main-content')
<section>
<article>
<h2>Member Listing </h2>
</article>
</section>
@endsection

View file

@ -4,8 +4,9 @@
@section('main-content')
<div>
<h1>The Den</h1>
Hey {{$handle}}
</div>
<section>
<article>
<h2>Hey {{$handle}} </h2>
</article>
</section>
@endsection

View file

@ -30,9 +30,21 @@
<a href="/listings/1" title="instance listing" class="nav-links">
Listings
</a><br />
<a href="/den" title="login" class="nav-links">
The Den
</a>
@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">
The Den
</a><br />
@endif
</nav>
</div>
</div>

View file

@ -3,14 +3,13 @@
@section('main-content')
@parent
<section>
<article>
<article role="list">
<h2>Page {{$pageNum}}</h2>
<a href="/listings/{{$prev}}">PREV</a>
{{$pageNum}} of {{$totalPages}}
<a href="/listings/{{$next}}">NEXT</a><br />
@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
<a href="/listings/{{$prev}}">PREV</a>
{{$pageNum}} of {{$totalPages}}