Skip to content

Commit

Permalink
added more stacks
Browse files Browse the repository at this point in the history
  • Loading branch information
denisdulici committed Aug 4, 2018
1 parent d0dbf23 commit 40c0412
Show file tree
Hide file tree
Showing 24 changed files with 138 additions and 7 deletions.
4 changes: 4 additions & 0 deletions resources/views/layouts/admin.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
@include('partials.admin.head')

<body class="hold-transition {{ setting('general.admin_theme', 'skin-green-light') }} sidebar-mini fixed">
@stack('body_start')

<!-- Site wrapper -->
<div class="wrapper">
@include('partials.admin.header')
Expand All @@ -12,5 +14,7 @@

@include('partials.admin.footer')
</div>

@stack('body_end')
</body>
</html>
12 changes: 12 additions & 0 deletions resources/views/layouts/auth.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
@include('partials.auth.head')

<body class="hold-transition login-page">
@stack('body_start')

<div class="login-box">
@stack('login_box_start')

<div class="login-logo">
<img src="{{ asset('public/img/akaunting-logo-white.png') }}" alt="Akaunting" />
</div>
Expand All @@ -13,14 +17,22 @@

@include('flash::message')

@stack('login_content_start')

@yield('content')

@stack('login_content_end')
</div>
<!-- /.login-box-body -->

<div class="login-box-footer">
{{ trans('footer.powered') }}: <a href="https://akaunting.com" target="_blank">{{ trans('footer.software') }}</a>
</div>
<!-- /.login-box-footer -->

@stack('login_box_end')
</div>

@stack('body_end')
</body>
</html>
4 changes: 4 additions & 0 deletions resources/views/layouts/bill.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@
@include('partials.bill.head')

<body onload="window.print();">
@stack('body_start')

<!-- Content Wrapper. Contains page content -->
<div class="wrapper" style="margin-left: 0; page-break-after: always;">
@yield('content')
</div>
<!-- /.content-wrapper -->

@stack('body_end')
</body>
</html>
4 changes: 4 additions & 0 deletions resources/views/layouts/customer.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
@include('partials.customer.head')

<body class="hold-transition skin-green-light sidebar-mini fixed">
@stack('body_start')

<!-- Site wrapper -->
<div class="wrapper">
@include('partials.customer.header')
Expand All @@ -12,5 +14,7 @@

@include('partials.customer.footer')
</div>

@stack('body_end')
</body>
</html>
4 changes: 4 additions & 0 deletions resources/views/layouts/invoice.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@
@include('partials.invoice.head')

<body onload="window.print();">
@stack('body_start')

<!-- Content Wrapper. Contains page content -->
<div class="wrapper" style="margin-left: 0; page-break-after: always;">
@yield('content')
</div>
<!-- /.content-wrapper -->

@stack('body_end')
</body>
</html>
4 changes: 4 additions & 0 deletions resources/views/layouts/modules.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
@include('partials.modules.head')

<body class="hold-transition {{ setting('general.admin_theme', 'skin-green-light') }} sidebar-mini fixed">
@stack('body_start')

<!-- Site wrapper -->
<div class="wrapper">
@include('partials.admin.header')
Expand All @@ -12,5 +14,7 @@

@include('partials.admin.footer')
</div>

@stack('body_end')
</body>
</html>
4 changes: 4 additions & 0 deletions resources/views/layouts/print.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
@endpush

<body onload="window.print();" class="print-width">
@stack('body_start')

@yield('content')

@stack('body_end')
</body>
</html>
16 changes: 16 additions & 0 deletions resources/views/partials/admin/content.blade.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
@stack('content_start')

<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
@stack('content_wrapper_start')

<!-- Content Header (Page header) -->
<section class="content-header content-center">
@stack('content_header_start')

<h1>
@yield('title')
@yield('new_button')
Expand All @@ -13,18 +19,28 @@
@endforeach
@endif
</h1>

@stack('content_header_end')
</section>

<!-- Main content -->
<section class="content content-center">
@include('flash::message')

@stack('content_content_start')

@yield('content')

@stack('content_content_start')
</section>
<!-- /.content -->

@stack('content_wrapper_end')
</div>
<!-- /.content-wrapper -->

<script type="text/javascript">
$('div.alert').not('.alert-important').delay(3000).fadeOut(350);
</script>

@stack('content_end')
4 changes: 4 additions & 0 deletions resources/views/partials/admin/footer.blade.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
@stack('footer_start')

<footer class="main-footer">
<div class="pull-right hidden-xs">
<b>{{ trans('footer.version') }}</b> {{ version('short') }}
</div>
<strong>{{ trans('footer.powered') }}</strong>: <a href="https://akaunting.com" target="_blank">{{ trans('footer.software') }}</a>
</footer>

@stack('footer_end')
4 changes: 4 additions & 0 deletions resources/views/partials/admin/head.blade.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<head>
@stack('head_start')

<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- Tell the browser to be responsive to screen width -->
Expand Down Expand Up @@ -63,4 +65,6 @@
@stack('js')

@stack('scripts')

@stack('head_end')
</head>
12 changes: 9 additions & 3 deletions resources/views/partials/admin/header.blade.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@stack('header_start')

<header class="main-header">
<!-- Logo -->
<a href="{{ url('/') }}" class="logo">
Expand All @@ -18,10 +20,8 @@
<!-- Sidebar toggle button-->
<a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>

<ul class="add-new nav navbar-nav pull-left">
<!-- Notifications: style can be found in dropdown.less -->
<li class="dropdown add-new-menu">
Expand Down Expand Up @@ -86,8 +86,12 @@
</li>
</ul>

@stack('header_navbar_left')

<div class="navbar-custom-menu">
<ul class="nav navbar-nav">
@stack('header_navbar_right')

@permission('read-notifications')
<!-- Notifications: style can be found in dropdown.less -->
<li class="dropdown notifications-menu">
Expand Down Expand Up @@ -232,3 +236,5 @@
</div>
</nav>
</header>

@stack('header_end')
4 changes: 4 additions & 0 deletions resources/views/partials/admin/menu.blade.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@stack('menu_start')

<aside class="main-sidebar">
<!-- sidebar: style can be found in sidebar.less -->
<section class="sidebar">
Expand Down Expand Up @@ -37,3 +39,5 @@
</section>
<!-- /.sidebar -->
</aside>

@stack('menu_end')
6 changes: 5 additions & 1 deletion resources/views/partials/admin/pagination.blade.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@stack('pagination_start')

@if ($items->firstItem())
<div class="pull-left" style="margin-top: 7px;">
<small>{{ trans('pagination.showing', ['first' => $items->firstItem(), 'last' => $items->lastItem(), 'total' => $items->total(), 'type' => strtolower(trans_choice('general.' . $type, 2))]) }}</small>
Expand All @@ -9,4 +11,6 @@
<div class="pull-left">
<small>{{ trans('general.no_records') }}</small>
</div>
@endif
@endif

@stack('pagination_end')
4 changes: 4 additions & 0 deletions resources/views/partials/auth/head.blade.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<head>
@stack('head_start')

<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- Tell the browser to be responsive to screen width -->
Expand Down Expand Up @@ -47,4 +49,6 @@
@stack('js')

@stack('scripts')

@stack('head_end')
</head>
4 changes: 4 additions & 0 deletions resources/views/partials/bill/head.blade.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<head>
@stack('head_start')

<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- Tell the browser to be responsive to screen width -->
Expand Down Expand Up @@ -52,4 +54,6 @@
@stack('js')

@stack('scripts')

@stack('head_end')
</head>
16 changes: 16 additions & 0 deletions resources/views/partials/customer/content.blade.php
Original file line number Diff line number Diff line change
@@ -1,23 +1,39 @@
@stack('content_start')

<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
@stack('content_wrapper_start')

<!-- Content Header (Page header) -->
<section class="content-header content-center">
@stack('content_header_start')

<h1>
@yield('title')
@yield('new_button')
</h1>

@stack('content_header_end')
</section>

<!-- Main content -->
<section class="content content-center">
@include('flash::message')

@stack('content_content_start')

@yield('content')

@stack('content_content_start')
</section>
<!-- /.content -->

@stack('content_wrapper_end')
</div>
<!-- /.content-wrapper -->

<script type="text/javascript">
$('div.alert').not('.alert-important').delay(3000).fadeOut(350);
</script>

@stack('content_end')
4 changes: 4 additions & 0 deletions resources/views/partials/customer/footer.blade.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
@stack('footer_start')

<footer class="main-footer">
<strong>{{ trans('footer.powered') }}</strong>: <a href="https://akaunting.com">{{ trans('footer.software') }}</a>
</footer>

@stack('footer_end')
4 changes: 4 additions & 0 deletions resources/views/partials/customer/head.blade.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<head>
@stack('head_start')

<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- Tell the browser to be responsive to screen width -->
Expand Down Expand Up @@ -68,4 +70,6 @@
@stack('js')

@stack('scripts')

@stack('head_end')
</head>
11 changes: 8 additions & 3 deletions resources/views/partials/customer/header.blade.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@stack('header_start')

<header class="main-header">
<!-- Logo -->
<a href="{{ url('customers') }}" class="logo">
Expand All @@ -11,13 +13,14 @@
<!-- Sidebar toggle button-->
<a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>

@stack('header_navbar_left')

<div class="navbar-custom-menu">
<ul class="nav navbar-nav">
@stack('header_navbar_right')

<!-- Notifications: style can be found in dropdown.less -->
<li class="dropdown notifications-menu">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
Expand Down Expand Up @@ -100,3 +103,5 @@
</div>
</nav>
</header>

@stack('header_end')
4 changes: 4 additions & 0 deletions resources/views/partials/customer/menu.blade.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@stack('menu_start')

<aside class="main-sidebar">
<!-- sidebar: style can be found in sidebar.less -->
<section class="sidebar">
Expand All @@ -6,3 +8,5 @@
</section>
<!-- /.sidebar -->
</aside>

@stack('menu_end')

0 comments on commit 40c0412

Please sign in to comment.