src/PublishedAssets/Theme/resources/themes/themeTemplate/pages/home.blade.php
@extends('cms-frontend::layout.master')
@if (isset($page))
@section('seoDescription') {{ $page->seo_description }} @endsection
@section('seoKeywords') {{ $page->seo_keywords }} @endsection
@endif
@section('content')
<div class="homepage-banner">
<h1>{{ config('app.name') }}</h1>
<p class="lead">Fluent, Minimalism</p>
</div>
<div class="container">
@if (isset($page))
{!! $page->entry !!}
@else
<div class="row homepage-container">
<div class="col-md-6">
<div class="well">
<h3>Basics</h3>
<p>In order to add content to this page login to Cms and add a home page. Remember you can set up
your own Auth for Cms or run the artisan command: <code>php artisan cms:setup</code> to get
a prebuilt auth system.</p>
<p>Once you're all set up try building a menu with slug: main, and a widget with the slug: widget. You'll see the theme display them right away!</p>
</div>
</div>
<div class="col-md-6">
<div class="well">
<h3>Custom Templates</h3>
<p>By default the homepage has its own template but you can add any by following these details:</p>
<p>To create custom templates for different purposes simply make a view in <br>
the <code>resources/themes/{theme-name}/{module-name}</code> directory that looks similar to: `xxxx-template.blade.php`. <br>
This means you still have full control of blade templating but your pages can easily swap out views.</p>
</div>
</div>
</div>
<div class="row homepage-container">
<div class="col-md-6">
<div class="well">
<h3>Custom Themes</h3>
<p>You can easily generate a theme template via the command: <code>php artisan theme:generate {name}</code> </p>
<p>The theme's files will be placed in the following directory: <code>resources/themes/{name}</code></p>
<p>To include files either use the blade code: <code>@theme</code> or include a file with the <code>cms-frontend::</code> namespace.</p>
</div>
</div>
<div class="col-md-6">
<div class="well">
<h3>Widgets, Menus, Images & Includes</h3>
<p>Widgets are easy to add to any template since they can be injected with the <code>@menu('slug')</code>, <code>@widget('slug')</code> or <code>@images('tag')</code>. If you don't suppy a tag for the images you will get all images. To include a theme view you can easily use: <code>@theme('path.in.theme')</code>.</p>
</div>
<br>
</div>
</div>
@endif
</div>
@endsection
@section('cms')
@if (isset($page))
@edit('pages', $page->id)
@endif
@endsection