+ @if (trim($__env->yieldContent('page_title'))) + @include('architect::layouts.partials.contentheader') + @endif - -
-
- - @yield('main-content') + +
+
+ + @yield('main-content') +
diff --git a/resources/themes/architect/views/layouts/dn.blade.php b/resources/themes/architect/views/layouts/dn.blade.php new file mode 100644 index 0000000..bd2ec1c --- /dev/null +++ b/resources/themes/architect/views/layouts/dn.blade.php @@ -0,0 +1,11 @@ +@if (trim($__env->yieldContent('page_title'))) + @include('architect::layouts.partials.contentheader') +@endif + + +
+
+ + @yield('main-content') +
+
diff --git a/resources/themes/architect/views/layouts/partials/contentheader.blade.php b/resources/themes/architect/views/layouts/partials/contentheader.blade.php index de4d992..8e2bd58 100644 --- a/resources/themes/architect/views/layouts/partials/contentheader.blade.php +++ b/resources/themes/architect/views/layouts/partials/contentheader.blade.php @@ -1,44 +1,49 @@
-
- -
+ @if (trim($__env->yieldContent('page_icon'))) +
+ +
+ @endif
@yield('page_title','Page Title')
- @yield('page_subtitle','Page Sub Title') + @yield('page_subtitle','')
-
- {{-- - - --}} -
diff --git a/resources/views/home.blade.php b/resources/views/home.blade.php index 9a7cd32..16f4934 100644 --- a/resources/views/home.blade.php +++ b/resources/views/home.blade.php @@ -4,10 +4,12 @@ Home @endsection -@section('contentheader_title') - Home +@section('page_title') @endsection -@section('contentheader_description') +@section('page_subtitle') + Content Header - Description +@endsection +@section('page_icon') @endsection @section('main-content') @@ -38,4 +40,8 @@
@endsection - +@section('page-scripts') + +@append diff --git a/resources/views/widgets/dn.blade.php b/resources/views/widgets/dn.blade.php new file mode 100644 index 0000000..9071f44 --- /dev/null +++ b/resources/views/widgets/dn.blade.php @@ -0,0 +1,29 @@ +@extends('architect::layouts.dn') + +@section('htmlheader_title') + Home +@endsection + +@section('page_title') + {{ $dn }} +@endsection +@section('page_subtitle') + {{ $leaf->entryuuid[0] }} +@endsection +@section('page_icon') + fas fa-cog +@endsection + +@section('main-content') + + + + + @foreach ($leaf->getAttributes() as $attribute => $value) + + + + + @endforeach +
@dump($leaf->getOriginal(),$leaf->countAttributes())
{{ $attribute }}{!! is_array($value) ? join('
',$value) : $value !!}
+@endsection diff --git a/routes/web.php b/routes/web.php index 0e2e983..05ba9b9 100644 --- a/routes/web.php +++ b/routes/web.php @@ -23,3 +23,4 @@ Auth::routes([ Route::redirect('/','home'); Route::get('logout','Auth\LoginController@logout'); Route::get('home','HomeController@home'); +Route::post('render','HomeController@render');