2021-12-07 09:55:11 -05:00
|
|
|
@extends('layouts.simple')
|
|
|
|
|
|
|
|
@section('body')
|
|
|
|
|
|
|
|
<div class="container small">
|
|
|
|
|
2022-03-26 17:36:05 -04:00
|
|
|
@include('settings.parts.navbar', ['selected' => 'webhooks'])
|
2021-12-07 09:55:11 -05:00
|
|
|
|
|
|
|
<div class="card content-wrap auto-height">
|
|
|
|
|
2022-10-30 08:02:06 -04:00
|
|
|
<div class="flex-container-row items-center justify-space-between wrap">
|
2021-12-07 09:55:11 -05:00
|
|
|
<h1 class="list-heading">{{ trans('settings.webhooks') }}</h1>
|
|
|
|
|
2022-10-30 08:02:06 -04:00
|
|
|
<div>
|
2021-12-08 12:35:58 -05:00
|
|
|
<a href="{{ url("/settings/webhooks/create") }}"
|
|
|
|
class="button outline">{{ trans('settings.webhooks_create') }}</a>
|
2021-12-07 09:55:11 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2022-10-30 08:02:06 -04:00
|
|
|
<p class="text-muted">{{ trans('settings.webhooks_index_desc') }}</p>
|
|
|
|
|
|
|
|
<div class="flex-container-row items-center justify-space-between gap-m mt-m mb-l wrap">
|
|
|
|
<div>
|
|
|
|
<div class="block inline mr-xs">
|
|
|
|
<form method="get" action="{{ url("/settings/webhooks") }}">
|
|
|
|
<input type="text" name="search" placeholder="{{ trans('common.search') }}" @if($listDetails['search']) value="{{$listDetails['search']}}" @endif>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="justify-flex-end">
|
|
|
|
@include('common.sort', ['options' => [
|
|
|
|
'name' => trans('common.sort_name'),
|
|
|
|
'endpoint' => trans('settings.webhooks_endpoint'),
|
|
|
|
'created_at' => trans('common.sort_created_at'),
|
|
|
|
'updated_at' => trans('common.sort_updated_at'),
|
|
|
|
'active' => trans('common.status'),
|
|
|
|
], 'order' => $listDetails['order'], 'sort' => $listDetails['sort'], 'type' => 'webhooks'])
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-12-08 12:35:58 -05:00
|
|
|
|
2022-10-30 08:02:06 -04:00
|
|
|
@if(count($webhooks) > 0)
|
|
|
|
<div class="item-list">
|
2021-12-08 12:35:58 -05:00
|
|
|
@foreach($webhooks as $webhook)
|
2022-10-30 08:02:06 -04:00
|
|
|
@include('settings.webhooks.parts.webhooks-list-item', ['webhook' => $webhook])
|
2021-12-08 12:35:58 -05:00
|
|
|
@endforeach
|
2022-10-30 08:02:06 -04:00
|
|
|
</div>
|
2021-12-08 12:35:58 -05:00
|
|
|
@else
|
2021-12-12 12:39:06 -05:00
|
|
|
<p class="text-muted empty-text px-none">
|
|
|
|
{{ trans('settings.webhooks_none_created') }}
|
2021-12-08 12:35:58 -05:00
|
|
|
</p>
|
|
|
|
@endif
|
|
|
|
|
2022-10-30 08:02:06 -04:00
|
|
|
<div class="my-m">
|
|
|
|
{{ $webhooks->links() }}
|
|
|
|
</div>
|
2021-12-07 09:55:11 -05:00
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@stop
|