2021-12-07 15:55:11 +01:00
|
|
|
@extends('layouts.simple')
|
|
|
|
|
|
|
|
@section('body')
|
|
|
|
|
|
|
|
<div class="container small">
|
|
|
|
|
2022-03-26 22:36:05 +01:00
|
|
|
@include('settings.parts.navbar', ['selected' => 'webhooks'])
|
2021-12-07 15:55:11 +01:00
|
|
|
|
|
|
|
<div class="card content-wrap auto-height">
|
|
|
|
|
|
|
|
<div class="grid half v-center">
|
|
|
|
<h1 class="list-heading">{{ trans('settings.webhooks') }}</h1>
|
|
|
|
|
|
|
|
<div class="text-right">
|
2021-12-08 18:35:58 +01:00
|
|
|
<a href="{{ url("/settings/webhooks/create") }}"
|
|
|
|
class="button outline">{{ trans('settings.webhooks_create') }}</a>
|
2021-12-07 15:55:11 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2021-12-08 18:35:58 +01:00
|
|
|
@if(count($webhooks) > 0)
|
|
|
|
|
|
|
|
<table class="table">
|
|
|
|
<tr>
|
|
|
|
<th>{{ trans('common.name') }}</th>
|
2022-01-01 18:43:33 +01:00
|
|
|
<th width="100">{{ trans('settings.webhook_events_table_header') }}</th>
|
|
|
|
<th width="100">{{ trans('common.status') }}</th>
|
2021-12-08 18:35:58 +01:00
|
|
|
</tr>
|
|
|
|
@foreach($webhooks as $webhook)
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<a href="{{ $webhook->getUrl() }}">{{ $webhook->name }}</a> <br>
|
|
|
|
<span class="small text-muted italic">{{ $webhook->endpoint }}</span>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
@if($webhook->tracksEvent('all'))
|
|
|
|
{{ trans('settings.webhooks_events_all') }}
|
|
|
|
@else
|
|
|
|
{{ $webhook->trackedEvents->count() }}
|
|
|
|
@endif
|
|
|
|
</td>
|
2021-12-12 18:39:06 +01:00
|
|
|
<td>
|
|
|
|
{{ trans('common.status_' . ($webhook->active ? 'active' : 'inactive')) }}
|
|
|
|
</td>
|
2021-12-08 18:35:58 +01:00
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
</table>
|
|
|
|
@else
|
2021-12-12 18:39:06 +01:00
|
|
|
<p class="text-muted empty-text px-none">
|
|
|
|
{{ trans('settings.webhooks_none_created') }}
|
2021-12-08 18:35:58 +01:00
|
|
|
</p>
|
|
|
|
@endif
|
|
|
|
|
2021-12-07 15:55:11 +01:00
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@stop
|