| 
									
										
										
										
											2023-08-09 21:53:31 +08:00
										 |  |  | <div component="dropdown" | 
					
						
							|  |  |  |      class="dropdown-container block my-xxs"> | 
					
						
							|  |  |  |     <a refs="dropdown@toggle" href="#" class="entity-meta-item my-none"> | 
					
						
							|  |  |  |         @icon(($ignoring ? 'watch-ignore' : 'watch')) | 
					
						
							|  |  |  |         <span>{{ $label }}</span> | 
					
						
							|  |  |  |     </a> | 
					
						
							|  |  |  |     <form action="{{ url('/watching/update') }}" method="POST"> | 
					
						
							|  |  |  |         {{ method_field('PUT') }} | 
					
						
							|  |  |  |         {{ csrf_field() }} | 
					
						
							| 
									
										
										
										
											2023-09-10 22:18:31 +08:00
										 |  |  |         <input type="hidden" name="type" value="{{ $entity->getMorphClass() }}"> | 
					
						
							| 
									
										
										
										
											2023-08-09 21:53:31 +08:00
										 |  |  |         <input type="hidden" name="id" value="{{ $entity->id }}"> | 
					
						
							| 
									
										
										
										
											2023-07-27 21:27:45 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-08-09 21:53:31 +08:00
										 |  |  |         <ul refs="dropdown@menu" class="dropdown-menu xl-limited anchor-left pb-none"> | 
					
						
							| 
									
										
										
										
											2023-08-14 20:11:18 +08:00
										 |  |  |             @foreach(\BookStack\Activity\WatchLevels::allSuitedFor($entity) as $option => $value) | 
					
						
							| 
									
										
										
										
											2023-08-09 21:53:31 +08:00
										 |  |  |                 <li> | 
					
						
							|  |  |  |                     <button name="level" value="{{ $option }}" class="icon-item"> | 
					
						
							|  |  |  |                         @if($watchLevel === $option) | 
					
						
							|  |  |  |                             <span class="text-pos pt-m" | 
					
						
							|  |  |  |                                   title="{{ trans('common.status_active') }}">@icon('check-circle')</span> | 
					
						
							|  |  |  |                         @else | 
					
						
							|  |  |  |                             <span title="{{ trans('common.status_inactive') }}"></span> | 
					
						
							|  |  |  |                         @endif | 
					
						
							|  |  |  |                         <div class="break-text"> | 
					
						
							|  |  |  |                             <div class="mb-xxs"><strong>{{ trans('entities.watch_title_' . $option) }}</strong></div> | 
					
						
							|  |  |  |                             <div class="text-muted text-small"> | 
					
						
							| 
									
										
										
										
											2023-08-14 20:11:18 +08:00
										 |  |  |                                 @if(trans()->has('entities.watch_desc_' . $option . '_' . $entity->getMorphClass())) | 
					
						
							|  |  |  |                                     {{ trans('entities.watch_desc_' . $option . '_' . $entity->getMorphClass()) }} | 
					
						
							|  |  |  |                                 @else | 
					
						
							|  |  |  |                                     {{ trans('entities.watch_desc_' . $option) }} | 
					
						
							|  |  |  |                                 @endif | 
					
						
							| 
									
										
										
										
											2023-08-09 21:53:31 +08:00
										 |  |  |                             </div> | 
					
						
							| 
									
										
										
										
											2023-08-02 20:14:00 +08:00
										 |  |  |                         </div> | 
					
						
							| 
									
										
										
										
											2023-08-09 21:53:31 +08:00
										 |  |  |                     </button> | 
					
						
							|  |  |  |                 </li> | 
					
						
							|  |  |  |                 <li> | 
					
						
							|  |  |  |                     <hr class="my-none"> | 
					
						
							|  |  |  |                 </li> | 
					
						
							|  |  |  |             @endforeach | 
					
						
							| 
									
										
										
										
											2023-08-02 20:14:00 +08:00
										 |  |  |             <li> | 
					
						
							| 
									
										
										
										
											2023-10-19 23:37:55 +08:00
										 |  |  |                 <a href="{{ url('/my-account/notifications') }}" | 
					
						
							| 
									
										
										
										
											2023-08-09 21:53:31 +08:00
										 |  |  |                    target="_blank" | 
					
						
							|  |  |  |                    class="text-item text-muted text-small break-text">{{ trans('entities.watch_change_default') }}</a> | 
					
						
							| 
									
										
										
										
											2023-08-02 20:14:00 +08:00
										 |  |  |             </li> | 
					
						
							| 
									
										
										
										
											2023-08-09 21:53:31 +08:00
										 |  |  |         </ul> | 
					
						
							|  |  |  |     </form> | 
					
						
							|  |  |  | </div> |