| 
									
										
										
										
											2021-06-06 20:55:56 +08:00
										 |  |  | <div component="attachments-list"> | 
					
						
							|  |  |  |     @foreach($attachments as $attachment) | 
					
						
							|  |  |  |         <div class="attachment icon-list"> | 
					
						
							| 
									
										
										
										
											2022-05-20 00:38:04 +08:00
										 |  |  |             <div class="split-icon-list-item attachment-{{ $attachment->external ? 'link' : 'file' }}"> | 
					
						
							| 
									
										
										
										
											2024-01-23 23:01:07 +08:00
										 |  |  |                 <a href="{{ $attachment->getUrl() }}" | 
					
						
							|  |  |  |                    refs="attachments-list@link-type-{{ $attachment->external ? 'link' : 'file' }}" | 
					
						
							|  |  |  |                    @if($attachment->external) target="_blank" @endif> | 
					
						
							| 
									
										
										
										
											2022-05-20 00:38:04 +08:00
										 |  |  |                     <div class="icon">@icon($attachment->external ? 'export' : 'file')</div> | 
					
						
							|  |  |  |                     <div class="label">{{ $attachment->name }}</div> | 
					
						
							|  |  |  |                 </a> | 
					
						
							|  |  |  |                 @if(!$attachment->external) | 
					
						
							|  |  |  |                     <div component="dropdown" class="icon-list-item-dropdown"> | 
					
						
							|  |  |  |                         <button refs="dropdown@toggle" type="button" class="icon-list-item-dropdown-toggle">@icon('caret-down')</button> | 
					
						
							|  |  |  |                         <ul refs="dropdown@menu" class="dropdown-menu" role="menu"> | 
					
						
							|  |  |  |                             <a href="{{ $attachment->getUrl(false) }}" class="icon-item"> | 
					
						
							|  |  |  |                                 @icon('download') | 
					
						
							|  |  |  |                                 <div>{{ trans('common.download') }}</div> | 
					
						
							|  |  |  |                             </a> | 
					
						
							|  |  |  |                             <a href="{{ $attachment->getUrl(true) }}" target="_blank" class="icon-item"> | 
					
						
							|  |  |  |                                 @icon('export') | 
					
						
							|  |  |  |                                 <div>{{ trans('common.open_in_tab') }}</div> | 
					
						
							|  |  |  |                             </a> | 
					
						
							|  |  |  |                         </ul> | 
					
						
							|  |  |  |                     </div> | 
					
						
							|  |  |  |                 @endif | 
					
						
							|  |  |  |             </div> | 
					
						
							| 
									
										
										
										
											2021-06-06 20:55:56 +08:00
										 |  |  |         </div> | 
					
						
							|  |  |  |     @endforeach | 
					
						
							|  |  |  | </div> |