| 
									
										
										
										
											2015-08-09 19:06:52 +08:00
										 |  |  | @extends('base') | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | @section('content') | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-02-12 06:23:19 +08:00
										 |  |  |     <div class="faded-small toolbar"> | 
					
						
							| 
									
										
										
										
											2015-08-31 18:43:28 +08:00
										 |  |  |         <div class="container"> | 
					
						
							|  |  |  |             <div class="row"> | 
					
						
							|  |  |  |                 <div class="col-md-6 faded"> | 
					
						
							|  |  |  |                     <div class="breadcrumbs"> | 
					
						
							| 
									
										
										
										
											2015-09-03 01:26:33 +08:00
										 |  |  |                         <a href="{{$page->getUrl()}}" class="text-primary text-button"><i class="zmdi zmdi-arrow-left"></i>Back to page</a> | 
					
						
							| 
									
										
										
										
											2015-08-31 18:43:28 +08:00
										 |  |  |                     </div> | 
					
						
							|  |  |  |                 </div> | 
					
						
							|  |  |  |                 <div class="col-md-6 faded"> | 
					
						
							|  |  |  |                 </div> | 
					
						
							| 
									
										
										
										
											2015-08-09 19:06:52 +08:00
										 |  |  |             </div> | 
					
						
							|  |  |  |         </div> | 
					
						
							|  |  |  |     </div> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-08-31 18:43:28 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-12-31 05:38:20 +08:00
										 |  |  |     <div class="container small" ng-non-bindable> | 
					
						
							| 
									
										
										
										
											2015-08-09 19:06:52 +08:00
										 |  |  |         <h1>Page Revisions <span class="subheader">For "{{ $page->name }}"</span></h1> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         @if(count($page->revisions) > 0) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |             <table class="table"> | 
					
						
							|  |  |  |                 <tr> | 
					
						
							|  |  |  |                     <th>Name</th> | 
					
						
							| 
									
										
										
										
											2015-08-23 20:41:35 +08:00
										 |  |  |                     <th colspan="2">Created By</th> | 
					
						
							| 
									
										
										
										
											2015-08-09 19:06:52 +08:00
										 |  |  |                     <th>Revision Date</th> | 
					
						
							|  |  |  |                     <th>Actions</th> | 
					
						
							|  |  |  |                 </tr> | 
					
						
							|  |  |  |                 @foreach($page->revisions as $revision) | 
					
						
							|  |  |  |                     <tr> | 
					
						
							|  |  |  |                         <td>{{$revision->name}}</td> | 
					
						
							| 
									
										
										
										
											2015-12-16 03:53:46 +08:00
										 |  |  |                         <td style="line-height: 0;"> | 
					
						
							|  |  |  |                             @if($revision->createdBy) | 
					
						
							|  |  |  |                                 <img class="avatar" src="{{ $revision->createdBy->getAvatar(30) }}" alt="{{$revision->createdBy->name}}"> | 
					
						
							|  |  |  |                             @endif | 
					
						
							|  |  |  |                         </td> | 
					
						
							|  |  |  |                         <td> @if($revision->createdBy) {{$revision->createdBy->name}} @else Deleted User @endif</td> | 
					
						
							| 
									
										
										
										
											2015-08-09 19:06:52 +08:00
										 |  |  |                         <td><small>{{$revision->created_at->format('jS F, Y H:i:s')}} ({{$revision->created_at->diffForHumans()}})</small></td> | 
					
						
							|  |  |  |                         <td> | 
					
						
							|  |  |  |                             <a href="{{$revision->getUrl()}}" target="_blank">Preview</a> | 
					
						
							|  |  |  |                             <span class="text-muted"> | </span> | 
					
						
							|  |  |  |                             <a href="{{$revision->getUrl()}}/restore">Restore</a> | 
					
						
							|  |  |  |                         </td> | 
					
						
							|  |  |  |                     </tr> | 
					
						
							|  |  |  |                 @endforeach | 
					
						
							|  |  |  |             </table> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         @else | 
					
						
							|  |  |  |             <p>This page has no revisions.</p> | 
					
						
							|  |  |  |         @endif | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     </div> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | @stop |