| 
									
										
										
										
											2017-02-26 22:25:02 +08:00
										 |  |  | <!doctype html> | 
					
						
							|  |  |  | <html lang="en"> | 
					
						
							|  |  |  | <head> | 
					
						
							|  |  |  |     <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | 
					
						
							|  |  |  |     <title>{{ $chapter->name }}</title> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     <style> | 
					
						
							| 
									
										
										
										
											2017-02-27 05:39:15 +08:00
										 |  |  |         @if (!app()->environment('testing')) | 
					
						
							| 
									
										
										
										
											2018-03-30 22:31:39 +08:00
										 |  |  |         {!! file_get_contents(public_path('/dist/export-styles.css')) !!} | 
					
						
							| 
									
										
										
										
											2017-02-27 05:39:15 +08:00
										 |  |  |         @endif | 
					
						
							| 
									
										
										
										
											2017-02-26 22:25:02 +08:00
										 |  |  |         .page-break { | 
					
						
							|  |  |  |             page-break-after: always; | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  |         ul.contents ul li { | 
					
						
							|  |  |  |             list-style: circle; | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  |         @media screen { | 
					
						
							|  |  |  |             .page-break { | 
					
						
							|  |  |  |                 border-top: 1px solid #DDD;
 | 
					
						
							|  |  |  |             } | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  |     </style> | 
					
						
							|  |  |  |     @yield('head') | 
					
						
							|  |  |  | </head> | 
					
						
							|  |  |  | <body> | 
					
						
							|  |  |  | <div class="container"> | 
					
						
							|  |  |  |     <div class="row"> | 
					
						
							|  |  |  |         <div class="col-md-8 col-md-offset-2"> | 
					
						
							|  |  |  |             <div class="page-content"> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |                 <h1 style="font-size: 4.8em">{{$chapter->name}}</h1> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |                 <p>{{ $chapter->description }}</p> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |                 @if(count($pages) > 0) | 
					
						
							|  |  |  |                 <ul class="contents"> | 
					
						
							|  |  |  |                     @foreach($pages as $page) | 
					
						
							|  |  |  |                         <li><a href="#page-{{$page->id}}">{{ $page->name }}</a></li> | 
					
						
							|  |  |  |                     @endforeach | 
					
						
							|  |  |  |                 </ul> | 
					
						
							|  |  |  |                 @endif | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |                 @foreach($pages as $page) | 
					
						
							|  |  |  |                     <div class="page-break"></div> | 
					
						
							|  |  |  |                     <h1 id="page-{{$page->id}}">{{ $page->name }}</h1> | 
					
						
							|  |  |  |                     {!! $page->html !!} | 
					
						
							|  |  |  |                 @endforeach | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |             </div> | 
					
						
							|  |  |  |         </div> | 
					
						
							|  |  |  |     </div> | 
					
						
							|  |  |  | </div> | 
					
						
							|  |  |  | </body> | 
					
						
							|  |  |  | </html> |