Skip to content

Commit

Permalink
Merge pull request #59 from takielias/layout
Browse files Browse the repository at this point in the history
Added Custom Error Page Layout.
  • Loading branch information
takielias authored Apr 17, 2024
2 parents d904eea + dc18fdc commit cae24f6
Show file tree
Hide file tree
Showing 15 changed files with 196 additions and 122 deletions.
25 changes: 25 additions & 0 deletions resources/views/error.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
@hasSection('code')
<div class="container-tight py-4">
<div class="empty">
<div class="empty-header">@yield('code')</div>
<p class="empty-title">Oops… You just found an error page</p>
<p class="empty-subtitle text-secondary">
@yield('message')
</p>
<div class="empty-action">
<a href="./." class="btn btn-primary">
<!-- Download SVG icon from http://tabler-icons.io/i/arrow-left -->
<svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24"
viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none"
stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
<path d="M5 12l14 0"></path>
<path d="M5 12l6 6"></path>
<path d="M5 12l6 -6"></path>
</svg>
Take me home
</a>
</div>
</div>
</div>
@endif
6 changes: 5 additions & 1 deletion resources/views/layouts/boxed.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@
@include('tablar::partials.navbar.topbar')
<div class="page-wrapper">
<!-- Page Content -->
@yield('content')
@hasSection('content')
@yield('content')
@endif
<!-- Page Error -->
@include('tablar::error')
@include('tablar::partials.footer.bottom')
</div>
</div>
Expand Down
6 changes: 5 additions & 1 deletion resources/views/layouts/combo.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@
@include('tablar::partials.header.sidebar-top')
<div class="page-wrapper">
<!-- Page Content -->
@yield('content')
@hasSection('content')
@yield('content')
@endif
<!-- Page Error -->
@include('tablar::error')
@include('tablar::partials.footer.bottom')
</div>
</div>
Expand Down
6 changes: 5 additions & 1 deletion resources/views/layouts/condensed.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@
@include('tablar::partials.navbar.condensed-top')
<div class="page-wrapper">
<!-- Page Content -->
@yield('content')
@hasSection('content')
@yield('content')
@endif
<!-- Page Error -->
@include('tablar::error')
@include('tablar::partials.footer.bottom')
</div>
</div>
Expand Down
6 changes: 5 additions & 1 deletion resources/views/layouts/fluid-vertical.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@
@include('tablar::partials.navbar.sidebar')
<div class="page-wrapper">
<!-- Page Content -->
@yield('content')
@hasSection('content')
@yield('content')
@endif
<!-- Page Error -->
@include('tablar::error')
@include('tablar::partials.footer.bottom')
</div>
</div>
Expand Down
6 changes: 5 additions & 1 deletion resources/views/layouts/fluid.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@
@include('tablar::partials.navbar.topbar')
<div class="page-wrapper">
<!-- Page Content -->
@yield('content')
@hasSection('content')
@yield('content')
@endif
<!-- Page Error -->
@include('tablar::error')
@include('tablar::partials.footer.bottom')
</div>
</div>
Expand Down
6 changes: 5 additions & 1 deletion resources/views/layouts/horizontal.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@
@include('tablar::partials.navbar.topbar')
<div class="page-wrapper">
<!-- Page Content -->
@yield('content')
@hasSection('content')
@yield('content')
@endif
<!-- Page Error -->
@include('tablar::error')
@include('tablar::partials.footer.bottom')
</div>
</div>
Expand Down
6 changes: 5 additions & 1 deletion resources/views/layouts/navbar-overlap.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@
@include('tablar::partials.navbar.overlap-topbar')
<div class="page-wrapper">
<!-- Page Content -->
@yield('content')
@hasSection('content')
@yield('content')
@endif
<!-- Page Error -->
@include('tablar::error')
@include('tablar::partials.footer.bottom')
</div>
</div>
Expand Down
6 changes: 5 additions & 1 deletion resources/views/layouts/navbar-sticky.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@
</div>
<div class="page-wrapper">
<!-- Page Content -->
@yield('content')
@hasSection('content')
@yield('content')
@endif
<!-- Page Error -->
@include('tablar::error')
@include('tablar::partials.footer.bottom')
</div>
</div>
Expand Down
6 changes: 5 additions & 1 deletion resources/views/layouts/rtl.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@
@include('tablar::partials.navbar.topbar')
<div class="page-wrapper">
<!-- Page Content -->
@yield('content')
@hasSection('content')
@yield('content')
@endif
<!-- Page Error -->
@include('tablar::error')
@include('tablar::partials.footer.bottom')
</div>
</div>
Expand Down
6 changes: 5 additions & 1 deletion resources/views/layouts/vertical-right.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@
@include('tablar::partials.navbar.sidebar')
<div class="page-wrapper">
<!-- Page Content -->
@yield('content')
@hasSection('content')
@yield('content')
@endif
<!-- Page Error -->
@include('tablar::error')
@include('tablar::partials.footer.bottom')
</div>
</div>
Expand Down
6 changes: 5 additions & 1 deletion resources/views/layouts/vertical-transparent.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@
@include('tablar::partials.navbar.sidebar')
<div class="page-wrapper">
<!-- Page Content -->
@yield('content')
@hasSection('content')
@yield('content')
@endif
<!-- Page Error -->
@include('tablar::error')
@include('tablar::partials.footer.bottom')
</div>
</div>
Expand Down
6 changes: 5 additions & 1 deletion resources/views/layouts/vertical.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@
@include('tablar::partials.navbar.sidebar')
<div class="page-wrapper">
<!-- Page Content -->
@yield('content')
@hasSection('content')
@yield('content')
@endif
<!-- Page Error -->
@include('tablar::error')
@include('tablar::partials.footer.bottom')
</div>
</div>
Expand Down
Loading

0 comments on commit cae24f6

Please sign in to comment.