diff --git a/app/Http/Controllers/SiteController.php b/app/Http/Controllers/SiteController.php index 7202f7c6e..f4cac26be 100644 --- a/app/Http/Controllers/SiteController.php +++ b/app/Http/Controllers/SiteController.php @@ -80,7 +80,7 @@ class SiteController extends Controller { $page = Cache::remember('site:privacy', now()->addDays(120), function() { $slug = '/site/privacy'; - $page = Page::whereSlug($slug)->whereActive(true)->first(); + return Page::whereSlug($slug)->whereActive(true)->first(); }); return View::make('site.privacy')->with(compact('page'))->render(); } diff --git a/resources/views/admin/pages/edit.blade.php b/resources/views/admin/pages/edit.blade.php index de1a7feb8..5a3530e0d 100644 --- a/resources/views/admin/pages/edit.blade.php +++ b/resources/views/admin/pages/edit.blade.php @@ -1,27 +1,36 @@ -@extends('admin.partial.template') - -@include('admin.settings.sidebar') +@extends('admin.partial.template-full') @section('section') -
{{$page->slug}}
-Edit Page
+{{$page->slug}}
+Page URL: {{$page->url()}} {{-- Edit --}}
-Set custom page content
-Pages
+Manage public and custom page content
+