From e690d7ba6b74e55a334da5ac95d4bfd2881a20c3 Mon Sep 17 00:00:00 2001 From: Mateja Date: Wed, 7 Oct 2020 23:30:48 +0200 Subject: Bootstrap and tutorial 4 finished --- resources/views/inc/navbar.blade.php | 59 ++++++++++++++++++++++++++++++++ resources/views/layouts/app.blade.php | 14 +++++++- resources/views/pages/index.blade.php | 14 ++++---- resources/views/pages/services.blade.php | 13 +++++++ 4 files changed, 92 insertions(+), 8 deletions(-) create mode 100644 resources/views/inc/navbar.blade.php create mode 100644 resources/views/pages/services.blade.php (limited to 'resources/views') diff --git a/resources/views/inc/navbar.blade.php b/resources/views/inc/navbar.blade.php new file mode 100644 index 0000000..4c559df --- /dev/null +++ b/resources/views/inc/navbar.blade.php @@ -0,0 +1,59 @@ + + diff --git a/resources/views/layouts/app.blade.php b/resources/views/layouts/app.blade.php index 2ba5a22..a2def85 100644 --- a/resources/views/layouts/app.blade.php +++ b/resources/views/layouts/app.blade.php @@ -3,10 +3,22 @@ + + + + + + + + + Main page - @yield('content') + @include('inc.navbar') +
+ @yield('content') +
diff --git a/resources/views/pages/index.blade.php b/resources/views/pages/index.blade.php index e1e5fbf..0be22fc 100644 --- a/resources/views/pages/index.blade.php +++ b/resources/views/pages/index.blade.php @@ -3,11 +3,11 @@ @section('content')

{{ $title ?? 'Index'}}

Something...

- @if(count($services) > 0) - - @endif + {{--@if(count($services) > 0)--}} + {{----}} + {{--@endif--}} @endsection diff --git a/resources/views/pages/services.blade.php b/resources/views/pages/services.blade.php new file mode 100644 index 0000000..3654510 --- /dev/null +++ b/resources/views/pages/services.blade.php @@ -0,0 +1,13 @@ +@extends('layouts.app') + +@section('content') +

{{ $title ?? 'Index'}}

+

Something...

+ @if(count($services) > 0) + + @endif +@endsection -- cgit v1.2.3