This repository has been archived by the owner on Oct 4, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Blog and Dashboard improved
- Loading branch information
Yash
committed
Sep 18, 2015
1 parent
25dcc03
commit 1ec0123
Showing
44 changed files
with
472 additions
and
237 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,44 @@ | ||
<?php namespace App\Http\Controllers; | ||
|
||
use App\Http\Controllers\Controller; | ||
use App\Models\Blog; | ||
|
||
class BlogController extends Controller { | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Home Controller | ||
|-------------------------------------------------------------------------- | ||
| | ||
| This controller renders your application's "dashboard" for users that | ||
| are authenticated. Of course, you are free to change or remove the | ||
| controller as you wish. It is just here to get your app started! | ||
| | ||
*/ | ||
|
||
/** | ||
* Create a new controller instance. | ||
* | ||
* @return void | ||
*/ | ||
public function __construct() | ||
{ | ||
/* $this->middleware('auth');*/ | ||
} | ||
|
||
/** | ||
* Show the application dashboard to the user. | ||
* | ||
* @return Response | ||
*/ | ||
public function getIndex($url) | ||
{ | ||
|
||
$page = Blog::where('url', $url )->where('status' , 'Live')->firstOrFail(); | ||
|
||
return view('home.page',$page); | ||
} | ||
|
||
|
||
|
||
} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"assets/css/all.css": "assets/css/all-b9f8a207d0.css", | ||
"assets/css/all.css": "assets/css/all-c76acc353a.css", | ||
"assets/js/all.js": "assets/js/all-80f9394001.js" | ||
} |
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
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,43 @@ | ||
<?php | ||
$pages = [ 'menus','pages', 'blogs', 'users','categories', 'products' , | ||
'orders' , 'orderitems' ,'password_resets', | ||
'billings', 'wishlists' , 'roles' ,'permissions', | ||
'permission_role','role_user', | ||
'coupons', 'emails', 'settings' | ||
]; | ||
?> | ||
|
||
<ul class="link-list"> | ||
<!-- <li><span>Menus</span></li>--> | ||
@foreach($pages as $page) | ||
<li> | ||
<a class="<?php echo Request::segment(2) == $page ? 'active':''?>" href="{!! route('admin.index',$page) !!}">Manage {!! str_replace( "_" ," ", ucfirst($page) ) !!}</a> | ||
</li> | ||
@endforeach | ||
</ul> | ||
|
||
|
||
<!-- strtoupper <i class="float-left">Last created will be default address. Last used will be given priority.</i> | ||
billings | | ||
| categories | | ||
| migrations | | ||
| orderitems | | ||
| orders | | ||
| password_resets | | ||
| permission_role | | ||
| permissions | | ||
| products | | ||
| role_user | | ||
| roles | | ||
| sessions | | ||
| tokens | | ||
| users | | ||
| wishlists | ||
--> |
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.