BookStack/resources/views/books/show.blade.php

17 lines
450 B
PHP
Raw Normal View History

2015-07-12 15:01:42 -04:00
@extends('base')
@section('content')
<h2>{{$book->name}}</h2>
<p class="text-muted">{{$book->description}}</p>
2015-07-12 16:31:15 -04:00
<a href="{{$book->getUrl() . '/page/create'}}">+ New Page</a>
<h4>Pages:</h4>
@if(count($book->pages) > 0)
@foreach($book->pages as $page)
<a href="{{$page->getUrl()}}">{{$page->name}}</a><br>
@endforeach
@else
<p class="text-muted">This book has no pages</p>
@endif
2015-07-12 15:01:42 -04:00
@stop