// The link and the image
@section('brand-logo')
<a class="brand-logo" href="/" style="padding: 7px; max-height: 50px">@section('logo'){{ Html::image(ucasset('images/logo-uccello-white.png'), null, ['style' => 'max-width: 150px;']) }}@show</a>
@endsection
// Only the image
@section('logo')
{{ Html::image(asset('images/my-logo.png'), null, ['style' => 'max-width: 150px;']) }}
@endsection
CSS files
// For all pages. Put it into resources/views/layouts/uccello.blade.php
@section('css')
{!! Html::style(mix('css/app.css')) !!}
@append
// For specific pages. Thanks to an overriding.
@section('extra-css')
{!! Html::style(mix('css/specific.css')) !!}
@append
Even if extra-content section is not necessary, it can be used to add for example some HTML code at the bottom of the page (e.g. modal content).
@section('content')
My page content
@endsection
@section('extra-content')
Extra content
@endsection
Post-content
Add custom code after <main>...</main>.
@section('post-content')
Some code
@endsection
Translations
This blade section is useful to add translations used by JavaScript. You could for example use the thepinecode/i18n library and add your translations to the page using this section.
// For all pages. Put it into resources/views/layouts/uccello.blade.php
@section('script')
{!! Html::script(mix('js/app.js')) !!}
@append
// For specific pages. Thanks to an overriding.
@section('extra-script')
{!! Html::script(mix('js/specific.js')) !!}
@append