mirror of
https://koodu.h-i.works/projects/thebadspace
synced 2025-05-06 14:41:02 -05:00
after the site is installed and the DB set up, there needed to be a way to create the first account that will be used as the admin to access the den, the admin section of tbs the system makes a check to see if this account exists and if there isn't one present, it shows the admin account set up screen on the index. it goes away after the account is created.
52 lines
1.7 KiB
PHP
52 lines
1.7 KiB
PHP
@extends('frame')
|
|
|
|
@section('title', 'Den | Member Admin')
|
|
|
|
@php
|
|
switch($mode)
|
|
{
|
|
case 'member-create':
|
|
$action_url = '/den/member/create';
|
|
break;
|
|
case 'member-edit':
|
|
$action_url = '/den/member/edit';
|
|
break;
|
|
case 'admin-create':
|
|
$action_url = '/den/member/admin-create';
|
|
break;
|
|
}
|
|
@endphp
|
|
@section('main-content')
|
|
<section>
|
|
<article>
|
|
@switch($mode)
|
|
@case('member-edit')
|
|
<h2>Edit Info for {{$member->handle}}</h2>
|
|
@include('forms.member-edit')
|
|
<br />
|
|
@break
|
|
|
|
@case('member-create')
|
|
<h2>New Member Info</h2>
|
|
@include('forms.member-edit')
|
|
<br />
|
|
@break
|
|
|
|
@case('admin-create')
|
|
<h2>Make your first account</h2>
|
|
*This will be your administrator account.
|
|
@include('forms.member-edit')
|
|
<br />
|
|
@break
|
|
|
|
@default
|
|
<h2>Member Listing </h2>
|
|
@foreach($members as $member)
|
|
<a href="/den/member/{{$member->uuid}}">{{$member->handle}}</a><br />
|
|
@endforeach
|
|
<h2>Add Member </h2>
|
|
<a href="/den/member/edit/create">Make a new friend</a><br />
|
|
@endswitch
|
|
</article>
|
|
</section>
|
|
@endsection |