-
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
1 parent
674c773
commit adf351f
Showing
10 changed files
with
153 additions
and
189 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
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
Empty file.
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,53 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/css/bootstrap.min.css" integrity="sha384-gH2yIJqKdNHPEq0n4Mqa/HGKIhSkIHeL5AyhkYV8i59U5AR6csBvApHHNl/vI1Bx" crossorigin="anonymous"> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/js/bootstrap.min.js"> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/js/bootstrap.bundle.min.js"> | ||
<title>Just-1</title> | ||
</head> | ||
<body> | ||
<nav class="navbar navbar-expand-lg navbar-dark bg-dark"> | ||
<a class="navbar-brand" href="#">Navbar</a> | ||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"> | ||
<span class="navbar-toggler-icon"></span> | ||
</button> | ||
|
||
<div class="collapse navbar-collapse" id="navbarSupportedContent"> | ||
<ul class="navbar-nav mr-auto"> | ||
<li class="nav-item active"> | ||
<a class="nav-link" href="{{url('/')}}">Home</a> | ||
</li> | ||
<li class="nav-item"> | ||
<a class="nav-link" href="{{url('/posts')}}">Posts</a> | ||
</li> | ||
<li class="nav-item dropdown"> | ||
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> | ||
Dropdown | ||
</a> | ||
<div class="dropdown-menu" aria-labelledby="navbarDropdown"> | ||
<a class="dropdown-item" href="#">Action</a> | ||
<a class="dropdown-item" href="#">Another action</a> | ||
<div class="dropdown-divider"></div> | ||
<a class="dropdown-item" href="#">Something else here</a> | ||
</div> | ||
</li> | ||
<li class="nav-item"> | ||
<a class="nav-link disabled" href="#">Disabled</a> | ||
</li> | ||
</ul> | ||
<form style="margin-left: auto;margin-right: 126px;display: flex; width: 30%; justify-content: space-around;" class="form-inline my-2 my-lg-0" type="get" action="{{url('/search')}}"> | ||
<input class="form-control mr-sm-2" name="query" placeholder="Search post" aria-label="Search"><br> | ||
<button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button> | ||
</form> | ||
|
||
</div> | ||
</nav> | ||
<div class="container"> | ||
@yield('content') | ||
</div> | ||
</body> | ||
</html> |
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,55 @@ | ||
@extends('layouts.master') | ||
|
||
@section('content') | ||
|
||
<body style="background-color:black"> | ||
<section style = "padding-top: 70px;"> | ||
<div id="main"> | ||
<div class="hero-container" data-aos="zoom-in" data-aos-delay="100"> | ||
<div class = "container" style="background-color:#00FFFF"> | ||
<div class= "row"> | ||
<div class = "col-md-12"> | ||
<div class = "card"> | ||
<div class= "card-header"> | ||
All Post <a href = "/add-post" class="btn btn-success">Add New Post</a> | ||
</div> | ||
<div class = "card-body"> | ||
@if(Session::has('post_deleted')) | ||
<div class="alert alert-success" role="alert"> | ||
{{Session::get('post_deleted')}} | ||
</div> | ||
@endif | ||
<table class = "table table-striped" style="background-color:#00FFFF"> | ||
<thead> | ||
<tr> | ||
<th>ID</th> | ||
<th>Post Title</th> | ||
<th>Post Description</th> | ||
<th>Action</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
@foreach ($posts as $post) | ||
<tr> | ||
<td>{{$post->id}}</td> | ||
<td>{{$post->title}}</td> | ||
<td>{{$post->body}}</td> | ||
<td> | ||
<a href = "/posts/{{$post->id}}" class="btn btn-info">DETAILS</a> | ||
<a href= "/edit-post/{{$post->id}}" class= "btn btn-success">EDIT</a> | ||
<a href= "/delete-post/{{$post->id}}" class= "btn btn-danger">DELETE</a> | ||
</td> | ||
</tr> | ||
@endforeach | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
</body> | ||
@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
Oops, something went wrong.