-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
97 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php | ||
|
||
namespace App\Http\Controllers; | ||
|
||
class DashboardController extends Controller | ||
{ | ||
public function index() | ||
{ | ||
return view('dashboard.index', [ | ||
"title" => "Dashboard", | ||
"active" => "dashboard", | ||
]); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
@extends('layouts.main') | ||
|
||
@section('container') | ||
<h1 class="mb-3 text-center fw-bold">Welcome to {{ $title }}, Freya</h1> | ||
@endsection |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,10 +24,9 @@ | |
<form action="/login" method="post"> | ||
@csrf | ||
<div class="form-floating"> | ||
<input type="email" class="form-control" id="email" name="email" | ||
placeholder="[email protected]" autofocus required @error('email') is-invalid @enderror | ||
value="{{ old('email') }}"> | ||
<label for="email">Email address</label> | ||
<input type="email" class="form-control @error('email') is-invalid @enderror" id="email" | ||
name="email" placeholder="[email protected]" value="{{ old('email') }}" autofocus required> | ||
<label class="form-label" for="email">Email address</label> | ||
@error('email') | ||
<div class="invalid-feedback"> | ||
{{ $message }} | ||
|
@@ -37,13 +36,13 @@ | |
<div class="form-floating"> | ||
<input type="password" class="form-control" id="password" name="password" placeholder="Password" | ||
required> | ||
<label for="password">Password</label> | ||
<label class="form-label" for="password">Password</label> | ||
</div> | ||
<div class="form-floating"> | ||
<button class="btn btn-primary w-100 py-2 mt-3" type="submit">Login</button> | ||
|
||
<small class="d-block text-center mt-3 mb-5 ">Not registered? <a href="/register" | ||
class="text-decoration-none">Register Now!</a></small> | ||
<button class="btn btn-primary w-100 py-2 mt-3" type="submit">Login</button> | ||
|
||
<small class="d-block text-center mt-3 mb-5 ">Not registered? <a href="/register" | ||
class="text-decoration-none">Register Now!</a></small> | ||
</form> | ||
</main> | ||
</div> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,8 +9,9 @@ | |
<form action="/register" method="post"> | ||
@csrf | ||
<div class="form-floating"> | ||
<input required type="text" class="form-control rounded-top-3 @error('name') is-invalid @enderror" | ||
id="name" name="name" placeholder="fullname" value="{{ old('name') }}"> | ||
<input type="text" class="form-control rounded-top-3 @error('name') is-invalid @enderror" | ||
id="name" name="name" placeholder="fullname" value="{{ old('name') }}" autofocus | ||
required> | ||
<label class="form-label" for="name">Name</label> | ||
@error('name') | ||
<div class="invalid-feedback"> | ||
|
@@ -19,8 +20,8 @@ | |
@enderror | ||
</div> | ||
<div class="form-floating"> | ||
<input required type="text" class="form-control @error('username') is-invalid @enderror" | ||
id="username" name="username" placeholder="username" value="{{ old('username') }}"> | ||
<input type="text" class="form-control @error('username') is-invalid @enderror" id="username" | ||
name="username" placeholder="username" value="{{ old('username') }}" required> | ||
<label class="form-label" for="username">Username</label> | ||
@error('username') | ||
<div class="invalid-feedback"> | ||
|
@@ -29,8 +30,8 @@ | |
@enderror | ||
</div> | ||
<div class="form-floating"> | ||
<input required type="email" class="form-control @error('email') is-invalid @enderror" | ||
id="email" name="email" placeholder="[email protected]" value="{{ old('email') }}"> | ||
<input type="email" class="form-control @error('email') is-invalid @enderror" id="email" | ||
name="email" placeholder="[email protected]" value="{{ old('email') }}" required> | ||
<label class="form-label" for="email">Email address</label> | ||
@error('email') | ||
<div class="invalid-feedback"> | ||
|
@@ -39,9 +40,8 @@ | |
@enderror | ||
</div> | ||
<div class="form-floating"> | ||
<input required type="password" | ||
class="form-control rounded-bottom-3 @error('password') is-invalid @enderror" id="password" | ||
name="password" placeholder="Password"> | ||
<input type="password" class="form-control rounded-bottom-3 @error('password') is-invalid @enderror" | ||
id="password" name="password" placeholder="Password" required> | ||
<label class="form-label" for="password">Password</label> | ||
@error('password') | ||
<div class="invalid-feedback"> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters