Skip to content
This repository has been archived by the owner on Aug 10, 2021. It is now read-only.

Integrating Ticketit views with your project template

AngeMort edited this page Apr 5, 2021 · 8 revisions

Configuring the master view

Ticketit views system is developed to integrate with the current project master view (Ticketit uses Bootstrap framework). The master view file is the main view file that is using "yield" to call header, content, footer sections. It should be located at resources/views (ex. resources/views/layouts/master.blade.php), open it and make sure it yields for page, content, and footer.

@yield('page') Page section for passing the current page title

<head> ...
<title>My website - @yield('page')</title>
</head>

@yield('content') Content section for the content

<body> ...
@yield('content')
...
</body>

@yield('footer') Footer section for passing the jquery scripts, so make sure it is called after you call the jquery

<body> ...
@yield('content')
...
<script src="/js/jquery.min.js"></script>
..
@yield('footer')
</body>

Here's a quick example of a layout file