[WIP] Setup of skeleton
This commit is contained in:
24
resources/views/layout/contentheader.blade.php
Normal file
24
resources/views/layout/contentheader.blade.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<h1>
|
||||
{{ $title }}
|
||||
@if(isset($subtitle))
|
||||
<small>{{ $subtitle }}</small>
|
||||
@endif
|
||||
</h1>
|
||||
<ol class="breadcrumb">
|
||||
<li>
|
||||
<a href="{{ route('boilerplate.dashboard') }}">
|
||||
<i class="fa fa-home"></i> {{ __('boilerplate::layout.home') }}
|
||||
</a>
|
||||
</li>
|
||||
@if(isset($breadcrumb))
|
||||
@foreach($breadcrumb as $label => $route)
|
||||
@if(is_numeric($label))
|
||||
<li class="active">{{ $route }}</li>
|
||||
@elseif(is_array($route))
|
||||
<li><a href="{{ route($route[0], $route[1]) }}">{{ $label }}</a></li>
|
||||
@else
|
||||
<li><a href="{{ route($route) }}">{{ $label }}</a></li>
|
||||
@endif
|
||||
@endforeach
|
||||
@endif
|
||||
</ol>
|
||||
12
resources/views/layout/footer.blade.php
Normal file
12
resources/views/layout/footer.blade.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<footer class="main-footer">
|
||||
<strong>
|
||||
Made by
|
||||
@if(config('boilerplate.app.vendorlink'))
|
||||
<a href="{{ config('boilerplate.app.vendorlink') }}">
|
||||
{!! config('boilerplate.app.vendorname') !!}
|
||||
</a>.
|
||||
@else
|
||||
{!! config('boilerplate.app.vendorname') !!}.
|
||||
@endif
|
||||
</strong>
|
||||
</footer>
|
||||
30
resources/views/layout/header.blade.php
Normal file
30
resources/views/layout/header.blade.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<header class="main-header">
|
||||
<a href="{{ route('boilerplate.dashboard') }}" class="logo">
|
||||
<span class="logo-mini"></span>
|
||||
<span class="logo-lg"></span>
|
||||
</a>
|
||||
<nav class="navbar navbar-static-top">
|
||||
<a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
|
||||
<span class="sr-only">Toggle</span>
|
||||
</a>
|
||||
<div class="navbar-custom-menu">
|
||||
<ul class="nav navbar-nav">
|
||||
<li>
|
||||
<a href="{{ route('boilerplate.user.profile') }}">
|
||||
<img src="{{ Auth::user()->avatar_url }}" class="user-image avatar" alt="User Image"/>
|
||||
<span class="hidden-xs">{{ Auth::user()->name }}</span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ route('boilerplate.logout') }}" class="logout">
|
||||
<span class="hidden-xs">
|
||||
<span class="fa fa-power-off"></span> {{ __('boilerplate::layout.logout') }}
|
||||
</span>
|
||||
</a>
|
||||
{!! Form::open(['route' => 'boilerplate.logout', 'method' => 'post', 'id' => 'logout-form', 'style'=> 'display:none']) !!}
|
||||
{!! Form::close() !!}
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
</header>
|
||||
50
resources/views/layout/index.blade.php
Normal file
50
resources/views/layout/index.blade.php
Normal file
@@ -0,0 +1,50 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ App::getLocale() }}">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="robots" content="noindex, nofollow">
|
||||
<meta name="csrf-token" content="{{ csrf_token() }}">
|
||||
<title>{{ $title }} | {{ config('app.name') }}</title>
|
||||
<link rel="stylesheet" href="/assets/vendor/boilerplate/boilerplate.min.css">
|
||||
@stack('css')
|
||||
</head>
|
||||
<body class="sidebar-mini skin-{{ config('boilerplate.app.skin', 'blue') }}">
|
||||
<div class="wrapper">
|
||||
@include('layout.header')
|
||||
@include('boilerplate::layout.mainsidebar')
|
||||
<div class="content-wrapper">
|
||||
<section class="content-header">
|
||||
@include('layout.contentheader')
|
||||
</section>
|
||||
<section class="content">
|
||||
@yield('content')
|
||||
</section>
|
||||
</div>
|
||||
@include('layout.footer')
|
||||
</div>
|
||||
<script src="{{ mix('/boilerplate.min.js', '/assets/vendor/boilerplate') }}"></script>
|
||||
<script>
|
||||
$(function() {
|
||||
$.ajaxSetup({headers:{'X-CSRF-TOKEN':'{{ csrf_token() }}'}});
|
||||
bootbox.setLocale("{{ App::getLocale() }}");
|
||||
@if(Session::has('growl'))
|
||||
@if(is_array(Session::get('growl')))
|
||||
growl("{!! Session::get('growl')[0] !!}", "{{ Session::get('growl')[1] }}");
|
||||
@else
|
||||
growl("{{Session::get('growl')}}");
|
||||
@endif
|
||||
@endif
|
||||
$('.logout').click(function(e){
|
||||
e.preventDefault();
|
||||
if(bootbox.confirm("{{ __('boilerplate::layout.logoutconfirm') }}", function(e){
|
||||
if(e === false) return;
|
||||
$('#logout-form').submit();
|
||||
}));
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@stack('js')
|
||||
</body>
|
||||
</html>
|
||||
18
resources/views/layout/mainsidebar.blade.php
Normal file
18
resources/views/layout/mainsidebar.blade.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<aside class="main-sidebar">
|
||||
<section class="sidebar" style="height: auto;">
|
||||
<div class="user-panel">
|
||||
<div class="pull-left image">
|
||||
<a href="{{ route('boilerplate.user.profile') }}">
|
||||
<img src="{{ Auth::user()->avatar_url }}" class="img-circle avatar" alt="{{ Auth::user()->name }}"/>
|
||||
</a>
|
||||
</div>
|
||||
<div class="pull-left info">
|
||||
<p>{{ Auth::user()->name }}</p>
|
||||
<a href="{{ route('boilerplate.logout') }}" class="logout">
|
||||
<i class="fa fa-circle text-success"></i> {{ __('boilerplate::layout.online') }}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
{!! $menu !!}
|
||||
</section>
|
||||
</aside>
|
||||
Reference in New Issue
Block a user