| 
									
										
										
										
											2021-12-08 22:29:42 +08:00
										 |  |  | @extends('layouts.simple') | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | @section('body') | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     <div class="container small"> | 
					
						
							| 
									
										
										
										
											2022-03-27 05:36:05 +08:00
										 |  |  |         @include('settings.parts.navbar', ['selected' => 'webhooks']) | 
					
						
							| 
									
										
										
										
											2021-12-08 22:29:42 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-01-04 03:42:48 +08:00
										 |  |  |         <div class="card content-wrap auto-height"> | 
					
						
							|  |  |  |             <h1 class="list-heading">{{ trans('settings.webhooks_edit') }}</h1> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |             <div class="setting-list"> | 
					
						
							|  |  |  |             <div class="grid half"> | 
					
						
							|  |  |  |                 <div> | 
					
						
							|  |  |  |                     <label class="setting-list-label">{{ trans('settings.webhooks_status') }}</label> | 
					
						
							|  |  |  |                     <p class="mb-none"> | 
					
						
							|  |  |  |                         {{ trans('settings.webhooks_last_called') }} {{ $webhook->last_called_at ? $webhook->last_called_at->diffForHumans() : trans('common.never') }} | 
					
						
							|  |  |  |                         <br> | 
					
						
							|  |  |  |                         {{ trans('settings.webhooks_last_errored') }} {{ $webhook->last_errored_at ? $webhook->last_errored_at->diffForHumans() : trans('common.never') }} | 
					
						
							|  |  |  |                     </p> | 
					
						
							|  |  |  |                 </div> | 
					
						
							|  |  |  |                 <div class="text-muted"> | 
					
						
							|  |  |  |                     <br> | 
					
						
							|  |  |  |                     @if($webhook->last_error) | 
					
						
							|  |  |  |                         {{ trans('settings.webhooks_last_error_message') }} <br> | 
					
						
							|  |  |  |                         <span class="text-warn text-small">{{ $webhook->last_error }}</span> | 
					
						
							|  |  |  |                     @endif | 
					
						
							|  |  |  |                 </div> | 
					
						
							|  |  |  |             </div> | 
					
						
							|  |  |  |             </div> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |             <hr> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |             <form action="{{ $webhook->getUrl() }}" method="POST"> | 
					
						
							|  |  |  |                 {!! csrf_field() !!} | 
					
						
							|  |  |  |                 {!! method_field('PUT') !!} | 
					
						
							|  |  |  |                 @include('settings.webhooks.parts.form', ['model' => $webhook, 'title' => trans('settings.webhooks_edit')]) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |                 <div class="form-group text-right"> | 
					
						
							|  |  |  |                     <a href="{{ url("/settings/webhooks") }}" class="button outline">{{ trans('common.cancel') }}</a> | 
					
						
							|  |  |  |                     <a href="{{ $webhook->getUrl('/delete') }}" class="button outline">{{ trans('settings.webhooks_delete') }}</a> | 
					
						
							|  |  |  |                     <button type="submit" class="button">{{ trans('settings.webhooks_save') }}</button> | 
					
						
							|  |  |  |                 </div> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |             </form> | 
					
						
							|  |  |  |         </div> | 
					
						
							| 
									
										
										
										
											2021-12-13 02:02:08 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |         @include('settings.webhooks.parts.format-example') | 
					
						
							| 
									
										
										
										
											2021-12-08 22:29:42 +08:00
										 |  |  |     </div> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | @stop |