1 @extends('layouts.simple')
5 <div class="container small">
7 @include('settings.parts.navbar', ['selected' => 'webhooks'])
10 <div class="card content-wrap auto-height">
11 <h1 class="list-heading">{{ trans('settings.webhooks_edit') }}</h1>
14 <div class="setting-list">
15 <div class="grid half">
17 <label class="setting-list-label">{{ trans('settings.webhooks_status') }}</label>
19 {{ trans('settings.webhooks_last_called') }} {{ $webhook->last_called_at ? $webhook->last_called_at->diffForHumans() : trans('common.never') }}
21 {{ trans('settings.webhooks_last_errored') }} {{ $webhook->last_errored_at ? $webhook->last_errored_at->diffForHumans() : trans('common.never') }}
24 <div class="text-muted">
26 @if($webhook->last_error)
27 {{ trans('settings.webhooks_last_error_message') }} <br>
28 <span class="text-warn text-small">{{ $webhook->last_error }}</span>
37 <form action="{{ $webhook->getUrl() }}" method="POST">
39 {!! method_field('PUT') !!}
40 @include('settings.webhooks.parts.form', ['model' => $webhook, 'title' => trans('settings.webhooks_edit')])
42 <div class="form-group text-right">
43 <a href="{{ url("/settings/webhooks") }}" class="button outline">{{ trans('common.cancel') }}</a>
44 <a href="{{ $webhook->getUrl('/delete') }}" class="button outline">{{ trans('settings.webhooks_delete') }}</a>
45 <button type="submit" class="button">{{ trans('settings.webhooks_save') }}</button>
51 @include('settings.webhooks.parts.format-example')