]> BookStack Code Mirror - bookstack/blob - resources/views/settings/webhooks/index.blade.php
999a458ec15057251840ddbcc5fbaacb33d88bb6
[bookstack] / resources / views / settings / webhooks / index.blade.php
1 @extends('layouts.simple')
2
3 @section('body')
4
5     <div class="container small">
6
7         <div class="py-m">
8             @include('settings.parts.navbar', ['selected' => 'webhooks'])
9         </div>
10
11         <div class="card content-wrap auto-height">
12
13             <div class="grid half v-center">
14                 <h1 class="list-heading">{{ trans('settings.webhooks') }}</h1>
15
16                 <div class="text-right">
17                     <a href="{{ url("/settings/webhooks/create") }}"
18                        class="button outline">{{ trans('settings.webhooks_create') }}</a>
19                 </div>
20             </div>
21
22             @if(count($webhooks) > 0)
23
24                 <table class="table">
25                     <tr>
26                         <th>{{ trans('common.name') }}</th>
27                         <th>{{ trans('settings.webhook_events_table_header') }}</th>
28                     </tr>
29                     @foreach($webhooks as $webhook)
30                         <tr>
31                             <td>
32                                 <a href="{{ $webhook->getUrl() }}">{{ $webhook->name }}</a> <br>
33                                 <span class="small text-muted italic">{{ $webhook->endpoint }}</span>
34                             </td>
35                             <td>
36                                 @if($webhook->tracksEvent('all'))
37                                     {{ trans('settings.webhooks_events_all') }}
38                                 @else
39                                     {{ $webhook->trackedEvents->count() }}
40                                 @endif
41                             </td>
42                         </tr>
43                     @endforeach
44                 </table>
45             @else
46                 <p class="text-muted empty-text">
47                     {{ trans('common.no_items') }}
48                 </p>
49             @endif
50
51
52         </div>
53     </div>
54
55 @stop