From 6430a661fb61dbadd9532e4c5c9d0202b1ad9440 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Kv=C3=A1=C4=8Dek?= Date: Wed, 20 Jan 2016 21:47:19 +0100 Subject: [PATCH] FEATURE: add some dump "layout" Currently, layout is only head with some meta tags (and loaded foundation). It contains block for inserting content, no other "magic" happened yet. --- app/Providers/GlobalViewDataProvider.php | 1 + resources/views/admin/layout.blade.php | 23 +++++++++++++++++++ .../views/admin/loginForm/form.blade.php | 10 +++++++- 3 files changed, 33 insertions(+), 1 deletion(-) diff --git a/app/Providers/GlobalViewDataProvider.php b/app/Providers/GlobalViewDataProvider.php index b942d5fb..c1fa2ead 100644 --- a/app/Providers/GlobalViewDataProvider.php +++ b/app/Providers/GlobalViewDataProvider.php @@ -14,6 +14,7 @@ class GlobalViewDataProvider extends ServiceProvider public function boot() { view()->share('something', 'some value'); + view()->share('vendorName', 'ja s.r.o.'); } /** diff --git a/resources/views/admin/layout.blade.php b/resources/views/admin/layout.blade.php index e69de29b..46c89b91 100644 --- a/resources/views/admin/layout.blade.php +++ b/resources/views/admin/layout.blade.php @@ -0,0 +1,23 @@ + + + + + + + @yield('head_meta') + @yield('pageName') {{$vendorName}} + + @yield('head_stylesheets') + + + +@yield('content') + + + + + +@yield('javascripts') + + + diff --git a/resources/views/admin/loginForm/form.blade.php b/resources/views/admin/loginForm/form.blade.php index d418981b..8668828b 100644 --- a/resources/views/admin/loginForm/form.blade.php +++ b/resources/views/admin/loginForm/form.blade.php @@ -1 +1,9 @@ -{{$something}} \ No newline at end of file +@extends('admin.layout') + +{{--Set page name--}} +@section('pageName', 'Login form') + +@section('content') + @parent + {{$something}} +@stop \ No newline at end of file